📄 rsssummary.jsp
字号:
<%--
- $Header: /cvsroot/mvnforum/mvnforum/srcweb/mvnplugin/mvnforum/user/rsssummary.jsp,v 1.6 2005/01/18 11:01:46 minhnn Exp $
- $Author: minhnn $
- $Revision: 1.6 $
- $Date: 2005/01/18 11:01:46 $
-
- ====================================================================
-
- Copyright (C) 2002-2005 by MyVietnam.net
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or any later version.
-
- All copyright notices regarding mvnForum MUST remain intact
- in the scripts and in the outputted HTML.
- The "powered by" text/logo with a link back to
- http://www.mvnForum.com and http://www.MyVietnam.net in the
- footer of the pages MUST remain visible when the pages
- are viewed on the internet or intranet.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
- Support can be obtained from support forums at:
- http://www.mvnForum.com/mvnforum/index
-
- Correspondence and Marketing Questions can be sent to:
- info@MyVietnam.net
-
- @author: Minh Nguyen minhnn@MyVietnam.net
- @author: Mai Nguyen mai.nh@MyVietnam.net
--%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="net.myvietnam.mvncore.util.ParamUtil" %>
<%@ page import="com.mvnforum.db.*" %>
<%@ page import="com.mvnforum.MyUtil" %>
<%@ page import="java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<fmt:bundle basename="mvnForum_i18n">
<html <fmt:message key="mvnforum.common.i18n.html_dir"/>>
<head>
<title><fmt:message key="mvnforum.common.forum.title_name"/> - <fmt:message key="mvnforum.user.rss.title"/></title>
<%@ include file="/mvnplugin/mvnforum/meta.jsp"%>
<link href="<%=onlineUser.getCssPath()%>" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<%@ include file="header.jsp"%>
<br/>
<table width="95%" align="center">
<tr class="nav">
<td><img src="<%=contextPath%>/mvnplugin/mvnforum/images/nav.gif"></td>
<td width="100%" nowrap>
<a class="nav" href="index"><fmt:message key="mvnforum.common.nav.index"/></a> »
<fmt:message key="mvnforum.user.rss.title"/>
</td>
</tr>
</table>
<br/>
<%
String sort = ParamUtil.getParameter(request, "sort");
String order = ParamUtil.getParameter(request, "order");
if (sort.length() == 0) sort = "ThreadLastPostDate";
if (order.length() == 0) order = "DESC";
CategoryCache categoryCache = CategoryCache.getInstance();
ForumCache forumCache = ForumCache.getInstance();
Collection categoryBeans = categoryCache.getBeans();
Collection forumBeans = forumCache.getBeans();
%>
<table width="95%" align="center">
<tr class="messageText"><td>
<form action="rsssummary" name="Refresh">
<fmt:message key="mvnforum.common.sort_by"/>
<select name="sort" onchange='document.Refresh.submit();'>
<option value="ThreadLastPostDate" <%if (sort.equals("ThreadLastPostDate")) {%>selected<%}%>><fmt:message key="mvnforum.common.post.last_post_date"/></option>
<option value="ThreadCreationDate" <%if (sort.equals("ThreadCreationDate")) {%>selected<%}%>><fmt:message key="mvnforum.common.post.first_post_date"/></option>
<option value="MemberName" <%if (sort.equals("MemberName")) {%>selected<%}%>><fmt:message key="mvnforum.common.post.author"/></option>
<option value="ThreadReplyCount" <%if (sort.equals("ThreadReplyCount")) {%>selected<%}%>><fmt:message key="mvnforum.common.reply_count"/></option>
<option value="ThreadViewCount" <%if (sort.equals("ThreadViewCount")) {%>selected<%}%>><fmt:message key="mvnforum.common.view_count"/></option>
</select>
<fmt:message key="mvnforum.common.order"/>
<select name="order" onchange='document.Refresh.submit();'>
<option value="ASC" <%if (order.equals("ASC")) {%>selected<%}%>><fmt:message key="mvnforum.common.ascending"/></option>
<option value="DESC" <%if (order.equals("DESC")) {%>selected<%}%>><fmt:message key="mvnforum.common.descending"/></option>
</select>
</form>
</td></tr>
</table>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td width="70%"><fmt:message key="mvnforum.common.global_feed"/></td>
<td align="center">RSS 0.91</td>
<td align="center">RSS 2.0</td>
<td align="center">ATOM</td>
</tr>
<tr class="trow1">
<td><fmt:message key="mvnforum.common.global_feed"/></td>
<td align="center"> <%-- RSS 0.91 --%>
<a href="rss?sort=<%=sort%>&order=<%=order%>"><img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/xml.gif" alt="RSS 0.91 <fmt:message key="mvnforum.common.global_feed"/>" title="RSS 0.91 <fmt:message key="mvnforum.common.global_feed"/>" border="0"></a>
</td>
<td align="center"> <%-- RSS 2.0 --%>
<a href="rss2?sort=<%=sort%>&order=<%=order%>"><img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/rss.gif" alt="RSS 2.0 <fmt:message key="mvnforum.common.global_feed"/>" title="RSS 2.0 <fmt:message key="mvnforum.common.global_feed"/>" border="0"></a>
</td>
<td align="center"> <%-- ATOM --%>
<a href="atom?sort=<%=sort%>&order=<%=order%>"><img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/atom.gif" alt="ATOM <fmt:message key="mvnforum.common.global_feed"/>" title="ATOM <fmt:message key="mvnforum.common.global_feed"/>" border="0"></a>
</td>
</tr>
</table>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td width="70%">Forum Name</td>
<td align="center">RSS 0.91</td>
<td align="center">RSS 2.0</td>
<td align="center">ATOM</td>
</tr>
<%
int categoryCount = 0;
for (Iterator catIter = categoryBeans.iterator(); catIter.hasNext(); ) {
CategoryBean categoryBean = (CategoryBean)catIter.next();
int categoryID = categoryBean.getCategoryID();
if (MyUtil.canViewAnyForumInCategory(categoryID, permission) == false) continue; %>
<tr class="tcat"><td colspan="4" class="messageTextBold"><%=categoryBean.getCategoryName()%></td></tr>
<%
categoryCount ++;
int rowIndex = 0;
for (Iterator forumIter = forumBeans.iterator(); forumIter.hasNext(); ) {
ForumBean forumBean = (ForumBean)forumIter.next();
String forumName = forumBean.getForumName();
int forumID = forumBean.getForumID();
if (forumBean.getCategoryID() != categoryID) continue;
if (permission.canReadPost(forumID) && (forumBean.getForumStatus() != ForumBean.FORUM_STATUS_DISABLED) ) { %>
<tr class="trow<%=(rowIndex++)%2 + 1%>">
<td><%=forumName%></td>
<td align="center"> <%-- RSS 0.91 --%>
<a href="rss?forum=<%=forumID%>&sort=<%=sort%>&order=<%=order%>"><img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/xml.gif" alt="RSS 0.91 <fmt:message key="mvnforum.common.forum_specific_feed"/>" title="RSS 0.91 <fmt:message key="mvnforum.common.forum_specific_feed"/>" border="0"></a>
</td>
<td align="center"> <%-- RSS 2.0 --%>
<a href="rss2?forum=<%=forumID%>&sort=<%=sort%>&order=<%=order%>"><img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/rss.gif" alt="RSS 2.0 <fmt:message key="mvnforum.common.forum_specific_feed"/>" title="RSS 2.0 <fmt:message key="mvnforum.common.forum_specific_feed"/>" border="0"></a>
</td>
<td align="center"> <%-- ATOM --%>
<a href="atom?forum=<%=forumID%>&sort=<%=sort%>&order=<%=order%>"><img src="<%=request.getContextPath()%>/mvnplugin/mvnforum/images/icon/atom.gif" alt="ATOM <fmt:message key="mvnforum.common.forum_specific_feed"/>" title="ATOM <fmt:message key="mvnforum.common.forum_specific_feed"/>" border="0"></a>
</td>
</tr>
<% } //if
} // for forum
}// for category %>
<% if (categoryCount == 0) {%>
<tr>
<td colspan="4" align="center" class="trow1"><fmt:message key="mvnforum.user.listforums.table.no_category"/></td>
</tr>
<% } %>
</table>
<br/>
</fmt:bundle>
<%@ include file="footer.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -