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

📄 forumdetail.jsp

📁 Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统
💻 JSP
字号:
<%@ page contentType="text/html;charset=UTF-8" %>

<%
/**
 *	$RCSfile: forumDetail.jsp,v $
 *	$Revision: 1.1.1.1 $
 *	$Date: 2002/09/09 13:50:12 $
 */
%>

<%@ page import="java.util.*,
                 java.text.*,
                 com.jivesoftware.forum.*,
                 com.jivesoftware.forum.util.*"%>

<%!	///////////////////////
	// page variables
	SimpleDateFormat dateFormat = new SimpleDateFormat("EEEE, MMMM d 'at' hh:mm:ss a");
%>

<%@ include file="global.jsp" %>

<%	////////////////////
	// Security check

	// make sure the user is authorized to administer users:

%>

<%	////////////////////
	// get parameters

	int forumID   = ParamUtils.getIntParameter(request,"forum",-1);
%>

<%	//////////////////////////////////
	// global error variables

	String errorMessage = "";

	boolean noForumSpecified = (forumID < 0);
	boolean errors = (noForumSpecified);
%>

<html>
<head>
	<title></title>
	<link rel="stylesheet" href="style/global.css">
         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000">

<%	///////////////////////
	// pageTitleInfo variable (used by include/pageTitle.jsp)
	String[] pageTitleInfo = { "论坛 : 论坛详细情况" };
%>
<%	///////////////////
	// pageTitle include
%>

<p>

<%	/////////////////////
	// at this point, we know there is a forum to work with:
	Forum forum = null;
	try {
		forum = forumFactory.getForum(forumID);
	} catch( ForumNotFoundException fnfe ) {
	} catch( UnauthorizedException ue ) {
	}

	Date creationDate = forum.getCreationDate();
	String description = forum.getDescription();
	/*
	ForumMessageFilter[] installedFilters = null;
	try {
		installedFilters = forum.getForumMessageFilters();
	}
	catch( UnauthorizedException ue ) {}
	*/
	int messageCount = forum.getMessageCount();
	Date modifiedDate = forum.getModifiedDate();
	String forumName = forum.getName();
	ForumPermissions forumPermissions = forum.getPermissions(authToken);
	Iterator propertyNames = forum.propertyNames();
	int threadCount = forum.getThreadCount();

%>

<font size="+1">
论坛: <%= forumName %>
</font>

<p>

<table bgcolor="#999999" cellspacing="0" cellpadding="0" width="100%" border="0">
<td>
<table bgcolor="#999999" cellspacing="1" cellpadding="3" width="100%" border="0">
<tr bgcolor="#ffffff">
	<td nowrap>描述</td>
	<td><i><%= (description!=null&&!description.equals(""))?description:"&nbsp;" %></i></td>
</tr>
<tr bgcolor="#ffffff">
	<td nowrap>主题数</td>
	<td><%= threadCount %></td>
</tr>
<tr bgcolor="#ffffff">
	<td nowrap>消息数</td>
	<td><%= messageCount %></td>
</tr>
<tr bgcolor="#ffffff">
	<td nowrap>创建日期</td>
	<td><%= dateFormat.format(creationDate) %></td>
</tr>
<tr bgcolor="#ffffff">
	<td nowrap>修改日期</td>
	<td><%= dateFormat.format(modifiedDate) %></td>
</tr>
</table>
</td>
</table>

<p>

<b>其它属性:</b><p>
<%	if( !propertyNames.hasNext() ) { %>
	<ul><i>没有其它属性</i></ul>
<%	} else { %>
	<table bgcolor="#999999" cellspacing="0" cellpadding="0" width="95%" align="right">
	<td>
	<table bgcolor="#999999" cellspacing="1" cellpadding="3" width="100%">
	<%	while( propertyNames.hasNext() ) { %>
	<%		String propertyName = (String)propertyNames.next(); %>
	<%		String propertyValue = forum.getProperty(propertyName); %>
		<tr bgcolor="#ffffff">
		<td><%= propertyName %></td>
		<td><%= propertyValue %></td>
		</tr>
	<%	} %>
	</table>
	</td>
	</table>
	<br clear="all"><br>
<%	} %>


</body>
</html>

⌨️ 快捷键说明

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