⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nickpage_newrating.tpl

📁 太烦了
💻 TPL
字号:
{strip}
<script type="text/javascript">
/* <![CDATA[ */

function confirmDelete(commentid,ratingid,conmsg)
{ldelim}
	if (confirm(conmsg))
	{ldelim}

		document.location = 'showprofile.php?id={$profileid}&ratingid=' + ratingid + '&commentid=' + commentid + '&action=removecomment';

	{rdelim}
{rdelim}

/* ]]> */
</script>

<div align="left" style="margin-left: 6px;">
{if $total_ratingscnt > 0}
<p>{lang mkey='rate_carefully'}</p>
{else}
<br />
{/if}

{foreach item=item from=$ratings}

<p style="margin:0px; padding-bottom:4px;"><b>{$item.rating}</b></p>
<p style="margin:0px; padding-bottom:4px;">{$item.description}</p>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>

	{if $item.ratingvalue == 0}

	<p><b>{lang mkey='no_rating'}</b></p>

	{/if}

	{if $item.ratingvalue > 0}

	<table width="250" style="border: solid 1px #4278D3;" cellspacing="0" cellpadding="0">

	<tr><td>
	<table class="headbg" width="{$item.ratingvalue}0%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
	</td></tr>

	</table>

	<table width="250" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">1</td>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">2</td>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">3</td>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">4</td>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">5</td>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">6</td>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">7</td>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">8</td>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">9</td>
        <td style="width:10%; font-size:10px; text-align:right;  font-size: 10px;">10</td>
      </tr>
    </table>

	{/if}

	{if $item.has_rated == 0 and $smarty.session.AdminId == '' and $profileid != $smarty.session.UserId and $smarty.session.UserId > 0}

	<form method="post" action="showprofile.php?id={$profileid}&amp;ratingid={$item.id}&amp;action=rate">
	<table style="padding:5px;" border="0" cellspacing="0" cellpadding="0">
	<tr><td>

	<select name="txtrating" style="width:120px;">

	{foreach item=option from=$ratingoptions}
	<option value="{$option.value}">{$option.name}</option>
	{/foreach}

	</select>
	</td>
	<td style="padding-left: 2px">
		<input name="submit" type="submit" class="formbutton" value="{lang mkey='submitrating'}"/>		</td>
	</tr>
	</table>
	</form>

	{/if}

	</td>
	{if $item.ratingcount > 0 and $smarty.session.UserId > 0 }
    <td width="180" align="center" >{$item.ratingcount} {if $item.ratingcount == 1}{lang mkey='rating'}{else}{lang mkey='ratings'}{/if} | {if $item.has_commented == 0}<a href="showprofile.php?id={$profileid}&amp;ratingid={$item.id}">{/if}{$item.commentcount} {if $item.ratingcount == 1}{lang mkey='comment'}{else}{lang mkey='comments'}{/if}{if $item.has_commented == 0}</a>{/if}</td>
	{/if}
  </tr>
</table>

{if $item.id == $ratingid }

	{foreach item=comment from=$comments}

	{* <div style="width:100%; border: solid 1px #4278D3; margin:8px; padding:4px;"> *}

	<table width="80%" border="0" cellpadding="1" cellspacing="0" style="margin:4px;">
	<tr>
	<td class="headbg">
		<table class="main_outer_table" width="100%" border="0" cellpadding="4" cellspacing="0">
		<tr>
		<td>
			{* to-do later: javascript character counter while user is typing *}
			{if $config.enable_mod_rewrite == 'Y'}
				<a href="javascript:popUpScrollWindow2('{$docroot}{if $config.seo_username == 'Y'}{$comment.username}{else}{$comment.userid}.htm{/if}','top',650,600)">
			{else}
				<a href="javascript:popUpScrollWindow2('{$docroot}showprofile.php?{if $config.seo_username == 'Y'}username={$comment.username}{else}id={$comment.userid}{/if}','top',650,600)">
			{/if}
			{$comment.username}</a>:&nbsp;
			{$comment.comment|nl2br|stripslashes}
		</td>
		</tr>
		</table>
	</td>
	</tr>
	</table>

	{* </div> *}

	{if $comment.reply == '' and $smarty.session.UserId == $profileid and $config.mod_rating_allow_rep == 'Y'}

	<p style="margin-bottom:5px;"><b>{lang mkey='your_reply'}</b></p>
	<p style="margin-top:5px;">{lang mkey='comment_note'}</p>

	<form name="addcomment" method="post" action="showprofile.php?id={$profileid}&amp;ratingid={$item.id}&amp;commentid={$comment.id}&action=reply">
	<table width="316" border="0" cellpadding="0" cellspacing="0">
	  <tr>
		<td><textarea name="txtcomment" cols="50" rows="5"></textarea></td>
	  </tr>
  	</table>
	<input style="margin-top:5px;" type="submit" class="formbutton" name="btnAdd" value="{lang mkey='submit'}" />
  	</form>

	{/if}

	{if $comment.reply != ''}

	<table width="80%" border="0" cellpadding="1" cellspacing="0" style="margin:4px;">
	<tr>
	<td >
		<table class="main_outer_table" width="100%" border="0" cellpadding="4" cellspacing="0">
		<tr>
		<td>
			{* to-do later: javascript character counter while user is typing *}
			<b>{$user.username}:</b> {$comment.reply|nl2br|stripslashes}

			{if $smarty.session.UserId == $profileid}

			<a href="#" onclick="javascript:confirmDelete({$comment.id},{$item.id},'{lang mkey='delete_comment_confirm_msg'}')"><img style="margin-left:3px;" src="images/button_drop.png" alt="Delete" border="0" /></a>

			{/if}
		</td>
		</tr>
		</table>
	</td>
	</tr>
	</table>

	{*
	<div style="width:80%; border: solid 1px #FF6600; margin:8px; padding:8px;;">
	<b>{$user.username}:</b>&nbsp;{$comment.reply|nl2br|stripslashes}

	{if $smarty.session.UserId == $profileid}

	<a href="#" onclick="javascript:confirmDelete({$comment.id},{$item.id},'{lang mkey='delete_comment_confirm_msg'}')"><img style="margin-left:3px;" src="images/button_drop.png" alt="Delete" border="0" /></a>

	{/if}

	</div>
	*}

	{/if}

	{/foreach}

	{if $item.has_commented == 0 and $config.mod_rating_allow_com == 'Y' and $item.commentcount < $config.mod_rating_max_com and $smarty.session.AdminId == '' }

	<p style="margin-bottom:5px;"><b>{lang mkey='your_comment'}</b></p>
	<p style="margin-top:5px;">{lang mkey='comment_note'}</p>
	<form name="addcomment" method="post" action="showprofile.php?id={$profileid}&amp;ratingid={$item.id}&amp;action=comment">
	<table width="316" border="0" cellpadding="0" cellspacing="0">
	  <tr>
		<td width="316"><textarea name="txtcomment" cols="50" rows="5"></textarea></td>
	  </tr>
  	</table>
	<input style="margin-top:5px;" type="submit" class="formbutton" name="btnAdd" value="{lang mkey='submit'}" />
  	</form>

	{/if}

{/if}

<br />

{/foreach}

</div>
{/strip}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -