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

📄 manage.jsp

📁 论坛系统EasyJForum 是一个基于 Java 技术的免费社区论坛软件系统
💻 JSP
📖 第 1 页 / 共 2 页
字号:
	<thead>
		<tr>
			<th>用户名</th>
			<td><%= userinfo.userID %></td>
		</tr>
	</thead>
<%
	if (action.equals("digest")) {
		char isDigest = 'F';
		if (topicInfo != null)
			isDigest = ((String)topicInfo.get("ISDIGEST")).charAt(0);
%>				
		<tr>
			<th>操作</th>
			<td><label><input class="radio" type="radio" name="isDigest" value="T" 
						<%= isDigest=='F'?"checked":"" %>/> 加入精华</label> &nbsp;
				<label><input class="radio" type="radio" name="isDigest" value="F"
						<%= isDigest=='T'?"checked":"" %>/> 解除精华</label>
			</td>
		</tr>
<%
	} else if (action.equals("top")) {
		String moderators = PageUtils.getModerators(aSection, null);
		char topScope = '3';
		if (topicInfo != null)
		{
			topScope = ((String)topicInfo.get("TOPSCOPE")).charAt(0);
			if (topScope == 'N')
				topScope = '3';
		}
%>				
		<tr>
			<th>置顶级别</th>
			<td><label><input class="radio" type="radio" name="topScope"
						value="N"/> 解除置顶 </label>&nbsp;
				<label><input class="radio" type="radio" name="topScope" <%= topScope=='3'?"checked":"" %> 
						value="3"/> <img src="images/top_3.gif" alt="本版置顶"/> 本版置顶</label>
		<% if (userGroup.rights.indexOf(IConstants.PERMIT_TOP_GLOBAL) >= 0 
				|| moderators.indexOf("," + userinfo.userID + ",") >= 0) { %>
				<label><input class="radio" type="radio" name="topScope" <%= topScope=='2'?"checked":"" %> 
						value="2"/> <img src="images/top_2.gif" alt="分区置顶"/> 分区置顶</label>
		<% 	 if (userGroup.rights.indexOf(IConstants.PERMIT_TOP_GLOBAL) >= 0) { %>
				<label><input class="radio" type="radio" name="topScope" <%= topScope=='1'?"checked":"" %> 
						value="1"/> <img src="images/top_1.gif" alt="全局置顶"/> 全局置顶</label>
		<%
		 	 }
		   }
		%>
			</td>
		</tr>
<%
	} else if (action.equals("highlight")) {
		String highColor = null;
		if (topicInfo != null)
			highColor = (String)topicInfo.get("HIGHCOLOR");
		if (highColor == null || highColor.length() == 0)
			highColor = "black";
%>				
		<tr>
			<th>字体颜色</th>
			<td><label class="highlight" style="width:62px"><input class="radio" type="radio" name="lightcolor" 
				value=""/><em style="width:40px">不高亮</em></label>
			<label class="highlight"><input class="radio" type="radio" name="lightcolor" 
				value="black" <%= highColor.equals("black")?"checked":"" %>/> <em style="background: black;"></em></label>
			<label class="highlight"><input class="radio" type="radio" name="lightcolor" 
				value="red" <%= highColor.equals("red")?"checked":"" %>/><em style="background: red;"></em></label>
			<label class="highlight"><input class="radio" type="radio" name="lightcolor" 
				value="orange" <%= highColor.equals("orange")?"checked":"" %>/><em style="background: orange;"></em></label>
			<label class="highlight"><input class="radio" type="radio" name="lightcolor" 
				value="yellow" <%= highColor.equals("yellow")?"checked":"" %>/><em style="background: yellow;"></em></label>
			<label class="highlight"><input class="radio" type="radio" name="lightcolor" 
				value="green" <%= highColor.equals("green")?"checked":"" %>/><em style="background: green;"></em></label>
			<label class="highlight"><input class="radio" type="radio" name="lightcolor" 
				value="cyan" <%= highColor.equals("cyan")?"checked":"" %>/><em style="background: cyan;"></em></label>
			<label class="highlight"><input class="radio" type="radio" name="lightcolor" 
				value="blue" <%= highColor.equals("blue")?"checked":"" %>/><em style="background: blue;"></em></label>
			<label class="highlight"><input class="radio" type="radio" name="lightcolor" 
				value="purple" <%= highColor.equals("purple")?"checked":"" %>/><em style="background: purple;"></em></label>
			</td>
		</tr>
<% 	} else if (action.equals("move")) { %>
		<tr>
			<th>移动的目标版块</th>
			<td>
				<select id="moveto" name="moveto">
<%
		if (sections != null)
		{
			SectionVO tmpSection = null;
			BoardVO tmpBoard = null;
			String tmpUrl = null;
			StringBuilder sb = new StringBuilder();
			
			for (int i=0; i<sections.size(); i++)	
			{
				tmpSection = (SectionVO)sections.get(i);
				if (tmpSection.boardList == null) continue;
				sb.append("<OPTGROUP label=\"").append(tmpSection.sectionName).append("\">\n");
				for (int j=0; j<tmpSection.boardList.size(); j++)
				{
					tmpBoard = (BoardVO)tmpSection.boardList.get(j);
					if (tmpBoard.state == 'I' && !isModerator) continue;
					sb.append("<OPTION value=\"").append(tmpSection.sectionID).append("_").append(tmpBoard.boardID)
					  .append("\">&nbsp; &gt; ").append(tmpBoard.boardName).append("</OPTION>\n");
				}
				sb.append("</OPTGROUP>");
			}
			out.write(sb.toString());
		}
%>
				</select>
			</td>
		</tr>
<%
	} else if (action.equals("close")) {
		char state = 'N';
		if (topicInfo != null)
			state = ((String)topicInfo.get("STATE")).charAt(0);
%>				
		<tr>
			<th>操作</th>
			<td><label><input class="radio" type="radio" name="state" value="open" 
							  <%= state=='C'?"checked":"" %>/> 打开主题</label> &nbsp;
				<label><input class="radio" type="radio" name="state" value="close"
							  <%= state=='N'?"checked":"" %>/> 关闭主题</label>
			</td>
		</tr>
<%
	} else if (action.equals("setbest")) {
%>				
		<tr>
			<th>操作</th>
			<td><label><input class="radio" type="radio" name="isBest" value="T" checked="checked"/> 设为最佳回复</label> &nbsp;
				<label><input class="radio" type="radio" name="isBest" value="F"/> 不是最佳回复</label>
			</td>
		</tr>
<%
	}
	if (action.equals("highlight") || action.equals("top")) {
		String expireDate = null;
		if (topicInfo != null)
		{
			if (action.equals("highlight"))
				expireDate = AppUtils.formatDateStr((String)topicInfo.get("HIGHEXPIREDATE"));
			else	
				expireDate = AppUtils.formatDateStr((String)topicInfo.get("TOPEXPIREDATE"));
		}
		if (expireDate == null || expireDate.length() == 0)
			expireDate = "";
%>
		<tr>
			<th><label for="expiredate">有效期</label></th>
			<td><input type="text" name="expiredate" id="expiredate" size="15" value="<%= expireDate %>"/> 
				&nbsp;(&nbsp;本操作的有效期限,格式为 yyyy-mm-dd,留空为不限制&nbsp;)
			</td>
		</tr>		
<%
	}
	if (!action.equals("setbest")) {
%>				
		<tr>
			<th valign="top">操作原因</th>
			<td>
			<select id="reasons" name="reasons" onchange="this.form.reason.value=this.value" style="width:110px;">
			<option value="">自定义</option>
			<option value="">------------</option>
<%		for (int i=0; i<judgeOptions.length; i++) { %>
			<option value="<%= judgeOptions[i].length()==0?"":judgeOptions[i].replace("\"", "&quot;") %>">
				<%= judgeOptions[i].length()==0?"------------":judgeOptions[i].replace("\"", "&quot;") %></option>
<%		} 	  %>
			</select>&nbsp;
		<input type=text id="reason" name="reason" size="50" maxlength="40"/>
			</td>
		</tr>
<%	}  %>
		<tr>
			<th>&nbsp;</th>
			<td>
				<input type="checkbox" name="sendsms" value="yes" 
							  style="vertical-align:text-bottom"/> 发短消息通知作者 
<%	if (action.equals("delete")) {
		if (isModerator) {
%>
				<input type="checkbox" name="moduserinfo" value="no" 
							  style="vertical-align:text-bottom"/> 删帖但不减用户发帖数和积分
<%	} }  %>				
			</td>
		</tr>
		<tr class="btns">
			<th>&nbsp;</th>
			<td height="35"><button type="submit" name="modsubmit" id="postsubmit" class=submit>提交</button>
		</tr>
	</table>
<% for (int i=0; i<topicIDs.length; i++) { %><input type="hidden" name="topicID" value="<%= topicIDs[i] %>"/> <% } %>
<% if (replyID != null) { %><input type="hidden" name="replyID" value="<%= replyID %>"/> <% } %>
	</div>
</form>
</DIV>
<%= menus[1]==null?"":menus[1] %>
<%= menus[2]==null?"":menus[2] %>
<%= PageUtils.getFooter(request, forumStyle) %>
</BODY></HTML>

⌨️ 快捷键说明

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