<table class="grid" width="100%" align="center">
<caption>
标题：{?$reporttitle?}
</caption>
  <tr>
    <td width="20%" class="odd">报告人：</td>
    <td width="80%" class="even"><a href="{?function jieqi_geturl:'system':'user':$reportuid?}" target="_blank">{?$reportname?}</a></td>
  </tr>
  <tr>
    <td class="odd">报告类型：</td>
    <td class="even">{?$sortname?} - {?$typename?}</td>
  </tr>
  <tr>
    <td class="odd">报告时间：</td>
    <td class="even">{?$reporttime|date:"Y-m-d H:i:s"?}</td>
  </tr>
  <tr>
    <td class="odd">报告内容：</td>
    <td class="even">{?$reporttext?}</td>
  </tr>
  <tr>
    <td colspan="2" class="foot">{?if $reportuid > 0?}<a href="{?$jieqi_url?}/admin/newmessage.php?receiver={?$reportname|urlencode?}">使用短消息回复</a>&nbsp;&nbsp;&nbsp;&nbsp;{?/if?}<a href="javascript:if(confirm('确实要删除该报告么？')) document.location='reportlist.php?checkaction=1&checkid[]={?$reportid?}';">删除报告</a></td>
  </tr>
</table>
{?if $reportuid > 0?}
<br />
<form name="frmnewmessage" id="frmnewmessage" action="{?$jieqi_url?}/admin/newmessage.php?do=submit" method="post" onsubmit="return frmnewmessage_validate();">
<table class="grid" width="100%" align="center">
  <caption>快速短消息回复</caption>
  <tr valign="middle" align="left">
    <td class="odd" width="25%">收件人</td>
    <td class="even"><a href="{?function jieqi_geturl:'system':'user':$reportuid?}" target="_blank">{?$reportname?}</a><input type="hidden" name="receiver" id="receiver" size="30" maxlength="30" value="{?$reportname?}" /></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="30" maxlength="100" value="Re:{?$reporttitle?}" /></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 frmnewmessage_validate(){
    if ( document.frmnewmessage.title.value == "" ){
      alert( "请输入标题" );
      document.frmnewmessage.title.focus();
      return false;
    }
  }
//-->
</script>
{?/if?}