<!-- $Id: comment_info.htm 6596 2007-03-07 14:16:40Z weberliu $ -->

{include file="pageheader.htm"}
<!-- comment content list -->
<div class="main-div">
  <table width="100%">
    <tr>
      <td>
      <a href="mailto:{$msg.email}">{$msg.user_name}</a>&nbsp;&nbsp;{$lang.from}
      &nbsp;&nbsp;{$msg.add_time}&nbsp;&nbsp;{$lang.to}&nbsp;&nbsp;{$id_value}&nbsp;&nbsp;{$lang.send_comment}
      &nbsp;&nbsp;{$lang.comment_rank}:{$msg.comment_rank}&nbsp;&nbsp;{$lang.ip_address}:{$msg.ip_address}
    </td>
    </tr>
    <tr>
      <td><hr color="#dadada" size="1"></td>
    </tr>
    <tr>
      <td><p>{$msg.content}</p></td>
    </tr>
  <tr>
      <td align="right">
    <strong>{$lang.check}:&nbsp;&nbsp;
    {if $msg.status eq "0"}
      <a href="comment_manage.php?act=check&check=allow&id={$msg.comment_id}">{$lang.allow}</a>
    {else}
      <a href="comment_manage.php?act=check&check=forbid&id={$msg.comment_id}">{$lang.forbid}</a>
    {/if}</strong>
    </td>
    </tr>
  </table>
{if $reply_info.content}
<!-- reply content list -->
<ul>
  <table width="100%">
    <tr>
      <td>
      {$lang.admin_user_name}&nbsp;&nbsp;<a href="mailto:{$msg.email}">{$reply_info.user_name}</a>&nbsp;&nbsp;{$lang.from}
      &nbsp;&nbsp;{$reply_info.add_time}&nbsp;&nbsp;{$lang.reply}&nbsp;&nbsp;{$lang.ip_address}:{$reply_info.ip_address}
    </td>
    </tr>
    <tr>
      <td><hr color="#dadada" size="1"></td>
    </tr>
    <tr>
      <td><p>{$reply_info.content}</p></td>
    </tr>
  </table>
</ul>
{/if}
</div>
<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>{$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>{$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>{$lang.reply_content}:</td>
    <td><textarea name="content" cols="50" rows="4" wrap="VIRTUAL"></textarea></td>
  </tr>
  {if $reply_info.content}
  <tr>
    <td>&nbsp;</td>
    <td>{$lang.have_reply_content}</td>
  </tr>
  {/if}
  <tr>
    <td>&nbsp;</td>
    <td>
      <input name="submit" type="submit" value="{$lang.button_submit}" class="button">
      <input type="reset" value="{$lang.button_reset}" class="button">
      <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"}