$header 
<script language="JavaScript">
<!--
var postmaxchars = 12345;
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='./index.php?mods=moderate&action="+selObj.options[selObj.selectedIndex].value+"&forumid={$this->input['forumid']}&postid={$this->input['postid']}'");
  if (restore) selObj.selectedIndex=0;
}
function validate(theform) {
	if (theform.replyBody.value=="" || theform.replyTitle.value=="") {
		alert("你必须填写主题和信息栏!");
		return false; }
	if (postmaxchars != 0) {
		if (theform.replyBody.value.length > {$this->set[postCommonWidth]}) {
			alert("你的信息太长了. 请限制在 {$this->set[postCommonWidth]} 个字符以内. 目前已经有 "+theform.replyBody.value.length+" 个字符.");
			return false; }
		else { return true; }
	} else { return true; }
}
//-->
</script>
<script language=javascript>
ie = (document.all)? true:false
if (ie){
function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.ctbform.submit();}}
}

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}

</script>
<br>
<p>$voteBody </p>
<table cellpadding="1" cellspacing="0" align="center" class="tOuter">
<tr>
<td>
<p align="right">
	<img src="{$this->imgPath}/system/prev.gif" border=0> <a href="./index.php?mods=topicdisplay&forumid={$this->input['forumid']}&postid={$this->input['postid']}&action=prev">
上一主题</a> | <a href="./index.php?mods=topicdisplay&forumid={$this->input['forumid']}&postid={$this->input['postid']}&action=next">
下一主题</a> <img src="{$this->imgPath}/system/next.gif" border=0><bR>
</p>
<table cellspacing="1" cellpadding="3" class="tInner">
  <tr class="tHead">
    <td width="12%">
    <p align="left"><b>作者</b>　</td>
    <td width="50%">
    <table align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111">
      <tr>
        <td width="80%"><b>主题</b>　</td>
        <td width="50%">
        <p align="right">
	<a href="./index.php?mods=post&forumid={$this->input['forumid']}"><img src="{$this->imgPath}/system/new_post.gif" border=0 alt="发表"></a>&nbsp;
	<a href="./index.php?mods=post&forumid={$this->input['forumid']}&action=showpoll"><img src="{$this->imgPath}/system/new_poll.gif" border=0 alt="投票"></a>&nbsp;
	<a href="./index.php?mods=post&action=showReply&forumid={$this->input['forumid']}&postid={$this->input['postid']}"><img src="{$this->imgPath}/system/new_reply.gif" border=0 alt="回复"></a></td>
      </tr>
    </table>
    </td>
  </tr>
</table>
<br>
$showPostBody</td>
</tr>
</table>
<table cellspacing="1" cellpadding="3" align="center" class="tOuter2">
      <form name="ctbform2" method="post">
  <tr> 
    <td width="63%">(共 $totalNumber 页) $page</td>
      <td width="37%" align="right"> 
        <input type="hidden" name="forumid" value="{$this->input['forumid']}">
        <input type="hidden" name="postid" value="{$this->input['postid']}">
        <a href="./index.php?mods=topicdisplay&action=print&forumid={$this->input['forumid']}&postid={$this->input['postid']}"><img src="{$this->imgPath}/system/print.gif" border=0 alt="打印"></a>&nbsp;
	<a href="./index.php?mods=userread&action=readSave&forumid={$this->input['forumid']}&postid={$this->input['postid']}"><img src="{$this->imgPath}/system/save.gif" border=0 alt="收藏"></a>&nbsp;
	<a href="./index.php?mods=topicdisplay&action=sentFriend&forumid={$this->input['forumid']}&postid={$this->input['postid']}"><img src="{$this->imgPath}/system/post.gif" border=0 alt="发送"></a> {$this->forumList} 
        $manageHtm</td>
  </tr>
      </form>
</table>
<br>

<table cellpadding="0" cellspacing="1" align="center" class="tOuter">
<tr>
	<td>

<table cellspacing="1" cellpadding="4" class="tInner">
  <tr class="tHead"> 
      <td colspan=2><b>快速回复</b></td>
  </tr>
  <form name="ctbform" method="post" action="./index.php"  onSubmit="return validate(this)">
  <tr class="tBody1"> 
      <td width="16%" align="center">标题:</td>
      <td width="84%"> 
        <input type="text" name="replyTitle" size="68" value="Re:$postTitleFirst" maxlength=42>
        <input type="hidden" name="action" value="reply">
        <input type="hidden" name="mods" value="post">
        <input type="hidden" name="forumid" value="{$this->input['forumid']}">
        <input type="hidden" name="postid" value="{$this->input['postid']}">
        <input type="hidden" name="replyAuthor" value="{$this->sess['sess_uname']}">
        <input type="hidden" name="formTime" value="{$this->formTime}">
	  </td>
  </tr>
  <tr class="tBody1"> 
      <td width="16%" align="center">信息:</td>
      <td width="84%"> 
        <textarea name="replyBody" cols="92" rows="5"  onkeyup=checkcomments() wrap=physical   onkeydown=ctlent()></textarea>
        <br>
        <script>
                <!--
          function checkcomments() {
	     		document.ctbform.charleft.value = document.ctbform.replyBody.value.length;
  				if (document.ctbform.replyBody.value.length > {$this->set[postCommonWidth]}) {
					length = document.ctbform.replyBody.value.length - {$this->set[postCommonWidth]};
					alert("您输入的文章长度超过限制了，请返回检查！限制字符长度是 " + {$this->set[postCommonWidth]} + " 个字符 ， 您的文章长度是 " + document.ctbform.replyBody.value.length + " 个字符，超过了 " + length + "个字符。");
					return false;
				}
            }
         //-->
        </script>
        自动显示帖子长度：<input type="text" name="charleft" value="0" readonly size="10">
      </td>
  </tr>
  <tr class="tBody1"> 
      <td width="16%">　</td>
      <td width="84%"> 
        <input type="submit" name="Submit" value=" 确定 ">
        <input type="reset" name="Submit2" value=" 取消 ">
        [<span class="highLight"><b>Ctrl+Enter</b>直接提交贴子</span>] </td>
  </tr>
      </form>
    <tr class="tHead">
    <td colspan="2">　</td>
  </tr>
</table>

    </td>
</tr>
</table>
<br>
$footer