showblog.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:23k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import="com.redmoon.forum.ui.*"%>
  3. <%@ page import="cn.js.fan.db.*"%>
  4. <%@ page import="cn.js.fan.util.*"%>
  5. <%@ page import="cn.js.fan.web.*"%>
  6. <%@ page import="com.redmoon.blog.UserConfigDb"%>
  7. <%@ page import="com.redmoon.forum.*"%>
  8. <%@ page import="com.redmoon.forum.person.*"%>
  9. <%@ page import="java.util.*"%>
  10. <%@ page import="com.redmoon.forum.plugin.*"%>
  11. <%@ page import="com.redmoon.forum.plugin2.*"%>
  12. <%@ page import="com.redmoon.forum.plugin.sweet.*"%>
  13. <%@ page import="com.redmoon.forum.plugin.base.*"%>
  14. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  15. <%
  16. long rootid;
  17. try {
  18. rootid = ParamUtil.getLong(request, "rootid");
  19. }
  20. catch (Exception e) {
  21. out.println(StrUtil.Alert(SkinUtil.LoadString(request, SkinUtil.ERR_ID))); // "标识非法!"));
  22. return;
  23. }
  24. MsgDb msgdb = new MsgDb();
  25. msgdb = msgdb.getMsgDb(rootid);
  26. // 保存下来,以用于快速回复区的插件提示
  27. MsgDb rootMsgDb = msgdb;
  28. if (!msgdb.isLoaded()) {
  29. out.print(cn.js.fan.web.SkinUtil.makeInfo(request, SkinUtil.LoadString(request, "res.label.forum.showtopic", "topic_lost"))); // "该贴已不存在!"));
  30. return;
  31. }
  32. String boardcode = msgdb.getboardcode();
  33. String userName = msgdb.getName();
  34. // 检查是否可以进入版块
  35. EntranceMgr em = new EntranceMgr();
  36. Vector vEntrancePlugin = em.getAllEntranceUnitOfBoard(boardcode);
  37. if (vEntrancePlugin.size()>0) {
  38. Iterator irpluginentrance = vEntrancePlugin.iterator();
  39. while (irpluginentrance.hasNext()) {
  40. EntranceUnit eu = (EntranceUnit)irpluginentrance.next();
  41. IPluginEntrance ipe = eu.getEntrance();
  42. try {
  43. ipe.canEnter(request, boardcode);
  44. }
  45. catch (ErrMsgException e) {
  46. out.print(StrUtil.Alert_Back(e.getMessage()));
  47. return;
  48. }
  49. }
  50. }
  51. com.redmoon.forum.Leaf msgLeaf = new com.redmoon.forum.Leaf();
  52. msgLeaf = msgLeaf.getLeaf(boardcode);
  53. String boardname = msgLeaf.getName();
  54. UserConfigDb ucd = new UserConfigDb();
  55. ucd = ucd.getUserConfigDb(userName);
  56. if (!ucd.isLoaded()) {
  57. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.label.forum.showblog","has_not_active_blog")));
  58. return;
  59. }
  60. String skinPath = "skin/" + ucd.getSkin();
  61. com.redmoon.forum.Config cfg1 = new com.redmoon.forum.Config();
  62. int msgTitleLengthMin = cfg1.getIntProperty("forum.msgTitleLengthMin");
  63. int msgTitleLengthMax = cfg1.getIntProperty("forum.msgTitleLengthMax");
  64. int msgLengthMin = cfg1.getIntProperty("forum.msgLengthMin");
  65. int msgLengthMax = cfg1.getIntProperty("forum.msgLengthMax");
  66. %>
  67. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  68. <HTML>
  69. <HEAD>
  70. <TITLE><%=msgdb.getTitle()%> - <%=Global.AppName%></TITLE>
  71. <META http-equiv=Content-Type content=text/html; charset=utf-8>
  72. <LINK href="../blog/<%=skinPath%>/skin.css" type=text/css rel=stylesheet>
  73. <LINK href="../blog/images/bbs.ico" rel="SHORTCUT ICON">
  74. <STYLE>TABLE {
  75. BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 1px
  76. }
  77. TD {
  78. BORDER-RIGHT: 0px; BORDER-TOP: 0px
  79. }
  80. </STYLE>
  81. <SCRIPT language=JavaScript>
  82. <!--
  83. function zoomimg(o){
  84. return;
  85. var zoom = parseInt(o.style.zoom, 10)||100; //如果parsInt的结果为NaN,则zoom的值为100
  86. zoom += event.wheelDelta/12;
  87. if (zoom>0)
  88. o.style.zoom = zoom + "%";
  89. return false;
  90. }
  91. function SymError()
  92. {
  93.   return true;
  94. }
  95. window.onerror = SymError;
  96. //-->
  97. </SCRIPT>
  98. <SCRIPT language=JavaScript src="../blog/images/nereidFade.js"></SCRIPT>
  99. <SCRIPT>
  100. function checkclick(msg)
  101. {
  102. if(confirm(msg))
  103. event.returnValue=true;
  104. else
  105. event.returnValue=false;
  106. }
  107. function copyText(obj) {
  108. var rng = document.body.createTextRange();
  109. rng.moveToElementText(obj);
  110. rng.select();
  111. rng.execCommand('Copy');
  112. }
  113. var i=0;
  114. function formCheck()
  115. {
  116. i++;
  117. document.frmAnnounce.Content.value = getHtml();
  118. if (document.frmAnnounce.topic.value.length<<%=msgTitleLengthMin%>)
  119. {
  120. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_title"/><%=msgTitleLengthMin%>");
  121. return false;
  122. }
  123. if (document.frmAnnounce.topic.value.length><%=msgTitleLengthMax%>)
  124. {
  125. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_title"/><%=msgTitleLengthMin%>");
  126. return false;
  127. }
  128. if (document.frmAnnounce.Content.value.length<<%=msgLengthMin%>)
  129. {
  130. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_title"/><%=msgTitleLengthMin%>");
  131. return false;
  132. }
  133. if (document.frmAnnounce.Content.value.length><%=msgLengthMax%>)
  134. {
  135. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_title"/><%=msgTitleLengthMin%>");
  136. return false;
  137. }
  138. if (i>1) 
  139. {
  140. document.frmAnnounce.submit1.disabled = true;
  141. }
  142. return true;
  143. }
  144. function presskey(eventobject)
  145. {
  146. if(event.ctrlKey && window.event.keyCode==13)
  147. {
  148. i++;
  149. if (i>1) 
  150. {
  151. alert('<lt:Label res="res.label.forum.showtopic" key="wait"/>');
  152. return false;
  153. }
  154. this.document.form.submit();
  155. }
  156. }
  157. </SCRIPT>
  158. <STYLE>
  159. body {
  160. margin-top: 0px;
  161. }
  162. </STYLE>
  163. <META content="MSHTML 6.00.2800.1126" name=GENERATOR>
  164. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></HEAD>
  165. <BODY>
  166. <%@ include file="../blog/header.jsp"%>
  167. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  168. <jsp:useBean id="userservice" scope="page" class="com.redmoon.forum.person.userservice"/>
  169. <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
  170. <%
  171. String querystring = StrUtil.getNullString(request.getQueryString());
  172. String privurl=request.getRequestURL()+"?"+StrUtil.UrlEncode(querystring,"utf-8");
  173. String sqlt = "";
  174. String op = ParamUtil.get(request, "op");
  175. %>
  176. <%
  177. String sql = "select id from sq_message where rootid=" + rootid + " ORDER BY lydate asc";//orders"; 这样会使得顺序上不按时间,平板式时会让人觉得奇怪
  178. int pagesize = 10;
  179.     long totalmsg = msgdb.getMsgCount(sql, boardcode, rootid);
  180. if (op.equals("allcomm"))
  181. pagesize = (int)totalmsg;
  182. Paginator paginator = new Paginator(request, totalmsg, pagesize);
  183. int curpage = paginator.getCurPage();
  184. // 设置当前页数和总页数
  185. int totalpages = paginator.getTotalPages();
  186. if (totalpages==0)
  187. {
  188. curpage = 1;
  189. totalpages = 1;
  190. }
  191. long start = (curpage-1)*pagesize;
  192. long end = curpage*pagesize;
  193.         MsgBlockIterator irmsg = msgdb.getMsgs(sql, boardcode, rootid, start, end);
  194. %>
  195. <%
  196. // 取得显示设置
  197. BoardRenderDb boardRender = new BoardRenderDb();
  198. boardRender = boardRender.getBoardRenderDb(boardcode);
  199. // IPluginRender render = boardRender.getRender();
  200. IPluginRender render = new com.redmoon.forum.plugin.render.RenderMM();
  201. String name="",lydate="",content="",topic="";
  202. String RegDate="",Gender="",email="",sign="";
  203. int experience=0;
  204. int addcount=0;
  205. long id;
  206. int credit=0;
  207. int islocked=0,iselite=0,lylevel=0,isguide=0;
  208. String roottopic = "";
  209. int type=0;
  210. int show_ubbcode=1,show_smile=1;
  211. int iswebedit = 0;
  212. int i = 0;
  213. // 显示文章
  214. if (true) {
  215.     msgdb = rootMsgDb; 
  216.   i++;
  217.   id = msgdb.getId();
  218.   name = msgdb.getName();
  219.   topic = msgdb.getTitle();
  220.   content = msgdb.getContent();
  221.   lydate = com.redmoon.forum.ForumSkin.formatDateTime(request, msgdb.getAddDate());
  222.   type = msgdb.getType();
  223.   islocked = msgdb.getIsLocked();
  224.   iselite = msgdb.getIsElite();
  225.   lylevel = msgdb.getLevel();
  226.   iswebedit = msgdb.getIsWebedit();
  227.   show_ubbcode = msgdb.getShowUbbcode();
  228.   show_smile = msgdb.getShowSmile();
  229.   if (i==1)
  230.   {
  231.    roottopic = topic;
  232. %>
  233. <script language="JavaScript">
  234. spanroottopic.innerHTML = '<%=StrUtil.toHtml(roottopic)%>';
  235. spanhit.innerHTML = '<%=msgdb.getHit()+1%>';
  236. </script>
  237. <%
  238.   }
  239.   UserDb user = new UserDb();
  240.   user = user.getUser(name);
  241. Gender = user.getGender();
  242. if (Gender.equals("M"))
  243. Gender = SkinUtil.LoadString(request, "res.label.forum.showtopic", "sex_man"); // "男";
  244. else if (Gender.equals("F"))
  245. Gender = SkinUtil.LoadString(request, "res.label.forum.showtopic", "sex_woman"); // "女";
  246. else
  247. Gender = SkinUtil.LoadString(request, "res.label.forum.showtopic", "sex_none"); // "不详";
  248. RegDate = DateUtil.format(user.getRegDate(), "yyyy-MM-dd");
  249. experience = user.getExperience();
  250. credit = user.getCredit();
  251. addcount = user.getAddCount();
  252. email = user.getEmail(); 
  253. sign = user.getSign();
  254. %>
  255.             <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class=blog_table_main>
  256.               <tr>
  257.                 <td width="220" valign="top"><%@ include file="../blog/left.jsp"%></td>
  258.                 <td valign="top" class="blog_td_main"><TABLE width="100%" 
  259.             height="100%" border=0 align="center" cellPadding=5 cellSpacing=0 class=table_main_text style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all">
  260.                   <TBODY>
  261.                     <TR height=100%>
  262.                       <TD height="22" class="showblog_td_title"><B><span class="text_title"><lt:Label res="res.label.forum.showtopic" key="topic"/><%=msgdb.getTitle()%></span></B></TD>
  263.                       <TD width="34%" class="showblog_td_title"><lt:Label res="res.label.forum.showblog" key="add_date"/><%=lydate%>&nbsp;</TD>
  264.                     </TR>
  265.                     <TR>
  266.                       <TD colSpan=2 class="blog_td_spacer_down"></TD>
  267.                     </TR>
  268.                     <TR>
  269.                       <TD class="showblog_td_author"><lt:Label res="res.label.forum.showblog" key="author"/><%=user.getNick()%>&nbsp;
  270.                       <%
  271. OnlineUserDb ou = new OnlineUserDb();
  272. ou = ou.getOnlineUserDb(user.getName());
  273. if (ou.isLoaded())
  274. out.print(SkinUtil.LoadString(request,"res.label.forum.showblog","online"));
  275. else
  276. out.print(SkinUtil.LoadString(request,"res.label.forum.showblog","offline"));
  277. %></TD>
  278.                       <TD class="showblog_td_author"><%=SkinUtil.LoadString(request, "res.label.forum.showtopic", "reply")%><%=totalmsg-1%>&nbsp;&nbsp;&nbsp;<lt:Label res="res.label.forum.showblog" key="view"/><%=msgdb.getHit()%></TD>
  279.                     </TR>
  280.                     <TR vAlign=top>
  281.                       <TD colSpan=2><%
  282. MsgPollDb mpd = null;
  283. mpd = render.RenderVote(request, msgdb);
  284. if (type==1 && mpd!=null) {%>
  285.                               <table width="100%" border="1" cellpadding="4" cellspacing="0" borderColor="#edeced">
  286.                                 <%
  287. String ctlType = "radio";
  288. if (mpd.getInt("max_choice")>1)
  289. ctlType = "checkbox";
  290. Vector options = mpd.getOptions(msgdb.getId());
  291. int len = options.size();
  292. int[] re = new int[len];
  293. int[] bfb = new int[len];
  294. int total = 0;
  295. int k = 0;
  296. for (k=0; k<len; k++) {
  297. MsgPollOptionDb opt = (MsgPollOptionDb)options.elementAt(k);
  298. re[k] = opt.getInt("vote_count");
  299. total += re[k];
  300. }
  301. if (total!=0) {
  302. for (k=0; k<len; k++) {
  303. bfb[k] = (int)Math.round((double)re[k]/total*100);
  304. }
  305. }
  306. %>
  307.                                 <form action="vote.jsp?privurl=<%=privurl%>" name=formvote method="post">
  308.                                   <tr>
  309.                                     <td colspan="2" bgcolor="#EBECED"><b>
  310.                                       <lt:Label res="res.label.forum.showtopic" key="vote"/>
  311.                                       <%
  312.   java.util.Date epDate = mpd.getDate("expire_date");
  313.   if (epDate!=null) {%>
  314.                                       &nbsp;
  315.                                       <lt:Label res="res.label.forum.showtopic" key="vote_expire_date"/>
  316.                                       &nbsp;<%=ForumSkin.formatDate(request, epDate)%>
  317.                                       <%}%>
  318.                                       <%if (mpd.getInt("max_choice")==1) {%>
  319.                                       <lt:Label res="res.label.forum.showtopic" key="vote_type_single"/>
  320.                                       <%}else{%>
  321.                                       <lt:Label res="res.label.forum.showtopic" key="vote_type_multiple"/>
  322.                                       <%=mpd.getInt("max_choice")%>
  323.                                       <%}%>
  324.                                     </b></td>
  325.                                   </tr>
  326.                                   <tr>
  327.                                     <%
  328. int barId = 0;
  329. String showVoteUser = ParamUtil.get(request, "showVoteUser");
  330. for (k=0; k<len; k++) {
  331. MsgPollOptionDb opt = (MsgPollOptionDb)options.elementAt(k);
  332. %>
  333.                                     <td width="46%"><%=k+1%>.
  334.                                       <input type="<%=ctlType%>" name=votesel value="<%=k%>">
  335.                                       &nbsp;<%=opt.getString("content")%></td>
  336.                                     <td width="54%"><img src=images/vote/bar<%=barId%>.gif width="<%=bfb[k]-8%>%" height=10>&nbsp;&nbsp;<strong><%=re[k]%>
  337.                                           <lt:Label res="res.label.forum.showtopic" key="vote_unit"/>
  338.                                       </strong>&nbsp;<%=bfb[k]%>%
  339.                                       <%
  340. if (showVoteUser.equals("1")) {
  341. String[] userAry = StrUtil.split(opt.getString("vote_user"), ",");
  342. if (userAry!=null) {
  343. int userLen = userAry.length;
  344. UserMgr um2 = new UserMgr();
  345. String userNames = "";
  346. for (int n=0; n<userLen; n++) {
  347. UserDb ud = um2.getUser(userAry[n]);
  348. if (userNames.equals(""))
  349. userNames = ud.getNick();
  350. else
  351. userNames += ",&nbsp;" + ud.getNick();
  352. }
  353. out.print(userNames);
  354. }
  355. }
  356. %>
  357.                                     </td>
  358.                                   </tr>
  359.                                   <%
  360. barId ++;
  361. if (barId==10)
  362. barId = 0;
  363. }%>
  364.                                   <tr>
  365.                                     <td colspan="2" align="center"><input name="button" type="button" onClick="window.location.href='?rootid=<%=rootid%>&showVoteUser=1'" value="<lt:Label res="res.label.forum.showtopic" key="vote_show_user"/>">
  366.                                       &nbsp;
  367.                                       <%
  368. if (epDate!=null) {
  369. if (DateUtil.compare(epDate, new java.util.Date()) == 1) {
  370. %>
  371.                                       <input name="submit" type="submit" value="<lt:Label res="res.label.forum.showtopic" key="vote"/>">
  372.                                       <%}else{%>
  373.                                       <b>
  374.                                         <lt:Label res="res.label.forum.showtopic" key="vote_end"/>
  375.                                       </b>
  376.                                       <%}
  377. }else{%>
  378.                                       <input name="submit" type="submit" value="<lt:Label res="res.label.forum.showtopic" key="vote"/>">
  379.                                       <%}%>
  380.                                       <input type=hidden name=boardcode value="<%=boardcode%>">
  381.                                       <input type=hidden name=boardname value="<%=boardname%>">
  382.                                       <input type=hidden name=voteid value="<%=id%>">
  383.                                     </td>
  384.                                   </tr>
  385.                                 </form>
  386.                               </table>
  387. <%}%>
  388.                         <span name="content<%=i%>"><br>
  389.                      <%
  390. if (!msgdb.getPlugin2Code().equals("")) {
  391. Plugin2Mgr p2m = new Plugin2Mgr();
  392. Plugin2Unit p2u = p2m.getPlugin2Unit(msgdb.getPlugin2Code());
  393. out.print(p2u.getUnit().getRender().rend(request, msgdb));
  394. }   
  395. out.print(render.RenderContent(request, msgdb));
  396. // if (msgdb.getIsWebedit()==msgdb.WEBEDIT_REDMOON) {
  397. String att = render.RenderAttachment(request, msgdb);
  398. if (!att.equals(""))
  399. out.print("<BR>" + att);
  400. //}
  401. %>
  402.                         </span></TD>
  403.                     </TR>
  404.                     <TR vAlign=top>
  405.                       <TD colspan="2" height=1 background="../blog/skin/default/images/dot.gif"></TD>
  406.                     </TR>
  407.                     <TR vAlign=top height=20>
  408.                       <TD height="26" colspan="2" valign="middle" class="blog_td_seperate"><lt:Label res="res.label.forum.showblog" key="link"/><%=Global.getRootPath()%>/blog/showblog.jsp?rootid=<%=rootid%></TD>
  409.                     </TR>
  410.                   </TBODY>
  411.                 </TABLE>
  412.                   <table width="100%" border="0" cellpadding="0" cellspacing="0">
  413.                     <tr>
  414.                       <td>&nbsp;</td>
  415.                     </tr>
  416.                   </table>
  417.                   <table width="100%" border="0" class="table_main_text">
  418.                     <tr>
  419.                       <td colspan="2" class="showblog_td_title">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<lt:Label res="res.label.forum.showblog" key="comments"/></td>
  420.                     </tr>
  421.                     <tr>
  422.                       <td width="1"></td>
  423.                       <td><%
  424. if (irmsg.hasNext() && curpage==1) {
  425. irmsg.next(); // 跳过root贴子
  426. }   
  427. while (irmsg.hasNext()) {
  428. msgdb = (MsgDb)irmsg.next();
  429. lydate = DateUtil.format(msgdb.getAddDate(), "yy-MM-dd HH:mm");
  430. if (lydate.length()>=19)
  431.   lydate = lydate.substring(0,19);
  432. %>
  433.                         <table width="80%" border="0" cellpadding="5">
  434.                           <tr>
  435.                             <td width="20%" align="right">─ <lt:Label res="res.label.forum.showblog" key="commenter"/><a name="#<%=msgdb.getId()%>"></a></td>
  436.                             <td width="80%"><%=um.getUser(msgdb.getName()).getNick()%>&nbsp;&nbsp;&nbsp;&nbsp;<%=lydate%> </td>
  437.                           </tr>
  438.                           <tr>
  439.                             <td>&nbsp;</td>
  440.                             <td><%
  441. out.print(render.RenderContent(request, msgdb));
  442. %></td>
  443.                           </tr>
  444.                           <tr>
  445.                             <td class="blog_td_spacer_down"></td>
  446.                             <td height=1 class="blog_td_spacer_down"></td>
  447.                           </tr>
  448.                         </table>
  449.                         <%}%>
  450.                         <%
  451. }
  452. if (paginator.getCurPage()==1) {
  453. rootMsgDb.increaseHit();
  454. }
  455. %>
  456. <%
  457. if (!op.equals("allcomm")) {%>
  458.                         <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center" class="9black">
  459.                           <tr>
  460.                             <td width="2%" height="23">&nbsp;</td>
  461.                             <td width="76%" valign="baseline" height="23"><div align="right">
  462.                                 <%
  463.   String querystr = "&rootid="+rootid;
  464.     out.print(paginator.getCurPageBlock("?boardcode=" + boardcode + querystr));
  465. %>
  466.                             </div></td>
  467.                             <td width="22%" height="23">&nbsp;</td>
  468.                           </tr>
  469.                         </table>
  470. <%}%>
  471.                         <%if (!privilege.isUserLogin(request)) {%>
  472. <table width="100%" border="0">
  473.                           <tr>
  474.                             <td align="right">&gt;&gt; <lt:Label res="res.label.forum.showblog" key="please"/><a href="../door.jsp"><lt:Label res="res.label.forum.showblog" key="login"/></a><lt:Label res="res.label.forum.showblog" key="msg"/><a href="../regist.jsp"><lt:Label res="res.label.forum.showblog" key="reg"/></a>?&nbsp;&nbsp;&nbsp;</td>
  475.                           </tr>
  476.                         </table>
  477. <%}else{%>
  478.                           <table style="BORDER-COLLAPSE: collapse" bordercolor=#d3d3d3 height=120 
  479. cellspacing=0 cellpadding=5 width="98%" align=center border=1>
  480.                         <form name="frmAnnounce" onSubmit="return formCheck()" action="addquickreplytodb.jsp?privurl=<%=privurl%>" method=post>
  481.                             <tbody>
  482.                               <tr>
  483.                                 <td height=26 colspan="2" align="center" class="td_comment_bar">
  484. <a name="comment"></a>
  485. &nbsp; 
  486.                                   <lt:Label res="res.label.forum.showblog" key="comment"/></td>
  487.                               </tr>
  488.                               <tr bgcolor=#ffffff>
  489.                                 <td height=20>&nbsp;&nbsp;<lt:Label res="res.label.forum.showtopic" key="quick_reply_title"/></td>
  490.                                 <td width="354" height=20><input name="topic" value="<%="Re:"+roottopic%>" size="40">
  491.                                     <input type=hidden name="replyid" value="<%=rootid%>">
  492.                                     <input type=hidden name="boardcode" value="<%=boardcode%>">
  493.                                     <input type=hidden name="isWebedit" value="1">
  494.                                     <input type=hidden name="expression" value="25">
  495.           <%
  496. if (cfg1.getBooleanProperty("forum.addUseValidateCode")) {
  497. %>
  498.           <br>
  499.           <lt:Label res="res.label.forum.showtopic" key="input_validatecode"/>
  500. <input name="validateCode" type="text" size="1">
  501. <img src='../validatecode.jsp' border=0 align="absmiddle">
  502. <%}%>
  503. </td>
  504.                               </tr>
  505.                               <tr bgcolor=#ffffff>
  506.                                 <td width=67>&nbsp;&nbsp;
  507.                                 <lt:Label res="res.label.forum.showblog" key="content"/><br></td>
  508.                                 <td valign=top><div align=left>
  509.                                     <%
  510. String rpath = request.getContextPath();
  511. %>
  512.             <textarea id="Content" name="Content" style="display:none"></textarea>
  513.             <link rel="stylesheet" href="<%=rpath%>/editor/edit.css">
  514.             <script src="<%=rpath%>/editor/DhtmlEdit.js"></script>
  515.             <script src="<%=rpath%>/editor/editjs.jsp"></script>
  516.             <script src="<%=rpath%>/editor/editor_s.jsp"></script>
  517.             <script>
  518. setHtml(form1.boardRule);
  519. </script>
  520.                                     <br>
  521.             <input tabindex=4 type=submit value="<lt:Label res="res.label.forum.showblog" key="comment"/>" name=submit1>
  522.             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  523.             <input onClick="checkclick('<lt:Label res="res.label.forum.showtopic" key="confirm_clear_content"/>')" type=reset value=" <lt:Label res="res.label.forum.showtopic" key="re_write"/> " name=reset>
  524.                                 </div></td>
  525.                               </tr>
  526.                         </form>
  527.                             </tbody>
  528.                           </table>
  529.                       <%}%></td>
  530.                     </tr>
  531.                   </table>
  532.                 </td>
  533.               </tr>
  534.             </table>
  535. <%@ include file="../blog/footer.jsp"%>
  536. </BODY>
  537. </HTML>