dispbbs.jsp
上传用户:yuyunping
上传日期:2013-03-21
资源大小:1844k
文件大小:20k
源码类别:

Java书籍

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <%@ page import="net.acai.util.*,
  3.  net.acai.forum.*,
  4.  net.acai.forum.util.*,
  5.  java.util.Vector"%>
  6. <%@ include file="INC/const.jsp"%>
  7. <%
  8. int perPage=ParamUtil.getInt(request,"perPage",10);
  9. int Page=ParamUtil.getInt(request,"Page",1);
  10. int startPage=((Page-1)/10)*10+1;
  11. int start=(Page-1)*perPage+1;
  12. int rootID=ParamUtil.getInt(request,"rootID",1);
  13. int announceID=ParamUtil.getInt(request,"announceID",1);
  14. stats="查看帖子";
  15. try{
  16. Forum  theForum=new Forum(forumID);
  17. Vector forumMSGs=theForum.getForumMSGs(forumID,rootID,announceID,start,perPage);
  18. ForumMSG topicMSG=(ForumMSG)forumMSGs.get(0);
  19. stats=theForum.getForumType()+" 浏览:"+topicMSG.getTopic();
  20. SkinUtil.checkUserStats(request,response,stats);
  21. %>
  22. <%@ include file="INC/js.jsp"%>
  23. <style>
  24. TABLE {BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 1px; }
  25. TD {BORDER-RIGHT: 0px; BORDER-TOP: 0px; color: #000000; }
  26. </style>
  27. <%@ include file="INC/theme.jsp"%>
  28. <%
  29. int totalMSGNum=theForum.getForumMSGsNum();
  30. %>
  31. <% stats=" 浏览:"+topicMSG.getTopic();
  32. out.println(headLine(theForum.getForumID(),forumName,forumLogo,theForum.getForumType(),2,stats));
  33. %>
  34. <table cellpadding=0 cellspacing=0 border=0 width="95%" align=center>
  35. <tr><td align=left width=* valign=middle>&nbsp; <a href=announce.jsp?forumID=<%=forumID%>> 
  36. <img src=pic/post.gif alt=发表一个新主题 border=0></a>&nbsp; <a href=vote.jsp?forumID=<%=forumID%>>
  37. <img src=pic/newpoll.gif alt=发表一个新投票 border=0></a>&nbsp;<a href=reannounce.jsp?forumID=<%=forumID%>&rootID=<%=rootID%>&parentID=<%=topicMSG.getRootID()%>> 
  38. <img src=pic/newreply1.gif alt=回复主题 border=0></a>&nbsp;  </td>
  39. <td align=right width=""50%"" valign=middle>您是本帖的第 <B><%=topicMSG.getHits()%></B> 个阅读者</td>
  40. </tr></table>
  41. <table cellpadding=0 cellspacing=0 border=0 width="95%" bgcolor=#FFFFFF align=center>
  42. <tr> <td height=1> </td></tr></table>
  43. <table cellpadding=0 cellspacing=0 border=0 width="95%" bgcolor="<%=tableBackColor%>" align=center>
  44. <tr><td height=1> </td></tr></table>
  45. <table cellpadding=0 cellspacing=0 border=0 width="95%" align=center><tr>
  46. <td bgcolor="<%=tableBackColor%>" valign=middle width=1 height=24> </td>
  47. <td bgcolor="<%=tableTitleColor%>" colspan=2 align=left valign=middle width=*> 
  48. <table cellpadding=0 cellspacing=1 border=0 width="100%">
  49. <tr><td bgcolor="<%=tableTitleColor%>" align=left valign=middle width="65%"><font color="<%=tableFontColor%>">
  50.              &nbsp;<b>* 贴子主题</B>: <%=topicMSG.getTopic()%></font> </td><td width=""35%"" align=right>
  51.  <a href=# onclick="javascript:WebBrowser.ExecWB(4,1)"><img src=pic/saveas.gif border=0 width=16 height=16 alt=保存该页为文件 align=absmiddle></a>&nbsp;<object id="WebBrowser" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object><a href=report.jsp?forumID="&forumID&"&rootID="&rootID&"&announceID="&announceid_1&"><img src=pic/report.gif alt=报告本帖给版主 border=0></a>&nbsp; 
  52. <a href="printpage.jsp?forumID=<%=forumID%>&rootID=<%=rootID%>&announceID=<%=announceID%>"><img src=pic/printpage.gif alt=显示可打印的版本 border=0></a>&nbsp; 
  53.  <a href="usersms.jsp?action=new&forumID=<%=forumID%>&rootID=<%=rootID%>&announceID=<%=announceID%>">
  54. <img src=pic/pag.gif border=0 alt=把本贴打包邮递></a>&nbsp; 
  55. <a href="favadd.jsp?forumID=<%=forumID%>&rootID=<%=rootID%>&announceID=<%=announceID%>">
  56. <IMG SRC=pic/fav_add.gif BORDER=0 alt=把本贴加入论坛收藏夹></a>&nbsp; 
  57. <a href="usersms.jsp?action=new&forumID=<%=forumID%>&rootID=<%=rootID%>&announceID=<%=announceID%>">
  58. <img src=pic/emailtofriend.gif border=0 alt=发送本页面给朋友></a>&nbsp;
  59. <a href=#><span style="CURSOR: hand" onClick="window.external.AddFavorite('<%=forumURL%>dispbbs.jsp?forumID=<%=forumID%>&rootID=<%=rootID%>&announceID=<%=topicMSG.getAnnounceID()%>', ' <%=forumName%>- <%=topicMSG.getTopic()%>')"><IMG SRC=pic/fav_add1.gif BORDER=0 width=15 height=15 alt=把本贴加入IE收藏夹></span></a>
  60. &nbsp;</td></tr>
  61. </table></td><td bgcolor="&tableBackColor&" valign=middle width=1 height=24> </td>
  62. </tr></table>
  63. <table cellpadding=0 cellspacing=0 border=0 width=""95%"" bgcolor="&tableBackColor&" align=center>
  64. <tr> <td height=1> </td></tr></table>
  65. <%
  66. for (i=0;i<forumMSGs.size();i++)
  67. {
  68. //if(i>=totalMSGNum) break;
  69. ForumMSG theMSG=(ForumMSG)forumMSGs.get(i);
  70. User theUser=theMSG.getUser();
  71. String nameStyle="";
  72. if (theUser.getUserClass()==18)
  73. nameStyle="filter:glow(color=green,strength=2)";
  74. else if(theUser.getUserClass()==19)
  75. nameStyle="filter:glow(color=#660099,strength=2)";
  76. else if (theUser.getUserClass()==20)
  77. nameStyle="filter:glow(color=#FF3333,strength=2)";
  78. else
  79. nameStyle="filter:glow(color=#798AB7,strength=2)";
  80. String bgcolor=tableBodyColor;
  81. String abgcolor=aTableBodyColor;
  82. %>
  83. <table cellpadding=0 cellspacing=0 border=0 width="95%" align=center>
  84. <tr><td bgcolor="<%=tableBackColor%>" valign=middle width=1 height=24> </td>
  85. <td bgcolor="<%=bgcolor%>">
  86. <table width="100%" cellpadding=4 cellspacing=0><tr>
  87.         <td bgcolor="<%=bgcolor%>" valign=top width="20%" rowspan=2><img src="" width=0 height=4><BR><table width="100%" cellpadding=4 cellspacing=0 style="<%=nameStyle%>"><tr><td>
  88.         &nbsp;<img src=<%=theUser.getFace()%>>  &nbsp;<a name="<%=theMSG.getAnnounceID()%>"><B><%=theUser.getUserName()%></B></a></td></tr></table>
  89. <%
  90. if ("1".equals(titleFlag)&&theUser.getTitle()!=null&&!"".equals(theUser.getTitle())){
  91. out.println(" 头衔:"+theUser.getTitle()+"<br>");
  92. }
  93.     out.println("<br>&nbsp;&nbsp;等级:"+theUser.getUserClassStr()+"<BR>");
  94. /*if FromFlag=0 {
  95. if boardmaster or master {
  96. comefrom=address(ip)
  97. else
  98.          comefrom="保密"
  99. end if
  100. else
  101. comefrom=address(ip)
  102.         end if*/
  103. out.println(" 财产:<img src=pic/bar1.gif width=""+(theUser.getUserWealth()*0.005+3)+"" height=8 alt="+theUser.getUserWealth()+"><br>"+
  104. " 经验:<img src=pic/bar4.gif width="+(theUser.getUserEP()*0.005+3)+" height=8 alt="+theUser.getUserEP()+"><br>"+
  105. " 魅力:<img src=pic/bar5.gif width="+(theUser.getUserCP()*0.005)+3+" height=8 alt="+theUser.getUserCP()+"><br>");
  106. out.println("&nbsp;&nbsp;注册:"+Format.getStrDate(theUser.getAddDate()));
  107. out.println("<BR> &nbsp;&nbsp;文章:"+theUser.getArticle()+"  <br>&nbsp;&nbsp;鉴定:"+"保密"+" <img src="" width=0 height=4><BR>"+
  108. "</td><td bgcolor="+bgcolor+" width=1 height=100% rowspan=2>"+ 
  109.             "<table width=1 height="100%" cellpadding=0 cellspacing=0 bgcolor="+tableTitleColor+">"+
  110.             "<tr><td width=1></td></tr></table></td>"+
  111. "<td bgcolor="+bgcolor+" valign=top width=* height="95%"><img src="" width=0 height=4><BR>"+
  112.             "&nbsp; <a href=javascript:openScript('usersms.jsp?action=new&touser="+theUser.getUserName()+"',420,320)>"+
  113. "<img src=pic/message.gif border=0 alt=给"+theUser.getUserName()+"发送一个短消息></a>&nbsp;"+
  114.             "<a href=javascript:openScript('dispuser.jsp?name="+theUser.getUserName()+"',350,300)>"+
  115. "<img src=pic/profile.gif border=0 alt=查看"+theUser.getUserName()+"的个人资料></a>&nbsp;"+
  116.             "<a href=queryresult.jsp?sType=1&nSearch=3&keyword="+theUser.getUserName()+"&forumID="+forumID+"&SearchDate=ALL target=_blank><img src=pic/find.gif border=0 alt="搜索"+theUser.getUserName()+"在"+response.encodeURL(theForum.getForumType())+"的所有贴子"></a>&nbsp; ");
  117. if (theUser.getUserEmail()!=null&&!"".equals(theUser.getUserEmail()))
  118. out.println("<A href='mailto:"+theUser.getUserEmail()+"'><IMG alt='点击这里发送电邮给"+theUser.getUserName()+"' border=0 src='pic/email.gif'></A>&nbsp;"); 
  119.     if (!"".equals(theUser.getOicq()))
  120. out.println("<a href=http://search.tencent.com/cgi-bin/friend/user_show_info?ln="+theUser.getOicq()+" target=_blank title=""+theUser.getUserName()+"["+theUser.getOicq()+"]的QQ情况"><img src=pic/oicq.gif width=16 height=16 border=0>OICQ</a>&nbsp;");
  121. if (theUser.getHomePage()!=null&&!"".equals(theUser.getHomePage()))
  122. out.println("<A href='"+theUser.getHomePage()+"' target=_blank><IMG alt='访问"+theUser.getUserName()+"的主页'  border=0 src='pic/homepage.gif'></A>&nbsp; ");
  123. out.println("<a href=reannounce.jsp?forumID="+forumID+"&rootID="+rootID+"&parentID="+theMSG.getAnnounceID()+"&reply=true>"+
  124. "<img src=pic/reply.gif border=0 alt=引用回复这个贴子></a>&nbsp; "+
  125. "<a href=reannounce.jsp?forumID="+forumID+"&rootID="+rootID+"&parentID="+theMSG.getAnnounceID()+">"+
  126. "<img src=pic/reply_a.gif border=0 alt=回复这个贴子></a>&nbsp; "+
  127.             "<BR><hr width="100%" size=1 color=#777777>"+
  128.             "<table cellpadding=0 cellspacing=0 width="95%" style="word-break:break-all">"+
  129.             "<tr><td width=32 align=left valign=top>");
  130. if (theMSG.getExpression()!=null&&!"".equals(theMSG.getExpression()))
  131. out.println("<img src='face/"+theMSG.getExpression()+"' border=0 alt=发贴心情>");
  132. out.println("&nbsp;</td><td style="LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word">"+
  133. "<font face=宋体 color=#333333>" );
  134. out.println("<b>"+theMSG.getTopic()+"</b><br>"+theMSG.getBody()); 
  135. if (theMSG.getIsVote()&& theMSG.getAnnounceID()==theMSG.getRootID()){
  136. try{
  137. ForumVote theVote=theForum.getForumVote(theMSG.getAnnounceID());
  138. String [] votes=theVote.getVoteS();
  139. int [] voteNum=theVote.getVoteNumS();
  140. out.println("<table border=0 cellpadding=0 cellspacing=3 width="95%" align=center><tr>");
  141. out.println("<td colSpan=2>以下为投票内容:</td></tr>");
  142. out.println("<form action=postvote.jsp?forumID="+forumID+"&announceID="+rootID+"&action="+theVote.getVoteType()+" method=POST>");
  143. String voteString="";
  144. int voteSign=0;
  145. for(int voteI=0;voteI<votes.length;voteI++)
  146. if(!votes[voteI].trim().equals("")){
  147. if (theVote.getVoteType()==0)
  148. voteString+=(voteSign+1)+".  <input type=radio name=postVote value=""+(voteSign)+"">"+(votes[voteI].trim())+"<br>";
  149. else
  150. voteString+=(voteSign+1)+".  <input type=checkbox name=postVote_"+voteSign+" value=""+voteSign+"">"+votes[voteI].trim()+"<br>";
  151. voteSign++;
  152. }
  153. out.println("<tr><td width="60%"><span style="LINE-HEIGHT: 200%;">"+voteString+"</span></td>");
  154. voteString="";
  155. for(int voteI=0;voteI<voteNum.length;voteI++)
  156. voteString+="票数:<font color=#990000><b>"+voteNum[voteI]+"</b></font><br>";
  157. out.println("<td width="40%" valign=top><span style="LINE-HEIGHT: 200%;">"+voteString+"</span></td></tr>");
  158. voteString="";
  159. if("".equals(userName))
  160. out.println("<tr><td colSpan=2><br><font color=#990000>您还没有登陆,不能进行投票。</font></td>");
  161. else
  162. if (theVote.getUserSign(userName))
  163. out.println("<tr><td colSpan=2><br><font color=#990000>您已经投过票了,请看结果吧。</font></td>");
  164. else
  165. out.println("<tr><td colSpan=2><br><input type=submit name=Submit value='投 票'></td>");
  166. out.println("</form>");
  167. out.println("</tr></table>");
  168. }
  169. catch(Exception e){
  170. e.printStackTrace();
  171. out.println(e.getMessage());
  172. }
  173. }
  174. if (theMSG.getSignFlag())
  175. if (!"".equals(theUser.getSign()))
  176. out.println("<p><div align='right'>----------------------------------------------<br><font color=red>"+theUser.getSign()+"</font></div>");
  177. out.println("</font> </td><td width=16> </td></tr></table></td></tr><tr>"+ 
  178. "<td class=bottomline bgcolor="+bgcolor+" valign=bottom> "+
  179.             "<hr width=100% size=1 color=#777777>"+
  180.             "<table width=100% cellpadding=0 cellspacing=0><tr><td align=left valign=bottom> ");
  181. if (theUser.getUserName().equals(userName)||forumMaster||master)
  182. out.println("&nbsp; <a href=editannounce.jsp?forumID="+forumID+"&rootID="+rootID+"&announceID="+theMSG.getAnnounceID()+"><img src=pic/edit.gif border=0 alt=编辑这个贴子></a>");
  183. out.println("</td><td align=left valign=bottom> 发贴时间: "+theMSG.getDateAndTime()+" </td>"+
  184. "<td align=left valign=bottom> <img src=pic/ip.gif border=0 width=13 height=15 alt="">  "); 
  185. if (("0").equals(ipFlag)) {
  186. if (forumMaster||master) {
  187. out.println(theMSG.getUserIP());
  188. }
  189. else{
  190.          out.println("已设置为保密!");
  191. }
  192. }
  193. else
  194. out.println("已设置为保密!");
  195.         
  196. out.println("</td><td align=right nowarp valign=bottom width=110>");
  197. if ((forumMaster&&theForum.getForumMaster().indexOf(userName)>-1)||master){
  198. if (theMSG.getAnnounceID()!=rootID)
  199. out.println("<a href=admin_postings.jsp?action=delmsg&forumID="+forumID+"&announceID="+theMSG.getAnnounceID()+"&rootID="+rootID+"&username="+userName+" title=注意:本操作将删除单个贴子,不能恢复><img src=pic/delete.gif border=0></a> ");
  200. out.println("<a href=admin_postings.jsp?action=copy&forumID="+forumID+"&announceID="+theMSG.getAnnounceID()+"&rootID="+rootID+" title=复制单个贴子到别的版面><img src=pic/copy.gif border=0></a>  ");
  201. if (!theMSG.getIsBest())
  202. out.println("<a href=admin_postings.jsp?action=isbest&forumID="+forumID+"&announceID="+theMSG.getAnnounceID()+"&rootID="+rootID+" title=将单个贴子加入精华><img src=pic/jing.gif border=0></a>" );
  203. else
  204. out.println("<a href=admin_postings.jsp?action=nobest&forumID="+forumID+"&announceID="+theMSG.getAnnounceID()+"&rootID="+rootID+" title=解除本贴子精华状态><img src=pic/jing.gif border=0></a>" );
  205. } out.println("</td><td align=right valign=bottom width=4> </td></tr></table>"+
  206. "<img src="" width=0 height=4><BR></td></tr></table></td>"+
  207. "<td bgcolor="+tableBackColor+" valign=middle width=1 height=24> </td></tr></table>");
  208. out.println("<table cellpadding=0 cellspacing=0 border=0 width="95%" bgcolor="+tableBackColor+" align=center>"+
  209. "<tr><td height=1> </td></tr></table>");
  210.  }
  211.  
  212.    int n;
  213.    if(totalMSGNum%perPage==0)
  214.       n= totalMSGNum/perPage;
  215.    else
  216.       n= totalMSGNum/perPage+1;
  217.   
  218. out.println("<table border=0 cellpadding=0 cellspacing=3 width="95%" align=center>"+
  219. "<tr><td valign=middle nowrap>"+
  220. "<span class=smallFont>页次:<strong>"+Page+"</strong>/<strong>"+n+"</strong>页"+
  221. "每页<strong>"+perPage+"</strong> 本主题贴数<strong>"+totalMSGNum+"</strong></td>"+
  222. "<td valign=middle nowrap><div align=right><p>分页: ");
  223.    for (int p=1;p<n+1;p++) 
  224.         if (p==Page)
  225.            out.println("<font color=gray>[<b>"+p+"</b>]</font> ");
  226. else
  227. out.println("<a href='dispbbs.jsp?forumID="+forumID+"&rootID="+rootID+"&announceID="+topicMSG.getAnnounceID()+"&Page="+p+"&skin="+1+"'>[<b>"+p+"</b>]</a>   ");
  228. out.println("</p></div></td></tr></table>");
  229. %>
  230. <table cellpadding=0 cellspacing=0 border=0 width="95%" align=center>
  231. <tr bgcolor=<%=tableTitleColor%>><td align=left width=90% valign=middle> <font color=<%=tableFontColor%>>&nbsp;<b>*快速回复</b>:<%=topicMSG.getTopic()%></font></td>
  232. <td width=10% align=right valign=middle height=24> <a href=#top><img src=pic/gotop.gif border=0><font color=<%=tableFontColor%>>顶端</font></a>&nbsp;</td></tr></table>
  233. <TABLE cellSpacing=1 cellPadding=1 width=95% border=0 align=center>
  234. <TBODY> <TR bgColor=<%=tableBackColor%>><TD vAlign=top colSpan=3> 
  235. <TABLE cellSpacing=0 cellPadding=3 width=100% bgColor=<%=tableTitleColor%> border=0>
  236. <form action=SaveReAnnounce.jsp?method=fastreply&forumID=<%=forumID%> method=POST  name=frmAnnounce onSubmit=submitonce(this)>
  237. <input type=hidden name=parentID value=<%=topicMSG.getAnnounceID()%>>
  238. <input type=hidden name=rootID value=<%=rootID%>>
  239. <INPUT TYPE=hidden name=forumType value=<%=theForum.getForumType()%>>
  240. <TBODY><TR bgColor=<%=tableBodyColor%>><TD noWrap width=175>你的用户名:</TD>
  241.             <TD><INPUT maxLength=25 size=15 value="<%=userName%>" name="userName">
  242.             &nbsp;&nbsp; <A href=reg.jsp>还没注册?</A> 密码: 
  243.             <INPUT type=password maxLength=13 size=15 value="<%=userPassword%>" name="userPassword">
  244.             &nbsp;&nbsp; <A href=lostpass.jsp>忘记密码?</A> </TD></TR>
  245. <TR bgColor=<%=aTableBodyColor%>> <TD vAlign=top noWrap><b>内容</b><br>
  246.             <li>HTML标签: 
  247. <%if(!theForum.getStrAllowHTML())
  248. out.println("不可用"); 
  249. else
  250. out.println("允许"); 
  251. out.println("<li>UBB标签:"); 
  252. if(!theForum.getStrAllowForumCode())
  253. out.println("不可用 ");
  254. else
  255. out.println("允许");
  256. out.println("<li>贴图标签: ");
  257. if (!theForum.getStrIcons())
  258. out.println("不可用");
  259. else
  260. out.println("允许");
  261. out.println("<li>Flash标签:");
  262. if (!theForum.getStrFlash())
  263. out.println("不可用");
  264. else
  265. out.println("允许");
  266. out.println("<li>表情字符转换:");
  267. if (!theForum.getStrIMGInPosts())
  268. out.println("不可用");
  269. else
  270. out.println("允许");
  271. out.println("<li>上传图片:");
  272. if ("0".equals(uploadPic))
  273. out.println("不可用");
  274. else
  275. out.println("允许");
  276. %>
  277. <li>最多"<%=Integer.parseInt(announceMaxBytes)/1024%>"KB </TD><TD> 
  278. <TEXTAREA name=content cols=80 rows=6 wrap=VIRTUAL title=可以使用Ctrl+Enter直接提交贴子  onkeydown=ctlent()></TEXTAREA>
  279.             </TD></TR><TR bgColor=<%=tableBodyColor%>><TD noWrap> 
  280. <INPUT type=checkbox value=0 name=emailFlag>
  281.             邮件回复 <INPUT type=checkbox CHECKED value=1 name=signFlag>
  282.             显示签名 </TD><TD width="100%"> 
  283.             <input type=Submit value=OK!发表我的回应帖子 name=Submit>
  284.             &nbsp;<input type=reset name=Clear value=清空内容!>
  285.             [<font color=&alertFontColor&>Ctrl+Enter直接提交贴子</font>] </TD>
  286. </TR></FORM></TBODY></TABLE></TD></TR> </TBODY> </TABLE>
  287. <%
  288. if ((forumMaster&&theForum.getForumMaster().indexOf(userName)>-1)||master)  {
  289. out.println( "<TABLE cellSpacing=0 cellPadding=0 width=""+tableWidth+"" border=0 align=center>"+
  290. "<tr valign=center> <td width =100% align=right><font color="+bodyFontColor+"> ");
  291. if(!topicMSG.getLockTopic()){
  292. out.println("<a href=admin_postings.jsp?action=lock&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=锁定本主题><font color="+bodyFontColor+">锁定</font></a> ");
  293. }
  294. else{
  295. out.println("<a href=admin_postings.jsp?action=unlock&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=将本主题解开锁定><font color="+bodyFontColor+">解锁</font></a>");
  296. }
  297. out.println("  | <a href=admin_postings.jsp?action=deltopic&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+"&username="+response.encodeURL(topicMSG.getUserName())+" title=注意:本操作将删除本主题所有贴子,不能恢复><font color="+bodyFontColor+">删除</font></a>"+ 
  298. "  | <a href=admin_postings.jsp?action=move&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=移动主题><font color="+bodyFontColor+">移动</font></a>  |  ");
  299. if (!topicMSG.getIsTop()) {
  300. out.println( "<a href=admin_postings.jsp?action=top&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=将本主题固顶><font color="+bodyFontColor+">固顶</font></a>");
  301. }
  302. else{
  303. out.println( "<a href=admin_postings.jsp?action=untop&forumID="+theForum.getForumID()+"&announceID="+topicMSG.getAnnounceID()+"&rootID="+topicMSG.getRootID()+" title=将本主题固顶状态解除><font color="+bodyFontColor+">解固</font></a>");
  304. }
  305. out.println( "  | <a href="admin_boardaset.jsp?forumID="+theForum.getForumID()+""><font color="+bodyFontColor+">发布公告</font></a>  | <a href="admin_alldel.jsp?forumID="+theForum.getForumID()+"&action=delall"><font color="+bodyFontColor+">批量删除</font></a>");
  306. out.println( "</font></td></tr></table>");
  307. }
  308. %>
  309. <%
  310. }
  311. catch(Exception e){
  312. e.printStackTrace();
  313. //out.println("错误请求!");
  314. }
  315. %>
  316. <script language=javascript>
  317. <!--
  318. ie = (document.all)? true:false
  319. if (ie){
  320. function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.frmAnnounce.submit();}}
  321. }
  322. //-->
  323. </script>
  324. <%@ include file="foot.jsp"%>