{?set jieqi_blocks_module = "system"?}
{?set jieqi_blocks_config = "userblocks"?}
<table class="grid" width="100%" align="center">
<caption>标题：{?$title?}</caption>
  <tr>
    <td width="20%" class="odd">发送人：</td>
    <td width="80%" class="even">{?if $fromid > 0?}<a href="{?function jieqi_geturl:'system':'user':$fromid?}" target="_blank">{?$fromname?}</a>{?else?}<span class="hottext">网站管理员</span>{?/if?}</td>
  </tr>
  <tr>
    <td class="odd">接收人：</td>
    <td class="even">{?if $toid > 0?}<a href="{?function jieqi_geturl:'system':'user':$toid?}" target="_blank">{?$toname?}</a>{?else?}<span class="hottext">网站管理员</span>{?/if?}</td>
  </tr>
  <tr>
    <td class="odd">时&nbsp; 间：</td>
    <td class="even">{?$postdate?}</td>
  </tr>
  <tr>
    <td class="odd">内&nbsp; 容：</td>
    <td class="even">{?$content?}</td>
  </tr>
  <tr>
    <td colspan="2" class="foot">{?if $url_reply != ""?}<a href="{?$jieqi_url?}/newmessage.php?reid={?$messageid?}&tosys={?$fromsys?}">回复消息</a>&nbsp;&nbsp;&nbsp;&nbsp;{?/if?}<a href="{?$jieqi_url?}/newmessage.php?fwid={?$messageid?}">转发消息</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:if(confirm('确实要该消息么？')) document.location='{?$jieqi_url?}/message.php?box={?$box?}&delid={?$messageid?}'">删除消息</a></td>
  </tr>
</table>
{?if $url_reply != ""?}
<br />
<form name="newmessage" id="newmessage" action="{?$jieqi_url?}/newmessage.php?do=submit" method="post" onsubmit="return jieqiFormValidate_newmessage();">
<table class="grid" width="100%" align="center">
  <caption>快速回复</caption>
  <tr valign="middle" align="left">
    <td class="odd" width="25%">收件人</td>
    <td class="even">{?if $fromid > 0?}<a href="{?function jieqi_geturl:'system':'user':$fromid?}" target="_blank">{?$fromname?}</a><input type="hidden" name="receiver" id="receiver" size="30" maxlength="30" value="{?$fromname?}" />{?else?}<span class="hottext">网站管理员</span><input type="hidden" name="tosys" id="tosys" value="1" />{?/if?}</td>
  </tr>
  <tr valign="middle" align="left">
    <td class="odd" width="25%">标题</td>
    <td class="even"><input type="text" class="text" name="title" id="title" size="60" maxlength="100" value="Re:{?$title?}" /></td>
  </tr>
  <tr valign="middle" align="left">
    <td class="odd" width="25%">内容</td>
    <td class="even"><textarea class="textarea" name="content" id="content" rows="8" cols="60"></textarea></td>
  </tr>
  <tr valign="middle" align="left">
    <td class="odd" width="25%">&nbsp;</td>
    <td class="even"><input type="submit" class="button" name="submit"  id="submit" value="回复消息" /><input type="hidden" name="action" id="action" value="newmessage" /></td>
  </tr>
</table>
</form>
<script type="text/javascript">
<!--
  function jieqiFormValidate_newmessage(){
    if ( window.document.newmessage.title.value == "" ){
      alert( "请输入 标题" );
      window.document.newmessage.title.focus();
      return false;
    }
  }
//-->
</script>
{?/if?}