<!-- $Id: comment_info.htm 16854 2009-12-07 06:20:09Z sxc_shop $ -->
|
|
{include file="pageheader.htm"}
|
<!-- comment content list -->
|
<div class="main-div">
|
<table width="100%">
|
<tr>
|
<td>
|
<a href="mailto:{$msg.email}"><b>{if $msg.user_name}{$msg.user_name}{else}{$lang.anonymous}{/if}</b></a> {$lang.from}
|
{$msg.add_time} {$lang.to} <b>{$id_value}</b> {$lang.send_comment}
|
<span style="float:right;"><img src="images/stars{$msg.comment_rank}.gif" /></span>
|
</td>
|
</tr>
|
<tr>
|
<td><hr color="#dadada" size="1"></td>
|
</tr>
|
<tr>
|
<td>
|
<div style="overflow:hidden; word-break:break-all;">{$msg.content}</div>
|
<div align="right"><b>{$lang.comment_rank}:</b> {$msg.comment_rank} <b>{$lang.ip_address}</b>: {$msg.ip_address}</div>
|
</td>
|
</tr>
|
<tr>
|
<td align="center">
|
{if $supplier_commentshow}
|
{if $msg.status eq "0"}
|
<input type="button" onclick="location.href='comment_manage.php?act=check&check=allow&id={$msg.comment_id}'" value="{$lang.allow}" class="button" />
|
{else}
|
<input type="button" onclick="location.href='comment_manage.php?act=check&check=forbid&id={$msg.comment_id}'" value="{$lang.forbid}" class="button" />
|
{/if}
|
{else}
|
<input type="button" style="color:#ff3300;font-weight:bold;" value="不允许修改是否隐藏显示" class="button" />
|
{/if}
|
</td>
|
</tr>
|
</table>
|
</div>
|
|
{if $reply_info.content}
|
<!-- reply content list -->
|
<div class="main-div">
|
<table width="100%">
|
<tr>
|
<td>
|
{$lang.admin_user_name} <a href="mailto:{$msg.email}"><b>{$reply_info.user_name}</b></a> {$lang.from}
|
{$reply_info.add_time} {$lang.reply}
|
</td>
|
</tr>
|
<tr>
|
<td><hr color="#dadada" size="1"></td>
|
</tr>
|
<tr>
|
<td>
|
<div style="overflow:hidden; word-break:break-all;">{$reply_info.content}</div>
|
<div align="right"><b>{$lang.ip_address}</b>: {$reply_info.ip_address}</div>
|
</td>
|
</tr>
|
</table>
|
</div>
|
{/if}
|
|
{if $send_fail}
|
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
|
<li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" >{$lang.mail_send_fail}</li>
|
</ul>
|
{/if}
|
|
<div class="main-div">
|
<form method="post" action="comment_manage.php?act=action" name="theForm" onsubmit="return validate()">
|
<table border="0" align="center">
|
<tr><th colspan="2">
|
<strong>{$lang.reply_comment}</strong>
|
</th></tr>
|
<tr>
|
<td align="right">{$lang.user_name}:</td>
|
<td><input name="user_name" type="text" {if $reply_info.user_name eq ""}value="{$admin_info.user_name}"{else} value="{$reply_info.user_name}"{/if} size="30" readonly="true" /></td>
|
</tr>
|
<tr>
|
<td align="right">{$lang.email}:</td>
|
<td><input name="email" type="text" {if $reply_info.email eq ""}value="{$admin_info.email}"{else} value="{$reply_info.email}"{/if} size="30" readonly="true" /></td>
|
</tr>
|
<tr>
|
<td align="right">{$lang.reply_content}:</td>
|
<td><textarea name="content" cols="50" rows="4" wrap="VIRTUAL" style="margin:5px;">{$reply_info.content}</textarea><span class="require-field">*</span></td>
|
</tr>
|
{if $reply_info.content}
|
<tr>
|
<td> </td>
|
<td>{$lang.have_reply_content}</td>
|
</tr>
|
{/if}
|
<tr>
|
<td></td>
|
<td><input name="send_email_notice" type="checkbox" value='1'/>{$lang.send_email_notice}</td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td>
|
<input name="submit" type="submit" value="{$lang.button_submit}" class="button">
|
<input type="reset" value="{$lang.button_reset}" class="button">
|
{if $reply_info.content}<input type="submit" name="remail" value="{$lang.remail}" class="button">{/if}
|
<input type="hidden" name="comment_id" value="{$msg.comment_id}">
|
<input type="hidden" name="comment_type" value="{$msg.comment_type}">
|
<input type="hidden" name="id_value" value="{$msg.id_value}">
|
</td>
|
</tr>
|
</table>
|
</form>
|
</div>
|
{insert_scripts files="../js/utils.js,validator.js"}
|
{literal}
|
<script language="JavaScript">
|
<!--
|
document.forms['theForm'].elements['content'].focus();
|
|
/**
|
* 检查表单输入的数据
|
*/
|
function validate()
|
{
|
validator = new Validator("theForm");
|
validator.required("content", no_content);
|
return validator.passed();
|
}
|
|
onload = function() {
|
// 开始检查订单
|
startCheckOrder();
|
}
|
//-->
|
</script>
|
{/literal}
|
{include file="pagefooter.htm"}
|