<!-- $Id: msg_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->
{include file="pageheader.htm"}
<div class="main-div">
  <table width="98%">
    <tr>
      <td style="padding: 0px 20px">
        <h3>{$msg.msg_title|escape:"html"}</h3>
        <hr size="1" />
        <div>{$msg.msg_content|escape:"html"|nl2br}</div>
        {if $msg.message_img}
        <div align="right">
          <a href="../data/feedbackimg/{$msg.message_img}" target="_bank" width="300" height="400">{$lang.view_upload_file}</a>
          <a href="user_msg.php?act=drop_file&id={$msg.msg_id}&file={$msg.message_img}">{$lang.drop}</a>
        </div>
        {/if}
        <div align="right"  nowrap="nowrap"><a href="mailto:{$msg.user_email}">{$msg.user_name}</a> @ {$msg.msg_time}</div>
      </td>
    </tr>
  </table>
</div>

{if $msg.reply_id}
<div class="main-div">
  <table width="98%">
    <tr>
      <td style="padding: 0px 20px">
        <h3>{$msg.reply_name} {$lang.from} {$msg.reply_time} {$lang.reply}:</h3>
        <hr size="1" />
        <div>{$msg.reply_content|escape:"html"|nl2br}</div>
      </td>
    </tr>
  </table>
</div>
{/if}

<div class="main-div">
<form method="post" action="user_msg.php?act=action" name="theForm"  onsubmit="return validate()">
<table border="0" width="98%">
  <tr>
    <td>{$lang.email}:</td>
    <td><input name="user_email" id="user_email"  type="text" value="{$msg.reply_email}"></td>
  </tr>
  <tr>
    <td>{$lang.reply_content}:</td>
    <td rowspan="2"><textarea name="msg_content" cols="50" rows="4" wrap="VIRTUAL" id="msg_content">{$msg.reply_content}</textarea></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  {if $msg.reply_id}
  <tr>
    <td>&nbsp;</td>
    <td>{$lang.have_reply_content}</td>
  </tr>
  {/if}
  <tr>
    <td>&nbsp;</td>
    <td>
      <input type="hidden" name="msg_id" value="{$msg.msg_id}">
      <input type="hidden" name="parent_id" value="{$msg.reply_id}">
      <input name="Submit" value="{$lang.button_submit}" type="submit" class="button">
    </td>
  </tr>
</table>
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
<script language="JavaScript">
<!--
{literal}
document.forms['theForm'].elements['msg_content'].focus();

/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("msg_content",  no_reply_content);
    return validator.passed();
}

onload = function()
{
    // 开始检查订单
    startCheckOrder();
}
//-->
{/literal}
</script>
{include file="pagefooter.htm"}