$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>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
  <tr> 
    <td width="63%">(共 $totalNumber 页) $page</td>
    <td align="right" width="37%">
	<a href="./index.php?mods=post&forumid={$this->input['forumid']}">发表</a>&nbsp;|&nbsp;&nbsp;<a href="./index.php?mods=post&forumid={$this->input['forumid']}&action=showpoll">投票</a>&nbsp;|&nbsp;&nbsp;
<a href="./index.php?mods=post&action=showReply&forumid={$this->input['forumid']}&postid={$this->input['postid']}">回复</a>&nbsp;| &nbsp;
<a href="./index.php?mods=topicdisplay&action=print&forumid={$this->input['forumid']}&postid={$this->input['postid']}">打印</a>&nbsp;|&nbsp;&nbsp;
<a href="./index.php?mods=userread&action=readSave&forumid={$this->input['forumid']}&postid={$this->input['postid']}">收藏</a>&nbsp;|&nbsp;&nbsp;
<a href="./index.php?mods=topicdisplay&action=sentFriend&forumid={$this->input['forumid']}&postid={$this->input['postid']}">发送</a>
	  </td>
  </tr>
</table>
$voteBody
<table width="100%" border="0" cellspacing="1" cellpadding="5" bgcolor="#6394bd">
  <tr bgcolor="#6394bd"> 
    <td width="23%"><font color=white><b>作者</b></td>
    <td width="77%">
			<!-- added by cx for next/prev -->
			<table cellpadding="0" cellspacing="0" align="right">
				<tr>
					<td align="right">< <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> ></td>
				</tr>
			</table>
			<!-- /added by cx for next/prev -->
			<font color=white><b>主题</b>
		</td>
  </tr>
  $showPostBody 
  <tr bgcolor="#dee7ef">
    <td width="23%">&nbsp;</td>
    <td width="77%" bgcolor="#dee7ef" align="right">&nbsp;<!-- added by cx for next/prev -->< <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> ><!-- /added by cx for next/prev --></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
      <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']}">
        <select name="menu1" onChange="MM_jumpMenu('parent',this,0)" class="input5">
          <option value="-1" selected>版主管理...</option>
          <option value="top_go">|-提前主题</option>
          <option value="edit">|-编辑主题</option>
          <option value="del">|-删除主题</option>
          <option value="del_go">|-删除回帖</option>
          <option value="copy">|-复制主题</option>
          <option value="move">|-移动主题</option>
		  <option value="good">|-标记精华</option>
          <option value="top">|-置顶/取消</option>
          <option value="close">|-锁定/解锁</option>
          <option value="upload">|-上传/控制</option>
          <option value="download">|-下载/控制</option>
        </select>
        <input type="submit" name="Submit3" value="确定">
      </td>
  </tr>
      </form>
</table>
<br>
<table width="100%" border="0" cellspacing="1" cellpadding="4" bgcolor="#6394bd">
  <tr bgcolor="#6394bd"> 
      <td colspan=2><b>&nbsp;<font color=white><b>-=>快速回复</b></font></b></td>
  </tr>
  <form name="ctbform" method="post" action="./index.php"  onSubmit="return validate(this)">
  <tr bgcolor="#FFFFFF"> 
      <td width="16%" align="center">标题:</td>
      <td width="84%"> 
        <input type="text" name="replyTitle" class="input2" 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']}">
	  </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
      <td width="16%" align="center">信息:</td>
      <td width="84%"> 
        <textarea name="replyBody" class="input4" 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 class="input2" size="10">
      </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
      <td width="16%">&nbsp;</td>
      <td width="84%"> 
        <input type="submit" name="Submit" value=" 确定 " class="input1">
        <input type="reset" name="Submit2" value=" 取消 " class="input1">
        [<font color="#FF0000"><b>Ctrl+Enter</b>直接提交贴子</font>] </td>
  </tr>
      </form>
    <tr>
    <td bgcolor="#dee7ef" colspan="2">&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td align=left><a href=#top><img src="{$this->tplPath}/images/system/gotop.gif" border=0>顶端</a></td><form name="ctbform3" method="post" action="./index.php?mods=forumdisplay">
	<td align=right>{$this->forumList}<input type="submit" name="submit" value="跳转"  class="input5"></td></form>
  </tr>
  </table>
$footer