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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import="cn.js.fan.util.*" %>
  3. <%@ page import="cn.js.fan.web.*" %>
  4. <%@ page import="com.redmoon.forum.*" %>
  5. <%@ page import="java.util.Calendar" %>
  6. <%@ page import="com.redmoon.forum.plugin2.*"%>
  7. <%@ page import="com.redmoon.forum.person.*"%>
  8. <%@ page import="com.redmoon.forum.plugin.*"%>
  9. <%@ page import="com.redmoon.forum.plugin.base.*"%>
  10. <%@ page import="com.redmoon.blog.*"%>
  11. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  12. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  13. <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
  14. <jsp:useBean id="userservice" scope="page" class="com.redmoon.forum.person.userservice"/>
  15. <%
  16. if (!privilege.isUserLogin(request)) {
  17. response.sendRedirect("../door.jsp");
  18. return;
  19. }
  20. String boardcode = request.getParameter("boardcode");
  21. String userName = privilege.getUser(request);
  22. if (!privilege.canUserDo(request, boardcode, "add_topic")) {
  23. response.sendRedirect("../info.jsp?info= " + StrUtil.UrlEncode(SkinUtil.LoadString(request, "pvg_invalid")));
  24. return;
  25. }
  26. String privurl = ParamUtil.get(request, "privurl");
  27. Leaf curleaf = new Leaf();
  28. curleaf = curleaf.getLeaf(boardcode);
  29. if (curleaf==null || !curleaf.isLoaded()) {
  30. out.print(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, "res.label.forum.addtopic", "board_none"))); // "版块不存在"));
  31. return;
  32. }
  33. String boardname = curleaf.getName();
  34. String blogUserDir = ParamUtil.get(request, "blogUserDir");
  35. if (blogUserDir.equals(""))
  36. blogUserDir = UserDirDb.DEFAULT;
  37. //if (!privilege.canWebEdit(request)) {
  38. // response.sendRedirect("addtopic_new.jsp?privurl="+StrUtil.UrlEncode(privurl, "utf-8")+"&boardcode="+boardcode+"&boardname="+StrUtil.UrlEncode(boardname, "utf-8"));
  39. // return;
  40. //}
  41. String name="";
  42. if (privilege.isUserLogin(request))
  43. {
  44. name = privilege.getUser(request);
  45. }
  46. // 取得皮肤路径
  47. String skincode = curleaf.getSkin();
  48. if (skincode.equals("") || skincode.equals(UserSet.defaultSkin)) {
  49. skincode = UserSet.getSkin(request);
  50. if (skincode==null || skincode.equals(""))
  51. skincode = UserSet.defaultSkin;
  52. }
  53. SkinMgr skm = new SkinMgr();
  54. Skin skin = skm.getSkin(skincode);
  55. String skinPath = skin.getPath();
  56. com.redmoon.forum.Config cfg1 = new com.redmoon.forum.Config();
  57. int msgTitleLengthMin = cfg1.getIntProperty("forum.msgTitleLengthMin");
  58. int msgTitleLengthMax = cfg1.getIntProperty("forum.msgTitleLengthMax");
  59. int msgLengthMin = cfg1.getIntProperty("forum.msgLengthMin");
  60. int msgLengthMax = cfg1.getIntProperty("forum.msgLengthMax");
  61. int maxAttachmentCount = cfg1.getIntProperty("forum.maxAttachmentCount");
  62. int maxAttachmentSize = cfg1.getIntProperty("forum.maxAttachmentSize");
  63. String plugin2Code = ParamUtil.get(request, "plugin2Code");
  64. String pluginCode = ParamUtil.get(request, "pluginCode");
  65. String addFlag = ParamUtil.get(request, "addFlag");
  66. %>
  67. <html>
  68. <head>
  69. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  70. <title><lt:Label res="res.label.forum.addtopic" key="addtopic"/> - <%=Global.AppName%></title>
  71. <link href="<%=skinPath%>/skin.css" rel="stylesheet" type="text/css">
  72. <STYLE>TABLE {
  73. BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 1px
  74. }
  75. TD {
  76. BORDER-RIGHT: 0px; BORDER-TOP: 0px
  77. }
  78. body {
  79. margin-top: 0px;
  80. margin-left: 0px;
  81. margin-right: 0px;
  82. }
  83. </STYLE>
  84. <script src="inc/ubbcode.jsp"></script>
  85. <script language="javascript">
  86. <!--
  87. function findObj(theObj, theDoc)
  88. {
  89.   var p, i, foundObj;
  90.   
  91.   if(!theDoc) theDoc = document;
  92.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  93.   {
  94.     theDoc = parent.frames[theObj.substring(p+1)].document;
  95.     theObj = theObj.substring(0,p);
  96.   }
  97.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  98.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  99.     foundObj = theDoc.forms[i][theObj];
  100.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  101.     foundObj = findObj(theObj,theDoc.layers[i].document);
  102.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  103.   
  104.   return foundObj;
  105. }
  106. var recordFilePath = "";
  107. function getradio(myitem)
  108. {
  109.      var radioboxs = document.all.item(myitem);
  110.      if (radioboxs!=null)
  111.      {
  112.        for (i=0; i<radioboxs.length; i++)
  113.           {
  114.             if (radioboxs[i].type=="radio" && radioboxs[i].checked)
  115.               {
  116.                  return radioboxs[i].value;
  117.               }
  118.           }
  119.      }
  120.  return "";
  121. }
  122. function showvote(isshow)
  123. {
  124. if (frmAnnounce.isvote.checked)
  125. {
  126. frmAnnounce.vote.style.display = "";
  127. }
  128. else
  129. {
  130. frmAnnounce.vote.style.display = "none";
  131. }
  132. }
  133. function frmAnnounce_onsubmit()
  134. {
  135. if (!cws_validateMode())
  136. return false;
  137. if (document.frmAnnounce.topic.value.length<<%=msgTitleLengthMin%>)
  138. {
  139. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_title"/><%=msgTitleLengthMin%>");
  140. return false;
  141. }
  142. if (document.frmAnnounce.topic.value.length><%=msgTitleLengthMax%>)
  143. {
  144. alert("<lt:Label res="res.forum.MsgDb" key="err_too_large_title"/><%=msgTitleLengthMax%>");
  145. return false;
  146. }
  147. var html;
  148. html = cws_getText();
  149. html = cws_rCode(html,"<a> </a>","");
  150. if (html.length<<%=msgLengthMin%>)
  151. {
  152. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_content"/><%=msgLengthMin%>");
  153. return false;
  154. }
  155. if (html.length><%=msgLengthMax%>)
  156. {
  157. alert("<lt:Label res="res.forum.MsgDb" key="err_too_large_content"/><%=msgLengthMax%>");
  158. return false;
  159. }
  160. loadDataToWebeditCtrl(frmAnnounce, frmAnnounce.webedit);
  161. frmAnnounce.webedit.AddSpecialFile("filename", frmAnnounce.filename.value);
  162. frmAnnounce.webedit.AddField("ip", "<%=request.getRemoteAddr()%>");
  163. frmAnnounce.webedit.AddField("plugin2Code", "<%=plugin2Code%>");
  164. frmAnnounce.webedit.AddField("pluginCode", "<%=pluginCode%>");
  165. frmAnnounce.webedit.UploadArticle();
  166. if (frmAnnounce.webedit.ReturnMessage.indexOf("+")!=-1) {
  167. alert(frmAnnounce.webedit.ReturnMessage);
  168. history.go(-1);
  169. }
  170. else
  171. alert(frmAnnounce.webedit.ReturnMessage);
  172. return false;
  173. }
  174. function SubmitWithFileDdxc() {
  175. if (!cws_validateMode())
  176. return false;
  177. frmAnnounce.webedit.isDdxc = 1;
  178. if (document.frmAnnounce.topic.value.length<<%=msgTitleLengthMin%>)
  179. {
  180. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_title"/><%=msgTitleLengthMin%>");
  181. return false;
  182. }
  183. if (document.frmAnnounce.topic.value.length><%=msgTitleLengthMax%>)
  184. {
  185. alert("<lt:Label res="res.forum.MsgDb" key="err_too_large_title"/><%=msgTitleLengthMax%>");
  186. return false;
  187. }
  188. var html;
  189. html = cws_getText();
  190. html = cws_rCode(html,"<a> </a>","");
  191. if (html.length<<%=msgLengthMin%>)
  192. {
  193. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_content"/><%=msgLengthMin%>");
  194. return false;
  195. }
  196. if (html.length><%=msgLengthMax%>)
  197. {
  198. alert("<lt:Label res="res.forum.MsgDb" key="err_too_large_content"/><%=msgLengthMax%>");
  199. return false;
  200. }
  201. loadDataToWebeditCtrl(frmAnnounce, frmAnnounce.webedit);
  202. frmAnnounce.webedit.AddSpecialFile("filename", frmAnnounce.filename.value);
  203. frmAnnounce.webedit.AddField("ip", "<%=request.getRemoteAddr()%>");
  204. frmAnnounce.webedit.AddField("plugin2Code", "<%=plugin2Code%>");
  205. frmAnnounce.webedit.MTUpload();
  206. }
  207. function Operate() {
  208. recordFilePath = frmAnnounce.Recorder.FilePath;
  209. frmAnnounce.webedit.InsertFileToList(recordFilePath);
  210. }
  211. function clearAll() {
  212. document.frmAnnounce.title.value=""
  213. cws_putText('');
  214. }
  215. function checkWebEditInstalled() {
  216. var bCtlLoaded = false;
  217. try {
  218. if (typeof(frmAnnounce.webedit.AddField)=="undefined")
  219. bCtlLoaded = false;
  220. if (typeof(frmAnnounce.webedit.AddField)=="unknown") {
  221. bCtlLoaded = true;
  222. }
  223. }
  224. catch (ex) {
  225. }
  226. if (!bCtlLoaded) {
  227. if (confirm("您还没有安装WebEdit在线编辑控件!请点击确定按钮下载安装!")) {
  228. window.open("../activex/RecordCtl.EXE");
  229. }
  230. }
  231. }
  232. function window_onload() {
  233. checkWebEditInstalled();
  234. }
  235. //-->
  236. </script>
  237. <script language=JavaScript src='inc/formpost.js'></script>
  238. </head>
  239. <body onLoad="window_onload()">
  240. <script src="../inc/calendar.js"></script>
  241. <%if (!boardcode.equals(Leaf.CODE_BLOG)) {%>
  242. <%@ include file="inc/header.jsp"%>
  243. <%@ include file="inc/position.jsp"%>
  244. <%}%>
  245. <%
  246. int i=0;
  247. %>
  248.   <table width="98%" border="1" align="center" cellpadding="4" cellspacing="0" borderColor="<%=skin.getTableBorderClr()%>">
  249. <form name=frmAnnounce method="post" action="">
  250.     <TBODY>
  251.       <tr> 
  252.         <td colspan="2" class="td_title"><lt:Label res="res.label.forum.addtopic" key="topic_add_to"/>
  253.         <a href="listtopic.jsp?boardcode=<%=boardcode%>"><%=boardname%></a></td>
  254.       </tr>
  255. <%
  256. if (cfg1.getBooleanProperty("forum.addUseValidateCode")) {
  257. %>
  258. <tr><td width="20%"><lt:Label res="res.label.forum.addtopic" key="input_validatecode"/></td><td><input name="validateCode" type="text" size="1">
  259.   <img src='../validatecode.jsp' border=0 align="absmiddle" style="cursor:hand" onClick="this.src='../validatecode.jsp'" alt="<lt:Label res="res.label.forum.index" key="refresh_validatecode"/>"></td>
  260. </tr>   <%}%>   
  261.       <tr bordercolor="<%=skin.getTableBorderClr()%>">
  262.         <td><lt:Label res="res.label.forum.addtopic" key="topic_add_to_board"/></td>
  263.         <td><%
  264. UserConfigDb ucd = new UserConfigDb();
  265. ucd = ucd.getUserConfigDb(privilege.getUser(request));
  266. // 如果用户的博客未开通,则不能选择版块
  267. if (Global.hasBlog && ucd!=null && ucd.isLoaded()) {
  268. %>
  269.           <script>
  270.   var bcode<%=i%> = "<%=boardcode%>";
  271.   </script>
  272.             <select name="boardcode" onChange="if(this.options[this.selectedIndex].value=='not'){alert(this.options[this.selectedIndex].text+' 不能被选择!'); this.value=bcode<%=i%>; return false;}">
  273.               <option value="not" selected><lt:Label res="res.label.forum.addtopic" key="sel_board"/></option>
  274.               <%
  275. com.redmoon.forum.Directory directory = new com.redmoon.forum.Directory();
  276. com.redmoon.forum.Leaf lf = directory.getLeaf("root");
  277. com.redmoon.forum.DirectoryView dv = new com.redmoon.forum.DirectoryView(lf);
  278. dv.ShowDirectoryAsOptions(out, lf, lf.getLayer());
  279. %>
  280. <option value="<%=Leaf.CODE_BLOG%>">&nbsp;&nbsp;&nbsp;&nbsp;<lt:Label res="res.label.forum.addtopic" key="blog"/></option>
  281.             </select>
  282.             <script>
  283. frmAnnounce.boardcode.value = "<%=boardcode%>";
  284.   </script>
  285.           <%if (boardcode.equals(Leaf.CODE_BLOG)) {%>
  286. <lt:Label res="res.label.forum.addtopic" key="info_board_blog"/>
  287.           <%}
  288.   }else{%>
  289.           <%=boardname%>
  290.           <input type="hidden" name="boardcode" value="<%=boardcode%>">
  291.           <%}%>        </td>
  292.       </tr>
  293.   <%if (Global.hasBlog && ucd.isLoaded()) {%>
  294.       <tr bordercolor="<%=skin.getTableBorderClr()%>">
  295.         <td><lt:Label res="res.label.forum.addtopic" key="add_to_blog"/></td>
  296.         <td><%
  297. UserDirDb udd = new UserDirDb();
  298. %>
  299.             <select name=blogUserDir>
  300.               <option value="<%=UserDirDb.DEFAULT%>"><lt:Label res="res.label.forum.addtopic" key="default_dir"/></option>
  301.               <%=udd.toOptions(privilege.getUser(request))%>
  302.             </select>
  303.             <script>
  304. frmAnnounce.blogUserDir.value = "<%=blogUserDir%>";
  305. </script>
  306.             <input name=isBlog value=1 type=checkbox <%=boardcode.equals(Leaf.CODE_BLOG)?"checked":""%>>
  307.           <lt:Label res="res.label.forum.addtopic" key="add_to_blog"/> </td>
  308.       </tr>
  309.       <%}%>
  310.       <tr>
  311.         <td colspan="2"><%
  312. PluginMgr pm = new PluginMgr();
  313. Vector vplugin = pm.getAllPluginUnitOfBoard(boardcode);
  314. if (vplugin.size()>0) {
  315. Iterator irplugin = vplugin.iterator();
  316. while (irplugin.hasNext()) {
  317. PluginUnit pu = (PluginUnit)irplugin.next();
  318. IPluginUI ipu = pu.getUI(request, response, out);
  319. IPluginViewAddMsg pv = ipu.getViewAddMsg(boardcode);
  320. if (pv.IsPluginBoard()) {
  321. boolean showPlugin = false;
  322. if (pu.getType().equals(pu.TYPE_BOARD))
  323. showPlugin = true;
  324. else if (pu.getType().equals(pu.TYPE_TOPIC)) {
  325. if (pluginCode.equals(pu.getCode()))
  326. showPlugin = true;
  327. }
  328. if (showPlugin) {
  329. if (!pu.getAddTopicPage().equals("")) {
  330. %>
  331. <jsp:include page="<%=pu.getAddTopicPage()%>" flush="true">
  332. <jsp:param name="boardcode" value="<%=StrUtil.UrlEncode(boardcode)%>" /> 
  333. </jsp:include>
  334. <% }
  335. else {
  336. out.print(pu.getName(request) + ":&nbsp;" + pv.render(UIAddMsg.POS_TITLE) + "<BR>");
  337. out.print(pv.render(UIAddMsg.POS_FORM_ELEMENT) + "<BR>");
  338. }
  339. }
  340. }
  341. }
  342. }
  343. String hit = request.getParameter("hit");
  344. String isvote = StrUtil.getNullString(request.getParameter("isvote"));
  345. if (!plugin2Code.equals("")) {
  346. Plugin2Mgr p2m = new Plugin2Mgr();
  347. Plugin2Unit p2u = p2m.getPlugin2Unit(plugin2Code);
  348. %>
  349. <jsp:include page="<%=p2u.getAddTopicPage()%>" flush="true">
  350. <jsp:param name="boardcode" value="<%=StrUtil.UrlEncode(boardcode)%>" /> 
  351. </jsp:include>
  352. <%}%>
  353. </td>
  354.       </tr>
  355.     </TBODY>
  356.     <TBODY>
  357.       
  358.       <tr> 
  359.         <td width="20%"><lt:Label res="res.label.forum.addtopic" key="topic_title"/></td>
  360.         <td width="80%"> <SELECT name=font onchange=DoTitle(this.options[this.selectedIndex].value)>
  361.             <OPTION selected value=""><lt:Label res="res.label.forum.addtopic" key="sel_topic"/></OPTION>
  362.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_origi"/>><lt:Label res="res.label.forum.addtopic" key="pre_origi"/></OPTION>
  363.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_from"/>><lt:Label res="res.label.forum.addtopic" key="pre_from"/></OPTION>
  364.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_water"/>><lt:Label res="res.label.forum.addtopic" key="pre_water"/></OPTION>
  365.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_discuss"/>><lt:Label res="res.label.forum.addtopic" key="pre_discuss"/></OPTION>
  366.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_help"/>><lt:Label res="res.label.forum.addtopic" key="pre_help"/></OPTION>
  367.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_recommend"/>><lt:Label res="res.label.forum.addtopic" key="pre_recommend"/></OPTION>
  368.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_notice"/>><lt:Label res="res.label.forum.addtopic" key="pre_notice"/></OPTION>
  369.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_note"/>><lt:Label res="res.label.forum.addtopic" key="pre_note"/></OPTION>
  370.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_image"/>><lt:Label res="res.label.forum.addtopic" key="pre_image"/></OPTION>
  371.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_advise"/>><lt:Label res="res.label.forum.addtopic" key="pre_advise"/></OPTION>
  372.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_download"/>><lt:Label res="res.label.forum.addtopic" key="pre_download"/></OPTION>
  373.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_share"/>><lt:Label res="res.label.forum.addtopic" key="pre_share"/></OPTION>
  374.           </SELECT> <input name="topic" type="text" id="topic" size="60" maxlength="80">
  375.           <input type="hidden" name="privurl" value="<%=privurl%>">
  376.   <%
  377.   String threadType = ParamUtil.get(request, "threadType");
  378.   if (threadType.equals("")) {
  379.    threadType = "" + ThreadTypeDb.THREAD_TYPE_NONE;
  380.   }
  381.   %>   
  382.   <%
  383.   ThreadTypeDb ttd = new ThreadTypeDb();
  384.   Vector ttv = ttd.getThreadTypesOfBoard(boardcode);
  385.   if (ttv.size()>0) {
  386.    Iterator ir = ttv.iterator();
  387.   %>
  388.   <lt:Label res="res.label.forum.addtopic" key="thread_type"/><select name="threadType">
  389.           <option value="<%=ThreadTypeDb.THREAD_TYPE_NONE%>">
  390.   <lt:Label key="wu"/></option>
  391.   <%
  392.    while (ir.hasNext()) {
  393. ttd = (ThreadTypeDb)ir.next();
  394.   %>
  395.   <option value="<%=ttd.getId()%>"><%=ttd.getName()%></option>
  396.   <%}%>
  397.   </select>
  398.   <script>
  399.   frmAnnounce.threadType.value = "<%=threadType%>";
  400.   </script>
  401.   <%}
  402.   %>   
  403.   </td>
  404.       </tr>
  405.       <tr>
  406.         <td valign="top"><lt:Label res="res.label.forum.addtopic" key="emote_icon"/><br>
  407.         </td>
  408.         <td><iframe src="iframe_emote.jsp" height="25"  width="500px" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes"></iframe>
  409.           <input type="hidden" name="expression" value="25"></td>
  410.       </tr>
  411.       <tr> 
  412.         <td valign="top" width="20%">
  413. <%
  414. String display="none",ischecked="false";
  415. if (isvote.equals("1")) {
  416. display = "";
  417. ischecked = "checked";
  418. }
  419. %>
  420. <input type="checkbox" name="isvote" value="1" onClick="showvote()" <%=ischecked%>><lt:Label res="res.label.forum.addtopic" key="vote_option"/> </td>
  421.         <td width="80%"><lt:Label res="res.label.forum.addtopic" key="vote_expire"/>
  422.           <input name="expire_date" onClick="showcalendar(event, this)" onFocus="showcalendar(event, this);if(this.value=='0000-00-00') this.value=''; document.onclick=hidCalendar">
  423.           <lt:Label res="res.label.forum.addtopic" key="vote_max_choice"/>
  424.           <input name="max_choice" size=1 value="1">
  425.   <lt:Label res="res.label.forum.addtopic" key="vote_item"/>
  426.   <br>
  427.   <textarea style="display:<%=display%>" cols="55" name="vote" rows="8" wrap="VIRTUAL"></textarea>
  428.         <lt:Label res="res.label.forum.addtopic" key="vote_option_one_line"/></td></tr>
  429.       <tr>
  430.         <td valign="top">&nbsp;</td>
  431.         <td><table width="100%" border=0 cellspacing=0 cellpadding=0>
  432.           <tr>
  433.             <td class=tablebody1 valign=top height=30> <lt:Label res="res.label.forum.addtopic" key="file"/>
  434.               <input type="file" name="filename" size=30>
  435.               <select name="select">
  436.                 <option>
  437.                   <lt:Label res="res.label.forum.addtopic" key="upload_file_ext"/>
  438.                   </option>
  439.                 <%
  440. String[] ext = StrUtil.split(cfg1.getProperty("forum.ext"), ",");
  441. if (ext!=null) {
  442. int extlen = ext.length;
  443. for (int p=0; p<extlen; p++) {
  444. out.print("<option>" + ext[p] + "</option>");
  445. }
  446. }
  447. %>
  448.               </select></td>
  449.           </tr>
  450.         </table></td>
  451.       </tr>
  452.       <tr>
  453.         <td valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="5">
  454.           <tr>
  455.             <td><a href="javascript:payme()"><lt:Label res="res.label.forum.addtopic" key="fee_to_me"/></a></td>
  456.           </tr>
  457.         </table>
  458.           <%if (cfg1.getBooleanProperty("forum.canUserSetReplyExperiencePointSee") || privilege.isManager(request, boardcode)) {%>
  459.           <table width="100%" border="0" cellspacing="0" cellpadding="5">
  460.             <tr>
  461.               <td><a href="javascript:replyCanSee()">
  462.                 <lt:Label res="res.label.forum.edittopic" key="see_by_reply"/>
  463.               </a></td>
  464.             </tr>
  465.             <tr>
  466.               <td><a href="javascript:canSee('credit')">
  467.                 <lt:Label res="res.label.forum.edittopic" key="see_by_credit"/>
  468.               </a></td>
  469.             </tr>
  470.             <tr>
  471.               <td><a href="javascript:canSee('experience')">
  472.                 <lt:Label res="res.label.forum.edittopic" key="see_by_experience"/>
  473.               </a></td>
  474.             </tr>
  475.             <tr>
  476.               <td><a href="javascript:usePoint()">
  477.                 <lt:Label res="res.label.forum.edittopic" key="see_by_fee"/>
  478.               </a></td>
  479.             </tr>
  480.           </table>
  481.           <%}%>
  482.           <input type="checkbox" name="email_notify" value="1">
  483. <lt:Label res="res.label.forum.addtopic" key="email_notify"/> </td>
  484.         <td><%@ include file="../editor_full/editor.jsp"%></td>
  485.       </tr>
  486.       <tr>
  487.         <td valign="bottom">&nbsp;</td>
  488.         <td><table width=""  border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  489.           <tr>
  490.             <td bgcolor="#FFFFFF"><%
  491. Calendar cal = Calendar.getInstance();
  492. String year = "" + (cal.get(cal.YEAR));
  493. String month = "" + (cal.get(cal.MONTH) + 1);
  494. String filepath = "upfile/webedit/" + year + "/" + month;
  495. %>
  496.                 <object classid="CLSID:DE757F80-F499-48D5-BF39-90BC8BA54D8C" codebase="<%=request.getContextPath()%>/activex/webedit.cab#version=6,0,1,1" width=400 height=173 align="middle" id="webedit">
  497.                   <!--height=280断点续传-->
  498.                   <param name="Encode" value="utf-8">
  499.                   <param name="MaxSize" value="<%=Global.MaxSize%>">
  500.                   <!--上传字节-->
  501.                   <param name="ForeColor" value="(255,255,255)">
  502.                   <param name="BgColor" value="(107,154,206)">
  503.                   <param name="ForeColorBar" value="(255,255,255)">
  504.                   <param name="BgColorBar" value="(0,0,255)">
  505.                   <param name="ForeColorBarPre" value="(0,0,0)">
  506.                   <param name="BgColorBarPre" value="(200,200,200)">
  507.                   <param name="FilePath" value="<%=filepath%>">
  508.                   <param name="Relative" value="1">
  509.                   <!--上传后的文件需放在服务器上的路径-->
  510.                   <param name="Server" value="<%=request.getServerName()%>">
  511.                   <param name="Port" value="<%=request.getServerPort()%>">
  512.                   <param name="VirtualPath" value="<%=Global.virtualPath%>">
  513.                   <param name="PostScript" value="<%=Global.virtualPath%>/forum/addtopictodbwe.jsp">
  514.                   <param name="PostScriptDdxc" value="<%=Global.virtualPath%>/forum/forumddxc.jsp">
  515.                   <param name="SegmentLen" value="204800">
  516.               </object></td>
  517.           </tr>
  518.           <tr>
  519.             <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="100%" id="table_recorder" style="display:none">
  520.               <tr>
  521.                   <td align="center"><a href="../activex/RecordCtl.EXE"><lt:Label res="res.label.forum.addtopic" key="download_recorder"/></a></td>
  522.               </tr>
  523.               <tr>
  524.                 <td align="center"><OBJECT ID="Recorder" CLASSID="CLSID:E4A3D135-E189-48AF-B348-EF5DFFD99A67">
  525.               </OBJECT></td>
  526.               </tr>
  527.             </table>            </td>
  528.           </tr>
  529.         </table></td>
  530.       </tr>
  531.       <tr align="center">
  532.         <td colspan="2" valign="bottom">
  533. <!--<input name="cmdok2" type="button" value="断点续传" onClick="return SubmitWithFileDdxc()">
  534.           &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
  535.           <input type=button onClick="frmAnnounce_onsubmit()" value="<lt:Label res="res.label.forum.addtopic" key="commit"/>">
  536. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  537. <input name="cmdcancel" type="button" onClick="clearAll()" value="<lt:Label res="res.label.forum.addtopic" key="clear"/>">
  538. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  539. <input name="cmdcancel2" type="button" onClick="table_recorder.style.display=''" value="<lt:Label res="res.label.forum.addtopic" key="record"/>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  540. <input type="button" onClick="window.location.href='addtopic_new.jsp?pluginCode=<%=StrUtil.UrlEncode(pluginCode)%>&threadType=<%=threadType%>&plugin2Code=<%=StrUtil.UrlEncode(plugin2Code)%>&boardcode=<%=StrUtil.UrlEncode(boardcode)%>&isvote=<%=isvote%>&blogUserDir=<%=blogUserDir%>&addFlag=<%=addFlag%>&privurl=<%=privurl%>'" value="<lt:Label res="res.label.forum.addtopic" key="add_normal"/>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  541. <%if (!boardcode.equals(Leaf.CODE_BLOG)) {%>
  542. <input type="button" onClick="window.location.href='addtopic.jsp?threadType=<%=threadType%>&pluginCode=<%=StrUtil.UrlEncode(pluginCode)%>&plugin2Code=<%=StrUtil.UrlEncode(plugin2Code)%>&boardcode=<%=StrUtil.UrlEncode(boardcode)%>&isvote=<%=isvote%>&addFlag=<%=addFlag%>&privurl=<%=privurl%>'" value="<lt:Label res="res.label.forum.addtopic" key="add_ubb"/>">
  543. <%}%></td> 
  544.       </tr>
  545.     </TBODY>
  546. </form>
  547.   </table>
  548. <%if (!boardcode.equals(Leaf.CODE_BLOG)) {%>
  549. <%@ include file="inc/footer.jsp"%>
  550. <%}%>
  551. </body>
  552. </html>