📄 mywatch.jsp
字号:
<%--
- $Author: 飞鱼
- $Revision: 1.22 $
- $Date: 2003/02/01 09:41:34 $
- http://www.hnedu.net/fiyu
--%>
<%@ page contentType="text/html;charset=utf-8" %>
<%@ page errorPage="fatalerror.jsp"%>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="fiyucore.util.ParamUtil" %>
<%@ page import="fiyucore.util.StringUtil" %>
<%@ page import="fiyucore.filter.EnableEmotionFilter" %>
<%@ page import="fiyuforum.db.*" %>
<%@ page import="fiyuforum.MyUtil" %>
<%@ page import="fiyuforum.fiyuForumGlobal" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ include file="inc_common.jsp"%>
<html >
<head>
<title><%=fiyuForumConfig.getWebName()%> - 我的追踪</title>
<%@ include file="/fiyuplugin/fiyuforum/meta.jsp"%>
</head>
<link href="<%=contextPath%>/fiyuplugin/fiyuforum/css/style.css" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0">
<%@ include file="header.jsp"%>
<br/>
<table width="95%" align="center">
<tr class="nav">
<td><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/nav.gif"></td>
<td width="100%" nowrap> <a class="nav" href="index"><%=fiyuForumConfig.getWebName()%></a> »
<a class="nav" href="myprofile">个人资料</a> » 我的追踪 </td>
</tr>
</table>
<br/>
<%
Collection globalWatchBeans = (Collection) request.getAttribute("GlobalWatchBeans");
Collection categoryWatchBeans = (Collection) request.getAttribute("CategoryWatchBeans");
Collection forumWatchBeans = (Collection) request.getAttribute("ForumWatchBeans");
Collection threadWatchBeans = (Collection) request.getAttribute("ThreadWatchBeans");
CategoryCache categoryCache = CategoryCache.getInstance();
ForumCache forumCache = ForumCache.getInstance();
%>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="pagedesc">
<td>
管理你的所有追踪项目<br>
<%if (globalWatchBeans.size()==0) {%>
请选取下列的工作继续:<br/>
<a class="command" href="addwatch">新增追踪</a><br/>
<%}%>
</td>
</tr>
</table>
<br/>
<table width="95%" align="center">
<tr>
<td class="hightlight">我的全域追踪:
<%if(globalWatchBeans.size()>=1){%>是<%}else{%>否<%}%>
</td>
</tr>
</table>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td>我的全域追踪</td>
<td align="center">开始</td>
<td align="center">最後送出</td>
<td align="center">编辑</td>
<td align="center">删除</td>
</tr>
<%if (globalWatchBeans.size() == 1) {
Iterator globalIterator = globalWatchBeans.iterator();
WatchBean watchBean = (WatchBean) globalIterator.next();
%>
<tr class="trow1">
<td><b>我的全域追踪</b></td>
<td align="center"><%=onlineUser.getGMTTimestampFormat(watchBean.getWatchCreationDate())%></td>
<td align="center"><%=onlineUser.getGMTTimestampFormat(watchBean.getWatchLastSentDate())%></td>
<td align="center">编辑</td>
<td align="center"><a href="deletewatchprocess?watch=<%=watchBean.getWatchID()%>" class="command">删除</a></td>
</tr>
<%} else {%>
<tr class="trow1"><td colspan="8" align="center">没有全域追踪</td></tr>
<%}%>
</table>
<br/>
<table width="95%" align="center">
<tr>
<td class="hightlight">我的讨论区分类追踪 (<%=categoryWatchBeans.size()%>):</td>
</tr>
</table>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td>分类</td>
<td align="center">开始</td>
<td align="center">最後送出</td>
<td align="center">编辑</td>
<td align="center">删除</td>
</tr>
<%
boolean odd = false;
Iterator catIterator = categoryWatchBeans.iterator();
while (catIterator.hasNext()) {
odd = !odd;
WatchBean watchBean = (WatchBean)catIterator.next();
CategoryBean categoryBean = categoryCache.getBean(watchBean.getCategoryID());
%>
<%if (odd) {%>
<tr class="trow1">
<%} else {%>
<tr class="trow2">
<%}%>
<td>
<b><%=categoryBean.getCategoryName()%></b><br/>
<%=MyUtil.filter(categoryBean.getCategoryDesc(), false/*html*/, true/*emotion*/, true/*fiyuCode*/, true/*newLine*/, true/*URL*/)%>
</td>
<td align="center"><%=onlineUser.getGMTTimestampFormat(watchBean.getWatchCreationDate())%></td>
<td align="center"><%=onlineUser.getGMTTimestampFormat(watchBean.getWatchLastSentDate())%></td>
<td align="center">编辑</td>
<td align="center"><a href="deletewatchprocess?watch=<%=watchBean.getWatchID()%>" class="command">删除</a></td>
</tr>
<%
}//while
if (categoryWatchBeans.size() == 0) {%>
<tr class="trow1"><td colspan="8" align="center">没有讨论区分类追踪</td></tr>
<%}%>
</table>
<br/>
<table width="95%" align="center">
<tr>
<td class="hightlight">我的讨论区追踪 (<%=forumWatchBeans.size()%>):</td>
</tr>
</table>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td>讨论区</td>
<td align="center">开始</td>
<td align="center">最後送出</td>
<td align="center">编辑</td>
<td align="center">删除</td>
</tr>
<%
odd = false;
Iterator forumIterator = forumWatchBeans.iterator();
while (forumIterator.hasNext()) {
odd = !odd;
WatchBean watchBean = (WatchBean)forumIterator.next();
ForumBean forumBean = forumCache.getBean(watchBean.getForumID());
%>
<%if (odd) {%>
<tr class="trow1">
<%} else {%>
<tr class="trow2">
<%}%>
<td>
<b><%=forumBean.getForumName()%></b><br>
<%=MyUtil.filter(forumBean.getForumDesc(), false/*html*/, true/*emotion*/, true/*fiyuCode*/, true/*newLine*/, true/*URL*/)%>
</td>
<td align="center"><%=onlineUser.getGMTTimestampFormat(watchBean.getWatchCreationDate())%></td>
<td align="center"><%=onlineUser.getGMTTimestampFormat(watchBean.getWatchLastSentDate())%></td>
<td align="center">编辑</td>
<td align="center"><a href="deletewatchprocess?watch=<%=watchBean.getWatchID()%>" class="command">删除</a></td>
</tr>
<%
}//while
if (forumWatchBeans.size() == 0) {%>
<tr class="trow1"><td colspan="8" align="center">没有讨论区追踪</td></tr>
<%}%>
</table>
<br/>
<table width="95%" align="center">
<tr>
<td class="hightlight">我的讨论话题追踪 (<%=threadWatchBeans.size()%>):</td>
</tr>
</table>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="3">话题</td>
<td align="center">开始</td>
<td align="center">最後送出</td>
<td align="center">编辑</td>
<td align="center">删除</td>
</tr>
<%
odd = false;
Iterator threadIterator = threadWatchBeans.iterator();
while (threadIterator.hasNext()) {
odd = !odd;
WatchBean watchBean = (WatchBean)threadIterator.next();
ThreadBean threadBean = watchBean.getThreadBean();
%>
<%if (odd) {%>
<tr class="trow1">
<%} else {%>
<tr class="trow2">
<%}%>
<td width="16"><img src="<%=contextPath%>/fiyuplugin/fiyuforum/images/icon/<%=MyUtil.getThreadIconName(onlineUser.getLastLogonTimestamp().getTime(), threadBean.getThreadLastPostDate().getTime(), threadBean.getThreadReplyCount()+1)%>" border="0"></td>
<td width="16"><%=EnableEmotionFilter.filter(threadBean.getThreadIcon(), ParamUtil.getContextPath() + fiyuForumGlobal.EMOTION_DIR)%></td>
<td>
<a class="messageTopic" href="viewthread?thread=<%=threadBean.getThreadID()%>">
<%=MyUtil.filter(threadBean.getThreadTopic(), false/*html*/, true/*emotion*/, false/*fiyuCode*/, false/*newLine*/, false/*URL*/)%>
</a><br/>
<%=MyUtil.filter(StringUtil.getShorterString(threadBean.getThreadBody()), false/*html*/, true/*emotion*/, false/*fiyuCode*/, false/*newLine*/, false/*URL*/)%>
</td>
<td align="center"><%=onlineUser.getGMTTimestampFormat(watchBean.getWatchCreationDate())%></td>
<td align="center"><%=onlineUser.getGMTTimestampFormat(watchBean.getWatchLastSentDate())%></td>
<td align="center">编辑</td>
<td align="center"><a href="deletewatchprocess?watch=<%=watchBean.getWatchID()%>" class="command">删除</a></td>
</tr>
<%
}//while
if (threadWatchBeans.size() == 0) {%>
<tr class="trow1"><td colspan="8" align="center">没有讨论话题追踪</td></tr>
<%}%>
</table>
<br/>
<%@ include file="footer.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -