Location: PHPKode > projects > PBBoard > PBBoard_v2.1.4/Upload/look/styles/forum/main/templates/show_subject_information.tpl
<script type='text/javascript'>
//<![CDATA[
function AjaxSubjectRating()
{

    var AjaxState = {ajaxSend : $("#rating_status").html("<div class='info_bar'> <img border='0' alt='' src='{$image_path}/loading.gif'></div>")};

    var data = {};

    data['by_username']    =    $("#by_username").val();
    data['subject_title']    =    $("#subject_title").val();
    data['subject_id']    =    $("#subject_id").val();
    data['username']    =    $("#username").val();
    data['vote']    =    $("#vote").val();

    $.post("index.php?page=misc&rating=1",data,function Success(xml) { $("#rating_status").html(xml); });
}

function Wait()
{
    $("#rating_status").html("{$lang['Ongoing_process']}");
}

function Ready()
{
    $("#rating_id").click(AjaxSubjectRating);
}

$(document).ready(Ready);

//]]>
</script>

 <table border="0" cellspacing="0" width="98%" align="center" class="border_radius">
	<tr>
<td id="top_topic_bar" nowrap="nowrap">
<ul class="pbbList_inline">
<li class="r-right">
			{if {$Info['stick']} or {$Info['close']} or {$Info['delete_topic']}}
			<strong>{$lang['case_of_Subject']}</strong>
						{else}
        <strong>{$lang['Title_subject']} </strong>
<span dir="{$_CONF['info_row']['content_dir']}">
{$Info['prefix_subject']}
</span>
        {$subject_title}
			{/if}
			{if {$Info['stick']}}
			{$lang['sticky']}
			{/if}
			{if {$Info['close']}}
			{if {$Info['stick']}}, و{/if}
			{$lang['Closed']}
			{/if}
			{if {$Info['delete_topic']}}
			{if {$Info['stick']} or {$Info['close']}},و{/if}
			{$lang['Deleted']}
			{/if}

 </li>
		  <!-- Code subject_tools Menu start -->
		  <li class="l-left">
           <a href="javascript:switchMenuNone('subject_tools')" class='popmenubutton' onclick="switchBlock('subject_rating');">{$lang['Thread_Tools']}
           <img border="0" src="{$image_path}/menu_open.gif" /></a>
      	<div style="display:none; left:20px; padding-left: -50px" id="subject_tools" class="drop_menu">
		<table width="100" border="0" cellspacing="1" class="border">
		<tr align="center">
		<td class="tcat">{$lang['Thread_Tools']}</td>
		</tr>
		<tr>
		<td class="menu_popup">
		<a href="index.php?page=download&amp;subject=1&amp;id={$subject_id}">
			<img src="{$image_path}/icon1.gif"
			title="{$lang['Download_Subject']}" border="0" cellspacing="1">
			{$lang['Download_Subject']}</a>
		</td>
		</tr>
		<tr>
		<td class="menu_popup">
		{if {$_CONF['info_row']['rewriterule']} == '1'}
		<a href="p{$subject_id}.html">
		{else}
		<a href="index.php?page=print&amp;show=1&amp;id={$subject_id}">
		 {/if}
		<img border="0" src="{$image_path}/printer.gif"
		title="{$lang['print_Subject']}">{$lang['print_Subject']}</a>
		</td>
		</tr>
				<tr>
		<td class="menu_popup">
		<a href="index.php?page=misc&amp;sendtofriend=1&amp;id={$subject_id}">
			<img src="{$image_path}/sendtofriend.gif"
			title="{$lang['sendsubjecttofriend']}" border="0" cellspacing="1">
			{$lang['sendsubjecttofriend']}</a>
		</td>
		</tr>
{if {$_CONF['info_row']['allowed_emailed']} == '1' AND {$_CONF['member_permission']}}
		<tr>
		<td class="menu_popup">
		<a href="index.php?page=misc&amp;addsubscription=1&amp;id={$subject_id}">
			<img src="{$image_path}/subscribe.gif"
			title="{$lang['addsubscription']}" border="0" cellspacing="1">
			{$lang['addsubscription']}</a>
		</td>
		</tr>
     {/if}
		</table>
		</div>
		<!-- Code subject_tools Menu End -->
   </li>
   {if {$_CONF['member_permission']}}
			{if {$_CONF['member_row']['username']} != {$Info['username']}}
		{if {$_CONF['info_row']['rating_show']} == 1}
		      <!-- Code subject_rating Menu start -->
		      <li class="l-left">
            <a href="javascript:switchMenuNone('subject_rating')" class='popmenubutton'>
            {$lang['subject_rating']}
           <img border="0" alt="" src="{$image_path}/menu_open.gif" /></a>
      	<div style="display:none;" id="subject_rating" class="drop_menu">
    <form name="misc" method="post" action="index.php?page=misc&amp;rating=1">
		<table border="0" cellspacing="1" width="100" class="border">
		<tr align="center">
		<td class="tcat">{$lang['subject_rating']}</td>
		</tr>
		<tr align="center">
	<td class="menu_popup"align="right">
			 <div><img title="{$lang['Excellent']}" border="0"
          src="{$image_path}/rating/rating_5.gif"
          alt="{$lang['Excellent']}" /><label for="vote5"><input name="vote" id="vote" value="5" type="radio">{$lang['Excellent']}</label></div>
          <div><img title="{$lang['Good']}" border="0"
          src="{$image_path}/rating/rating_4.gif"
          alt="{$lang['Good']}" /><label for="vote4"><input name="vote" id="vote" value="4" type="radio">{$lang['Good']}</label></div>
          <div><img title="{$lang['Average']}" border="0"
          src="{$image_path}/rating/rating_3.gif"
          alt="{$lang['Average']}" /><label for="vote3"><input name="vote" id="vote" value="3" type="radio">{$lang['Average']}</label></div>
          <div><img title="{$lang['Bad']}" border="0"
          src="{$image_path}/rating/rating_2.gif"
          alt="{$lang['Bad']}" /><label for="vote2"><input name="vote" id="vote" value="2" type="radio">{$lang['Bad']}</label></div>
          <div><img title="{$lang['Terrible']}" border="0"
          src="{$image_path}/rating/rating1.gif"
          alt="{$lang['Terrible']}" /><label for="vote1"><input name="vote" id="vote" value="1" type="radio">{$lang['Terrible']}</label></div>

<input TYPE="hidden" id="subject_title" name="subject_title" value="{$subject_title}" size="40" />
<input TYPE="hidden" id="subject_id" name="subject_id" value="{$subject_id}" size="40" />
<input TYPE="hidden" id="by_username" name="by_username" value="{$_CONF['member_row']['username']}" size="40" />
<input TYPE="hidden" id="username" name="username" value="{$Info['username']}" size="40" />

       </td>
       </tr>
       <tr align="center">
       <td class="menu_popup">
<input type="button" name="rating" id="rating_id" value="{$lang['Vote_now']}" onclick="comm._submit();">

<div align="center" id="rating_status"></div>
		</td>
		</tr>
		</table>
		</form>
		</div>
		<!-- Code subject_rating Menu End -->
		</li>
		{/if}
		{/if}
		{/if}


{if !{$mod_toolbar}}

  <!-- Code Options_mods Menu start -->
  <li class="l-left">
           <a href="javascript:switchMenuNone('Options_mods')" class='popmenubutton'>{$lang['Options_mod']}
           <img border="0" src="{$image_path}/menu_open.gif" /></a>
      	<div style="display:none;" id="Options_mods" class="drop_menu">
		<table width="100" border="0" cellspacing="1" class="border">
		<tr align="center">
		<td class="tcat">{$lang['Options_mod']}</td>
		</tr>
		<tr align="center">
		<td class="menu_popup">
		{template}show_subject_control{/template}
		</td>
		</tr>
		</table>
		</div>
		<!-- Code Options_mods Menu End -->
 </li>
      {/if}
  </ul>
		</td>
		</tr>
      		</table>
Return current item: PBBoard