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

📄 removeforum.jsp

📁 jive的源码
💻 JSP
字号:
<%/** *	$RCSfile: removeForum.jsp,v $ *	$Revision: 1.1 $ *	$Date: 2002/08/16 06:52:22 $ */%><%@ page import="java.util.*,                 com.jivesoftware.forum.*,                 com.jivesoftware.forum.util.*,                 com.jivesoftware.util.ParamUtils"%><%@ include file="global.jsp" %> <%	// cancel if requested    if ("Cancel".equals(ParamUtils.getParameter(request,"submitButton"))) {        response.sendRedirect("forums.jsp");        return;    }        // get parameters	long forumID = ParamUtils.getIntParameter(request,"forum",-1);	boolean delete = ParamUtils.getBooleanParameter(request,"delete");        // Load up the forum specified    Forum forum = forumFactory.getForum(forumID);        // Put the forum in the session (is needed by the sidebar)    session.setAttribute("admin.sidebar.forums.currentForumID", ""+forumID);    	if (delete) {        forumFactory.deleteForum(forum);        // Remove the forumID from the session        session.removeAttribute("admin.sidebar.forums.currentForumID");		response.sendRedirect("forums.jsp");		return;	}%><%  // special onload command to load the sidebar    onload = " onload=\"parent.frames['sidebar'].location.href='sidebar.jsp?sidebar=forum';\"";%><%@ include file="header.jsp" %><p><%  // Title of this page and breadcrumbs    String title = "Delete Forum";    String[][] breadcrumbs = {        {"Main", "main.jsp"},        {"Forums", "forums.jsp"},        {"Delete Forum", "removeForum.jsp?forum="+forumID}    };%><%@ include file="title.jsp" %><script language="JavaScript" type="text/javascript"><!--var clicked = false;function checkClick() {    if (!clicked) {        clicked = true;        return true;    }    return false;}//--></script><form action="removeForum.jsp" name="deleteForm" onsubmit="return checkClick();"><input type="hidden" name="delete" value="true"><input type="hidden" name="forum" value="<%= forumID %>"><font size="-1"><b>Confirm Forum Deletion</b></font><p><ul>    <font size="-1">	Warning: This will permanently delete the forum <b><%= forum.getName() %></b>.    Are you sure you really want to do this?    <p>    </font>	<input type="submit" name="submitButton" value="Delete Forum">	&nbsp;	<input type="submit" name="submitButton" value="Cancel"></ul></form><%@ include file="footer.jsp" %>

⌨️ 快捷键说明

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