⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addtopic_we.jsp

📁 oa 源代码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
		// 如果用户的博客未开通,则不能选择版块
		if (Global.hasBlog && ucd!=null && ucd.isLoaded()) {
		%>
          <script>
		  var bcode<%=i%> = "<%=boardcode%>";
		  </script>
            <select name="boardcode" onChange="if(this.options[this.selectedIndex].value=='not'){alert(this.options[this.selectedIndex].text+' 不能被选择!'); this.value=bcode<%=i%>; return false;}">
              <option value="not" selected><lt:Label res="res.label.forum.addtopic" key="sel_board"/></option>
              <%
				com.redmoon.forum.Directory directory = new com.redmoon.forum.Directory();
				com.redmoon.forum.Leaf lf = directory.getLeaf("root");
				com.redmoon.forum.DirectoryView dv = new com.redmoon.forum.DirectoryView(lf);
				dv.ShowDirectoryAsOptions(out, lf, lf.getLayer());
				%>
				<option value="<%=Leaf.CODE_BLOG%>">&nbsp;&nbsp;&nbsp;&nbsp;<lt:Label res="res.label.forum.addtopic" key="blog"/></option>
            </select>
            <script>
			frmAnnounce.boardcode.value = "<%=boardcode%>";
		  </script>
          <%if (boardcode.equals(Leaf.CODE_BLOG)) {%>
			<lt:Label res="res.label.forum.addtopic" key="info_board_blog"/>
          <%}
		  }else{%>
          <%=boardname%>
          <input type="hidden" name="boardcode" value="<%=boardcode%>">
          <%}%>        </td>
      </tr>
	  <%if (Global.hasBlog && ucd.isLoaded()) {%>
      <tr bordercolor="<%=skin.getTableBorderClr()%>">
        <td><lt:Label res="res.label.forum.addtopic" key="add_to_blog"/></td>
        <td><%
		UserDirDb udd = new UserDirDb();
		%>
            <select name=blogUserDir>
              <option value="<%=UserDirDb.DEFAULT%>"><lt:Label res="res.label.forum.addtopic" key="default_dir"/></option>
              <%=udd.toOptions(privilege.getUser(request))%>
            </select>
            <script>
		frmAnnounce.blogUserDir.value = "<%=blogUserDir%>";
		</script>
            <input name=isBlog value=1 type=checkbox <%=boardcode.equals(Leaf.CODE_BLOG)?"checked":""%>>
          <lt:Label res="res.label.forum.addtopic" key="add_to_blog"/> </td>
      </tr>
      <%}%>
      <tr>
        <td colspan="2"><%
		
PluginMgr pm = new PluginMgr();
Vector vplugin = pm.getAllPluginUnitOfBoard(boardcode);
if (vplugin.size()>0) {
	Iterator irplugin = vplugin.iterator();
	while (irplugin.hasNext()) {
		PluginUnit pu = (PluginUnit)irplugin.next();
		IPluginUI ipu = pu.getUI(request, response, out);
		IPluginViewAddMsg pv = ipu.getViewAddMsg(boardcode);
		if (pv.IsPluginBoard()) {
			boolean showPlugin = false;
			if (pu.getType().equals(pu.TYPE_BOARD))
				showPlugin = true;
			else if (pu.getType().equals(pu.TYPE_TOPIC)) {
				if (pluginCode.equals(pu.getCode()))
					showPlugin = true;
			}
			if (showPlugin) {		
				if (!pu.getAddTopicPage().equals("")) {
	%>
					<jsp:include page="<%=pu.getAddTopicPage()%>" flush="true">
					<jsp:param name="boardcode" value="<%=StrUtil.UrlEncode(boardcode)%>" /> 
					</jsp:include>
	<%			}
				else {
					out.print(pu.getName(request) + ":&nbsp;" + pv.render(UIAddMsg.POS_TITLE) + "<BR>");
					out.print(pv.render(UIAddMsg.POS_FORM_ELEMENT) + "<BR>");
				}
			}
		}
	}
}
		String hit = request.getParameter("hit");
		String isvote = StrUtil.getNullString(request.getParameter("isvote"));
		
if (!plugin2Code.equals("")) {
	Plugin2Mgr p2m = new Plugin2Mgr();
	Plugin2Unit p2u = p2m.getPlugin2Unit(plugin2Code);
%>
				<jsp:include page="<%=p2u.getAddTopicPage()%>" flush="true">
				<jsp:param name="boardcode" value="<%=StrUtil.UrlEncode(boardcode)%>" /> 
				</jsp:include>
	
<%}%>		
		</td>
      </tr>
    </TBODY>
    <TBODY>
      
      <tr> 
        <td width="20%"><lt:Label res="res.label.forum.addtopic" key="topic_title"/></td>
        <td width="80%"> <SELECT name=font onchange=DoTitle(this.options[this.selectedIndex].value)>
            <OPTION selected value=""><lt:Label res="res.label.forum.addtopic" key="sel_topic"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_origi"/>><lt:Label res="res.label.forum.addtopic" key="pre_origi"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_from"/>><lt:Label res="res.label.forum.addtopic" key="pre_from"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_water"/>><lt:Label res="res.label.forum.addtopic" key="pre_water"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_discuss"/>><lt:Label res="res.label.forum.addtopic" key="pre_discuss"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_help"/>><lt:Label res="res.label.forum.addtopic" key="pre_help"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_recommend"/>><lt:Label res="res.label.forum.addtopic" key="pre_recommend"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_notice"/>><lt:Label res="res.label.forum.addtopic" key="pre_notice"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_note"/>><lt:Label res="res.label.forum.addtopic" key="pre_note"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_image"/>><lt:Label res="res.label.forum.addtopic" key="pre_image"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_advise"/>><lt:Label res="res.label.forum.addtopic" key="pre_advise"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_download"/>><lt:Label res="res.label.forum.addtopic" key="pre_download"/></OPTION>
            <OPTION value=<lt:Label res="res.label.forum.addtopic" key="pre_share"/>><lt:Label res="res.label.forum.addtopic" key="pre_share"/></OPTION>
          </SELECT> <input name="topic" type="text" id="topic" size="60" maxlength="80">
          <input type="hidden" name="privurl" value="<%=privurl%>">
		  <%
		  String threadType = ParamUtil.get(request, "threadType");
		  if (threadType.equals("")) {
		  	threadType = "" + ThreadTypeDb.THREAD_TYPE_NONE;
		  }
		  %>		  
		  <%
		  ThreadTypeDb ttd = new ThreadTypeDb();
		  Vector ttv = ttd.getThreadTypesOfBoard(boardcode);
		  if (ttv.size()>0) {
		  	Iterator ir = ttv.iterator();
		  %>
		  <lt:Label res="res.label.forum.addtopic" key="thread_type"/><select name="threadType">
          <option value="<%=ThreadTypeDb.THREAD_TYPE_NONE%>">
		  <lt:Label key="wu"/></option>
		  <%
		  	while (ir.hasNext()) {
				ttd = (ThreadTypeDb)ir.next();
		  %>
		  <option value="<%=ttd.getId()%>"><%=ttd.getName()%></option>
		  <%}%>
		  </select>	
		  <script>
		  frmAnnounce.threadType.value = "<%=threadType%>";
		  </script>
		  <%}
		  %>		  
		  </td>
      </tr>
      <tr>
        <td valign="top"><lt:Label res="res.label.forum.addtopic" key="emote_icon"/><br>
        </td>
        <td><iframe src="iframe_emote.jsp" height="25"  width="500px" marginwidth="0" marginheight="0" frameborder="0" scrolling="yes"></iframe>
          <input type="hidden" name="expression" value="25"></td>
      </tr>
      <tr> 
        <td valign="top" width="20%">
		<%
		String display="none",ischecked="false";
		if (isvote.equals("1")) {
		display = "";
		ischecked = "checked";
		}
		%>
		<input type="checkbox" name="isvote" value="1" onClick="showvote()" <%=ischecked%>><lt:Label res="res.label.forum.addtopic" key="vote_option"/>		</td>
        <td width="80%"><lt:Label res="res.label.forum.addtopic" key="vote_expire"/>
          <input name="expire_date" onClick="showcalendar(event, this)" onFocus="showcalendar(event, this);if(this.value=='0000-00-00') this.value=''; document.onclick=hidCalendar">
          <lt:Label res="res.label.forum.addtopic" key="vote_max_choice"/>
          <input name="max_choice" size=1 value="1">
  <lt:Label res="res.label.forum.addtopic" key="vote_item"/>
  <br>
  <textarea style="display:<%=display%>" cols="55" name="vote" rows="8" wrap="VIRTUAL"></textarea>
        <lt:Label res="res.label.forum.addtopic" key="vote_option_one_line"/></td></tr>
      <tr>
        <td valign="top">&nbsp;</td>
        <td><table width="100%" border=0 cellspacing=0 cellpadding=0>
          <tr>
            <td class=tablebody1 valign=top height=30> <lt:Label res="res.label.forum.addtopic" key="file"/>
              <input type="file" name="filename" size=30>
              <select name="select">
                <option>
                  <lt:Label res="res.label.forum.addtopic" key="upload_file_ext"/>
                  </option>
                <%
				String[] ext = StrUtil.split(cfg1.getProperty("forum.ext"), ",");
				if (ext!=null) {
					int extlen = ext.length;
					for (int p=0; p<extlen; p++) {
						out.print("<option>" + ext[p] + "</option>");
					}
				}
				%>
              </select></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="5">
          <tr>
            <td><a href="javascript:payme()"><lt:Label res="res.label.forum.addtopic" key="fee_to_me"/></a></td>
          </tr>
        </table>
          <%if (cfg1.getBooleanProperty("forum.canUserSetReplyExperiencePointSee") || privilege.isManager(request, boardcode)) {%>
          <table width="100%" border="0" cellspacing="0" cellpadding="5">
            <tr>
              <td><a href="javascript:replyCanSee()">
                <lt:Label res="res.label.forum.edittopic" key="see_by_reply"/>
              </a></td>
            </tr>
            <tr>
              <td><a href="javascript:canSee('credit')">
                <lt:Label res="res.label.forum.edittopic" key="see_by_credit"/>
              </a></td>
            </tr>
            <tr>
              <td><a href="javascript:canSee('experience')">
                <lt:Label res="res.label.forum.edittopic" key="see_by_experience"/>
              </a></td>
            </tr>
            <tr>
              <td><a href="javascript:usePoint()">
                <lt:Label res="res.label.forum.edittopic" key="see_by_fee"/>
              </a></td>
            </tr>
          </table>
          <%}%>
          <input type="checkbox" name="email_notify" value="1">
		<lt:Label res="res.label.forum.addtopic" key="email_notify"/> </td>
        <td><%@ include file="../editor_full/editor.jsp"%></td>
      </tr>
      <tr>
        <td valign="bottom">&nbsp;</td>
        <td><table width=""  border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
          <tr>
            <td bgcolor="#FFFFFF"><%
Calendar cal = Calendar.getInstance();
String year = "" + (cal.get(cal.YEAR));
String month = "" + (cal.get(cal.MONTH) + 1);
String filepath = "upfile/webedit/" + year + "/" + month;
%>
                <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">
                  <!--height=280断点续传-->
                  <param name="Encode" value="utf-8">
                  <param name="MaxSize" value="<%=Global.MaxSize%>">
                  <!--上传字节-->
                  <param name="ForeColor" value="(255,255,255)">
                  <param name="BgColor" value="(107,154,206)">
                  <param name="ForeColorBar" value="(255,255,255)">
                  <param name="BgColorBar" value="(0,0,255)">
                  <param name="ForeColorBarPre" value="(0,0,0)">
                  <param name="BgColorBarPre" value="(200,200,200)">
                  <param name="FilePath" value="<%=filepath%>">
                  <param name="Relative" value="1">
                  <!--上传后的文件需放在服务器上的路径-->
                  <param name="Server" value="<%=request.getServerName()%>">
                  <param name="Port" value="<%=request.getServerPort()%>">
                  <param name="VirtualPath" value="<%=Global.virtualPath%>">
                  <param name="PostScript" value="<%=Global.virtualPath%>/forum/addtopictodbwe.jsp">
                  <param name="PostScriptDdxc" value="<%=Global.virtualPath%>/forum/forumddxc.jsp">
                  <param name="SegmentLen" value="204800">
              </object></td>
          </tr>
          <tr>
            <td align="center" valign="middle" bgcolor="#FFFFFF"><table width="100%" id="table_recorder" style="display:none">
              <tr>
                  <td align="center"><a href="../activex/RecordCtl.EXE"><lt:Label res="res.label.forum.addtopic" key="download_recorder"/></a></td>
              </tr>
              <tr>
                <td align="center"><OBJECT ID="Recorder" CLASSID="CLSID:E4A3D135-E189-48AF-B348-EF5DFFD99A67">
              </OBJECT></td>
              </tr>
            </table>            </td>
          </tr>
        </table></td>
      </tr>
      <tr align="center">
        <td colspan="2" valign="bottom">
		<!--<input name="cmdok2" type="button" value="断点续传" onClick="return SubmitWithFileDdxc()">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-->
          <input type=button onClick="frmAnnounce_onsubmit()" value="<lt:Label res="res.label.forum.addtopic" key="commit"/>">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="cmdcancel" type="button" onClick="clearAll()" value="<lt:Label res="res.label.forum.addtopic" key="clear"/>">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<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;
<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;
<%if (!boardcode.equals(Leaf.CODE_BLOG)) {%>
<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"/>">
<%}%></td> 
      </tr>
    </TBODY>
</form>
  </table>
<%if (!boardcode.equals(Leaf.CODE_BLOG)) {%>
<%@ include file="inc/footer.jsp"%>
<%}%>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -