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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import="com.redmoon.forum.*" %>
  3. <%@ page import="java.util.Calendar" %>
  4. <%@ page import="com.redmoon.forum.plugin2.*"%>
  5. <%@ page import="com.redmoon.forum.person.UserSet"%>
  6. <%@ page import="com.redmoon.forum.plugin.*"%>
  7. <%@ page import="com.redmoon.forum.plugin.base.*"%>
  8. <%@ page import="com.redmoon.blog.*" %>
  9. <%@ page import="cn.js.fan.web.*" %>
  10. <%@ taglib uri="/WEB-INF/tlds/LabelTag.tld" prefix="lt" %>
  11. <jsp:useBean id="StrUtil" scope="page" class="cn.js.fan.util.StrUtil"/>
  12. <jsp:useBean id="privilege" scope="page" class="com.redmoon.forum.Privilege"/>
  13. <%
  14. if (!privilege.isUserLogin(request)) {
  15. response.sendRedirect("../info.jsp?op=login&info=" + StrUtil.UrlEncode(SkinUtil.LoadString(request, "info_please_login")));
  16. return;
  17. }
  18. int i=0;
  19. String editid = request.getParameter("editid");
  20. String privurl = request.getParameter("privurl");
  21. if (editid==null && !StrUtil.isNumeric(editid)) {
  22. out.print(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, SkinUtil.ERR_ID)));
  23. return;
  24. }
  25. String name = privilege.getUser(request);
  26. MsgMgr mm = new MsgMgr();
  27. MsgDb Topic = mm.getMsgDb(Long.parseLong(editid));
  28. String boardcode = Topic.getboardcode();
  29. String boardname;
  30. Leaf curleaf = new Leaf();
  31. curleaf = curleaf.getLeaf(boardcode);
  32. boardname = curleaf.getName();
  33. // 取得皮肤路径
  34. String skincode = curleaf.getSkin();
  35. if (skincode.equals("") || skincode.equals(UserSet.defaultSkin)) {
  36. skincode = UserSet.getSkin(request);
  37. if (skincode==null || skincode.equals(""))
  38. skincode = UserSet.defaultSkin;
  39. }
  40. SkinMgr skm = new SkinMgr();
  41. Skin skin = skm.getSkin(skincode);
  42. String skinPath = skin.getPath();
  43. com.redmoon.forum.Config cfg1 = new com.redmoon.forum.Config();
  44. int msgTitleLengthMin = cfg1.getIntProperty("forum.msgTitleLengthMin");
  45. int msgTitleLengthMax = cfg1.getIntProperty("forum.msgTitleLengthMax");
  46. int msgLengthMin = cfg1.getIntProperty("forum.msgLengthMin");
  47. int msgLengthMax = cfg1.getIntProperty("forum.msgLengthMax");
  48. int maxAttachmentCount = cfg1.getIntProperty("forum.maxAttachmentCount");
  49. int maxAttachmentSize = cfg1.getIntProperty("forum.maxAttachmentSize");
  50. %>
  51. <html>
  52. <head>
  53. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  54. <title><lt:Label res="res.label.forum.edittopic" key="edittopic"/> - <%=Global.AppName%></title>
  55. <link href="<%=skinPath%>/skin.css" rel="stylesheet" type="text/css">
  56. <STYLE>TABLE {
  57. BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 1px
  58. }
  59. TD {
  60. BORDER-RIGHT: 0px; BORDER-TOP: 0px
  61. }
  62. </STYLE>
  63. <script>
  64. function findObj(theObj, theDoc)
  65. {
  66.   var p, i, foundObj;
  67.   
  68.   if(!theDoc) theDoc = document;
  69.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  70.   {
  71.     theDoc = parent.frames[theObj.substring(p+1)].document;
  72.     theObj = theObj.substring(0,p);
  73.   }
  74.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  75.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  76.     foundObj = theDoc.forms[i][theObj];
  77.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  78.     foundObj = findObj(theObj,theDoc.layers[i].document);
  79.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  80.   
  81.   return foundObj;
  82. }
  83. function getradio(myitem)
  84. {
  85.      var radioboxs = document.all.item(myitem);
  86.      if (radioboxs!=null)
  87.      {
  88.        for (i=0; i<radioboxs.length; i++)
  89.           {
  90.             if (radioboxs[i].type=="radio" && radioboxs[i].checked)
  91.               {
  92.                  return radioboxs[i].value;
  93.               }
  94.           }
  95.      }
  96.  return "";
  97. }
  98. function frmAnnounce_onsubmit()
  99. {
  100. if (!cws_validateMode())
  101. return false;
  102. if (document.frmAnnounce.topic.value.length<<%=msgTitleLengthMin%>)
  103. {
  104. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_title"/><%=msgTitleLengthMin%>");
  105. return false;
  106. }
  107. if (document.frmAnnounce.topic.value.length><%=msgTitleLengthMax%>)
  108. {
  109. alert("<lt:Label res="res.forum.MsgDb" key="err_too_large_title"/><%=msgTitleLengthMax%>");
  110. return false;
  111. }
  112. var html;
  113. html = cws_getText();
  114. html = cws_rCode(html,"<a> </a>","");
  115. if (html.length<<%=msgLengthMin%>)
  116. {
  117. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_content"/><%=msgLengthMin%>");
  118. return false;
  119. }
  120. if (html.length><%=msgLengthMax%>)
  121. {
  122. alert("<lt:Label res="res.forum.MsgDb" key="err_too_large_content"/><%=msgLengthMax%>");
  123. return false;
  124. }
  125. loadDataToWebeditCtrl(frmAnnounce, frmAnnounce.webedit);
  126. frmAnnounce.webedit.AddSpecialFile("filename", frmAnnounce.filename.value);
  127. frmAnnounce.webedit.AddField("ip", "<%=request.getRemoteAddr()%>");
  128. frmAnnounce.webedit.UploadArticle();
  129. if (frmAnnounce.webedit.ReturnMessage.indexOf("+")!=-1) {
  130. alert(frmAnnounce.webedit.ReturnMessage);
  131. window.location.href = "<%=privurl%>";
  132. }
  133. else
  134. alert(frmAnnounce.webedit.ReturnMessage);
  135. return false;
  136. }
  137. function SubmitWithFileDdxc() {
  138. frmAnnounce.webedit.isDdxc = 1;
  139. if (document.frmAnnounce.topic.value.length<<%=msgTitleLengthMin%>)
  140. {
  141. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_title"/><%=msgTitleLengthMin%>");
  142. return false;
  143. }
  144. if (document.frmAnnounce.topic.value.length><%=msgTitleLengthMax%>)
  145. {
  146. alert("<lt:Label res="res.forum.MsgDb" key="err_too_large_title"/><%=msgTitleLengthMax%>");
  147. return false;
  148. }
  149. var html;
  150. html = cws_getText();
  151. html = cws_rCode(html,"<a> </a>","");
  152. if (html.length<<%=msgLengthMin%>)
  153. {
  154. alert("<lt:Label res="res.forum.MsgDb" key="err_too_short_content"/><%=msgLengthMin%>");
  155. return false;
  156. }
  157. if (html.length><%=msgLengthMax%>)
  158. {
  159. alert("<lt:Label res="res.forum.MsgDb" key="err_too_large_content"/><%=msgLengthMax%>");
  160. return false;
  161. }
  162. loadDataToWebeditCtrl(frmAnnounce, frmAnnounce.webedit);
  163. frmAnnounce.webedit.AddSpecialFile("filename", frmAnnounce.filename.value);
  164. frmAnnounce.webedit.AddField("ip", "<%=request.getRemoteAddr()%>");
  165. frmAnnounce.webedit.MTUpload();
  166. }
  167. function Operate() {
  168. recordFilePath = frmAnnounce.Recorder.FilePath;
  169. frmAnnounce.webedit.InsertFileToList(recordFilePath);
  170. }
  171. function clearAll(){
  172. document.frmAnnounce.title.value=""
  173. IframeID.document.body.innerHTML = "";
  174. }
  175. function changeAttachName(attach_id, msgId, nm) {
  176. var obj = findObj(nm);
  177. // document.frames.hideframe.location.href = "fwebedit_do.jsp?op=changeattachname&page_num=1&doc_id=" + doc_id + "&attach_id=" + attach_id + "&newname=" + obj.value
  178. form3.action = "edittopicdo_we.jsp?op=changeattachname&msgId=" + msgId + "&attach_id=" + attach_id;
  179. form3.newname.value = obj.value;
  180. form3.submit();
  181. }
  182. function delAttach(attach_id, msgId) {
  183. if (!window.confirm("<lt:Label res="res.label.forum.edittopic" key="confirm_del"/>")) {
  184. return;
  185. }
  186. document.frames.hideframe.location.href = "edittopicdo_we.jsp?op=delAttach&msgId=" + msgId + "&attach_id=" + attach_id
  187. }
  188. </script>
  189. <script language=JavaScript src='inc/formpost.js'></script>
  190. <script src="inc/ubbcode.jsp"></script>
  191. </head>
  192. <body topmargin="2">
  193. <%
  194. String editFlag = ParamUtil.get(request, "editFlag");
  195. if (!editFlag.equals("blog") && !boardcode.equals(Leaf.CODE_BLOG)) {%>
  196. <%@ include file="inc/header.jsp"%>
  197. <jsp:include page="inc/position.jsp" flush="true">
  198. <jsp:param name="boardcode" value="<%=StrUtil.UrlEncode(boardcode)%>" />
  199. </jsp:include>
  200. <%}%>
  201. <%
  202. String topic="",content="";
  203. int expression=1;
  204. if (!privilege.canEdit(request, Topic))
  205. {
  206. out.print(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, "pvg_invalid")));
  207. return;
  208. }
  209. String show_ubbcode = "" + Topic.getShowUbbcode();
  210. String show_smile = "" + Topic.getShowSmile();
  211. String email_notify = "" + Topic.getEmailNotify();
  212. long rootid = Topic.getRootid();
  213. topic = Topic.getTitle();
  214. content = Topic.getContent();
  215. expression = Topic.getExpression();
  216. %>
  217.   <table width="98%" border="1" align="center" cellpadding="4" cellspacing="0" borderColor="<%=skin.getTableBorderClr()%>">
  218. <form  name=frmAnnounce method="post" action="edittopicdo_we.jsp">
  219.     <TBODY>
  220.       <tr bgcolor="#0078bf"> 
  221.       <td colspan="2" class="td_title"><lt:Label res="res.label.forum.edittopic" key="edittopic"/>&nbsp;&nbsp;<a href="showtopic_tree.jsp?rootid=<%=Topic.getRootid()%>&showid=<%=Topic.getId()%>"><%=StrUtil.toHtml(Topic.getTitle())%></a></td>
  222.       </tr>
  223.       <tr>
  224.         <td colspan="2"><%
  225. String pluginCode = Topic.getRootMsgPluginCode();
  226. PluginMgr pm = new PluginMgr();
  227. Vector vplugin = pm.getAllPluginUnitOfBoard(boardcode);
  228. if (vplugin.size()>0) {
  229. Iterator irplugin = vplugin.iterator();
  230. while (irplugin.hasNext()) {
  231. PluginUnit pu = (PluginUnit)irplugin.next();
  232. IPluginUI ipu = pu.getUI(request, response, out);
  233. IPluginViewEditMsg pv = ipu.getViewEditMsg(boardcode, Topic.getId());
  234. if (pv.IsPluginBoard()) {
  235. boolean showPlugin = false;
  236. if (pu.getType().equals(pu.TYPE_BOARD))
  237. showPlugin = true;
  238. else if (pu.getType().equals(pu.TYPE_TOPIC)) {
  239. if (pluginCode.equals(pu.getCode()))
  240. showPlugin = true;
  241. }
  242. if (showPlugin) {
  243. if (!pu.getEditTopicPage().equals("")) {
  244. %>
  245. <jsp:include page="<%=pu.getEditTopicPage()%>" flush="true">
  246. <jsp:param name="msgId" value="<%=editid%>" /> 
  247. </jsp:include>
  248. <% }
  249. else {
  250. out.print(pu.getName(request) + ":&nbsp;" + pv.render(UIEditMsg.POS_FORM_NOTE) + "<BR>");
  251. out.print(pv.render(UIEditMsg.POS_FORM_ELEMENT));
  252. }
  253. }
  254. }
  255. }
  256. }
  257. String plugin2Code = Topic.getPlugin2Code();
  258. if (!plugin2Code.equals("")) {
  259. Plugin2Mgr p2m = new Plugin2Mgr();
  260. Plugin2Unit p2u = p2m.getPlugin2Unit(plugin2Code);
  261. %>
  262. <jsp:include page="<%=p2u.getEditTopicPage()%>" flush="true">
  263. <jsp:param name="msgId" value="<%=editid%>" /> 
  264. </jsp:include>
  265. <%}%>
  266. </td>
  267.       </tr>
  268.   <%
  269.   // 判别该用户的博客是否已被激活及该贴是否为根贴,只有两项全符合,才会出现编辑博客的选项
  270.   if (Global.hasBlog && Topic.getReplyid()==-1) {
  271.   UserConfigDb ucd = new UserConfigDb();
  272.   ucd = ucd.getUserConfigDb(Topic.getName());
  273.   if (ucd!=null && ucd.isLoaded()) {
  274.   %>
  275.       <tr>
  276.         <td><lt:Label res="res.label.forum.addtopic" key="add_to_blog"/></td>
  277.         <td><%
  278. UserDirDb udd = new UserDirDb();
  279. String checked = "";
  280. if (Topic.isBlog())
  281. checked = "checked";
  282. %>
  283.             <select name=blogUserDir>
  284.               <option value="<%=UserDirDb.DEFAULT%>"><lt:Label res="res.label.forum.addtopic" key="add_to_blog"/></option>
  285.               <%=udd.toOptions(privilege.getUser(request))%>
  286.             </select>
  287.             <script>
  288. frmAnnounce.blogUserDir.value = "<%=Topic.getBlogUserDir()%>";
  289. </script>
  290.             <input name=isBlog value=1 type=checkbox <%=checked%>>
  291.           <lt:Label res="res.label.forum.addtopic" key="add_to_blog"/> </td>
  292.       </tr>
  293.   <%}
  294.   }%>
  295.     </TBODY>
  296.     <TBODY>
  297.       <tr> 
  298.       <td width="20%"><lt:Label res="res.label.forum.addtopic" key="topic_title"/></td>
  299.         <td width="80%"> <SELECT name=font onchange=DoTitle(this.options[this.selectedIndex].value)>
  300.             <OPTION selected value=""><lt:Label res="res.label.forum.addtopic" key="sel_topic"/></OPTION>
  301.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_origi"/>><lt:Label res="res.label.forum.addtopic" key="pre_origi"/></OPTION>
  302.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_from"/>><lt:Label res="res.label.forum.addtopic" key="pre_from"/></OPTION>
  303.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_water"/>><lt:Label res="res.label.forum.addtopic" key="pre_water"/></OPTION>
  304.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_discuss"/>><lt:Label res="res.label.forum.addtopic" key="pre_discuss"/></OPTION>
  305.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_help"/>><lt:Label res="res.label.forum.addtopic" key="pre_help"/></OPTION>
  306.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_recommend"/>><lt:Label res="res.label.forum.addtopic" key="pre_recommend"/></OPTION>
  307.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_notice"/>><lt:Label res="res.label.forum.addtopic" key="pre_notice"/></OPTION>
  308.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_note"/>><lt:Label res="res.label.forum.addtopic" key="pre_note"/></OPTION>
  309.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_image"/>><lt:Label res="res.label.forum.addtopic" key="pre_image"/></OPTION>
  310.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_advise"/>><lt:Label res="res.label.forum.addtopic" key="pre_advise"/></OPTION>
  311.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_download"/>><lt:Label res="res.label.forum.addtopic" key="pre_download"/></OPTION>
  312.             <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_share"/>><lt:Label res="res.label.forum.addtopic" key="pre_share"/></OPTION>
  313.           </SELECT> 
  314.   <input name="topic" type="text" id="topic" size="60" maxlength="80" value="<%=StrUtil.toHtml(topic)%>">
  315.           <input type=hidden name="editid" value="<%=editid%>">
  316.           <input type="hidden" name="boardcode" value="<%=boardcode%>">
  317.           <input type="hidden" name="boardname" value="<%=boardname%>">
  318.           <input type="hidden" name="privurl" value="<%=privurl%>">
  319. <%
  320.   if (Topic.isRootMsg()) {
  321.   ThreadTypeDb ttd = new ThreadTypeDb();
  322.   Vector ttv = ttd.getThreadTypesOfBoard(boardcode);
  323.   if (ttv.size()>0) {
  324.    Iterator ir = ttv.iterator();
  325.   %>
  326.           <lt:Label res="res.label.forum.addtopic" key="thread_type"/>
  327.           <select name="threadType">
  328.             <option value="<%=ThreadTypeDb.THREAD_TYPE_NONE%>">
  329.               <lt:Label key="wu"/>
  330.             </option>
  331.             <%
  332.    while (ir.hasNext()) {
  333. ttd = (ThreadTypeDb)ir.next();
  334.   %>
  335.             <option value="<%=ttd.getId()%>"><%=ttd.getName()%></option>
  336.             <%}%>
  337.           </select>
  338.   <script>
  339.   frmAnnounce.threadType.value = "<%=Topic.getThreadType()%>";
  340.   </script>
  341.           <%}
  342.   }
  343.   %>   
  344.   </td>
  345.       </tr>
  346.       <tr> 
  347.         <td width="20%"><lt:Label res="res.label.forum.addtopic" key="emote_icon"/>        <br>          </td>
  348.         <td width="80%"><iframe src="iframe_emote.jsp?expression=<%=Topic.getExpression()%>" height="25"  width="500px" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes"></iframe>
  349.         <input type="hidden" name="expression" value="<%=Topic.getExpression()%>"></td>
  350.       </tr>
  351.       <tr>
  352.         <td valign="top">&nbsp;</td>
  353.         <td><table width="100%" border=0 cellspacing=0 cellpadding=0>
  354.           <tr>
  355.             <td class=tablebody1 valign=top height=30> <lt:Label res="res.label.forum.addtopic" key="file"/>
  356.               <input type="file" name="filename" size=30>
  357.               <select name="select">
  358.                 <option>
  359.                   <lt:Label res="res.label.forum.addtopic" key="upload_file_ext"/>
  360.                   </option>
  361.                 <%
  362. String[] ext = StrUtil.split(cfg1.getProperty("forum.ext"), ",");
  363. if (ext!=null) {
  364. int extlen = ext.length;
  365. for (int p=0; p<extlen; p++) {
  366. out.print("<option>" + ext[p] + "</option>");
  367. }
  368. }
  369. %>
  370.               </select></td>
  371.           </tr>
  372.         </table></td>
  373.       </tr>
  374.       <tr>
  375.         <td align="left" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="5">
  376.           <tr>
  377.             <td><a href="javascript:payme()"><lt:Label res="res.label.forum.addtopic" key="fee_to_me"/></a></td>
  378.           </tr>
  379.         </table>
  380.       <%if (cfg1.getBooleanProperty("forum.canUserSetReplyExperiencePointSee") || privilege.isManager(request, boardcode)) {%>
  381.             <table width="100%" border="0" cellspacing="0" cellpadding="5">
  382.               <tr>
  383.                 <td><a href="javascript:replyCanSee()"><lt:Label res="res.label.forum.edittopic" key="see_by_reply"/></a></td>
  384.               </tr>
  385.               <tr>
  386.                 <td><a href="javascript:canSee('credit')">
  387.                   <lt:Label res="res.label.forum.edittopic" key="see_by_credit"/>
  388.                 </a></td>
  389.               </tr>
  390.               <tr>
  391.                 <td><a href="javascript:canSee('experience')"><lt:Label res="res.label.forum.edittopic" key="see_by_experience"/></a></td>
  392.               </tr>
  393.               <tr>
  394.                 <td><a href="javascript:usePoint()"><lt:Label res="res.label.forum.edittopic" key="see_by_fee"/></a></td>
  395.               </tr>
  396.             </table>
  397.           <%}%>
  398.           <input type="checkbox" id="email_notify" name="email_notify" value="1" <%=Topic.getEmailNotify()==1?"checked":""%>>
  399.           <lt:Label res="res.label.forum.addtopic" key="email_notify"/>
  400.           <script language="JavaScript">
  401. <!--
  402. <% if (rootid==-1) {
  403. if (email_notify.equals("1")){ %>
  404. frmAnnounce.email_notify.checked = true;
  405. <% }
  406.  } %>
  407. <% if (show_ubbcode.equals("0")) { %>
  408. frmAnnounce.show_ubbcode.checked = true;
  409. <% } %>
  410. <% if (show_smile.equals("0")) { %>
  411. frmAnnounce.show_smile.checked = true;
  412. <% } %>
  413. //-->
  414.   </script>   </td><td align="left"><%@ include file="../editor_full/editor.jsp"%>
  415. <textarea name="tmpContent" style="display:none"><%=content%></textarea>
  416.   <script>
  417.   IframeID.document.body.innerHTML=frmAnnounce.tmpContent.value;
  418.   </script>
  419.   <%
  420.   if (Topic!=null) {
  421.   Vector attachments = Topic.getAttachments();
  422.   Iterator ir = attachments.iterator();
  423.   while (ir.hasNext()) {
  424.    Attachment am = (Attachment) ir.next(); %>
  425.   <br>
  426.           <table width="98%"  border="0" cellspacing="0" cellpadding="0">
  427.             <tr>
  428.               <td width="4%" align="center"><img src=../images/attach.gif width="17" height="17"></td>
  429.               <td width="96%">&nbsp;
  430.                   <input name="attach_name<%=am.getId()%>" value="<%=am.getName()%>" size="30">
  431.               &nbsp;<a href="javascript:changeAttachName('<%=am.getId()%>', '<%=Topic.getId()%>', '<%="attach_name"+am.getId()%>')"><lt:Label res="res.label.forum.edittopic" key="change_name"/></a> &nbsp;<a href="javascript:delAttach('<%=am.getId()%>', '<%=Topic.getId()%>')"><lt:Label res="res.label.forum.addtopic" key="del_attach"/></a>&nbsp;&nbsp;
  432.               <a target=_blank href="<%=am.getVisualPath() + "/" + am.getDiskName()%>"><lt:Label res="res.label.forum.edittopic" key="view"/></a><!--&nbsp;<a href="#" onClick="document.frames.hideframe.location.href='edittopicdo_we.jsp?op=changeAttachOrders&id=<%=Topic.getId()%>&direction=up&attachId=<%=am.getId()%>'"><img src="../images/arrow_up.gif" alt="往上" width="16" height="20" border="0" align="absmiddle"></a>&nbsp;<a href="#" onClick="document.frames.hideframe.location.href='edittopicdo_we.jsp?op=changeAttachOrders&id=<%=Topic.getId()%>&direction=down&attachId=<%=am.getId()%>'"><img src="../images/arrow_down.gif" alt="往下" width="16" height="20" border="0" align="absmiddle"></a>--></td>
  433.             </tr>
  434.           </table>
  435.           <%}
  436.   }
  437.   %></td>
  438.       </tr>
  439.       <tr>
  440.         <td align="left" valign="bottom">&nbsp;</td>
  441.         <td align="left"><table id="table_ctrl" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  442.           <tr>
  443.             <td bgcolor="#FFFFFF"><%
  444. Calendar cal = Calendar.getInstance();
  445. String year = "" + (cal.get(cal.YEAR));
  446. String month = "" + (cal.get(cal.MONTH) + 1);
  447. String filepath = "upfile/webedit/" + year + "/" + month;
  448. %>
  449.                 <object classid="CLSID:DE757F80-F499-48D5-BF39-90BC8BA54D8C" codebase="<%=request.getContextPath()%>/activex/webedit.cab#version=4,0,1,1" width=400 height=173 align="middle" id="webedit">
  450.                   <!--height=280断点续传-->
  451.                   <param name="Encode" value="utf-8">
  452.                   <param name="MaxSize" value="<%=Global.MaxSize%>">
  453.                   <!--上传字节-->
  454.                   <param name="ForeColor" value="(255,255,255)">
  455.                   <param name="BgColor" value="(107,154,206)">
  456.                   <param name="ForeColorBar" value="(255,255,255)">
  457.                   <param name="BgColorBar" value="(0,0,255)">
  458.                   <param name="ForeColorBarPre" value="(0,0,0)">
  459.                   <param name="BgColorBarPre" value="(200,200,200)">
  460.                   <param name="FilePath" value="<%=filepath%>">
  461.                   <param name="Relative" value="1">
  462.                   <!--上传后的文件需放在服务器上的路径-->
  463.                   <param name="Server" value="<%=request.getServerName()%>">
  464.                   <param name="Port" value="<%=request.getServerPort()%>">
  465.                   <param name="VirtualPath" value="<%=Global.virtualPath%>">
  466.                   <param name="PostScript" value="<%=Global.virtualPath%>/forum/edittopicdo_we.jsp">
  467.                   <param name="PostScriptDdxc" value="<%=Global.virtualPath%>/forum/forumddxc.jsp">
  468.                   <param name="SegmentLen" value="204800">
  469.               </object></td>
  470.           </tr>
  471.           <tr>
  472.             <td align="center" bgcolor="#FFFFFF"><table width="100%" id="table_recorder" style="display:none">
  473.                 <tr>
  474.                   <td align="center"><a href="../activex/RecordCtl.EXE"><lt:Label res="res.label.forum.addtopic" key="download_recorder"/></a></td>
  475.                 </tr>
  476.                 <tr>
  477.                   <td align="center"><OBJECT ID="Recorder" CLASSID="CLSID:E4A3D135-E189-48AF-B348-EF5DFFD99A67">
  478.                   </OBJECT></td>
  479.                 </tr>
  480.             </table></td>
  481.           </tr>
  482.         </table></td>
  483.       </tr>
  484.       
  485.       <tr align="center">
  486.         <td colspan="2">
  487. <!--<input name="cmdok2" type="button" value="断点续传" onClick="return SubmitWithFileDdxc()">
  488.         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
  489.         <input type=button onClick="frmAnnounce_onsubmit()" value="<lt:Label res="res.label.forum.addtopic" key="commit"/>">
  490. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  491. <input name="cmdcancel" type="button" onClick="clearAll()" value="<lt:Label res="res.label.forum.addtopic" key="clear"/>">
  492. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  493. <input name="cmdcancel2" type="button" onClick="table_recorder.style.display=''" value="<lt:Label res="res.label.forum.addtopic" key="record"/>"></td>
  494.       </tr>
  495.     </TBODY>
  496. </form>
  497. </table>
  498. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  499.   <tr>
  500.     <form name="form3" action="?" method="post"><td align="center">
  501. <input name="newname" type="hidden">
  502. </td></form>
  503.   </tr>
  504. </table>
  505. <iframe id="hideframe" name="hideframe" src="edittopicdo_we.jsp" width=0 height=0></iframe>
  506. <%if (!editFlag.equals("blog") && !boardcode.equals(Leaf.CODE_BLOG)) {%>
  507. <%@ include file="inc/footer.jsp"%>
  508. <%}%>
  509. </body>
  510. </html>