📄 addwatch.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.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/>
<script language="JavaScript">
function showGlobalWatch() {
document.getElementById("WatchSelector0").checked = true;
document.getElementById("GlobalWatch").style.display = '';
document.getElementById("CategoryWatch").style.display = 'none';
document.getElementById("ForumWatch").style.display = 'none';
document.getElementById("ThreadWatch").style.display = 'none';
}
function showCategoryWatch() {
document.getElementById("WatchSelector1").checked = true;
document.getElementById("GlobalWatch").style.display = 'none';
document.getElementById("CategoryWatch").style.display = '';
document.getElementById("ForumWatch").style.display = 'none';
document.getElementById("ThreadWatch").style.display = 'none';
}
function showForumWatch() {
document.getElementById("WatchSelector2").checked = true;
document.getElementById("GlobalWatch").style.display = 'none';
document.getElementById("CategoryWatch").style.display = 'none';
document.getElementById("ForumWatch").style.display = '';
document.getElementById("ThreadWatch").style.display = 'none';
}
function showThreadWatch() {
document.getElementById("WatchSelector3").checked = true;
document.getElementById("GlobalWatch").style.display = 'none';
document.getElementById("CategoryWatch").style.display = 'none';
document.getElementById("ForumWatch").style.display = 'none';
document.getElementById("ThreadWatch").style.display = '';
}
</script>
<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> » <a class="nav" href="mywatch">我的追踪</a> »
加入追踪项目 </td>
</tr>
</table>
<br/>
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="pagedesc">
<td class="warning"><b>注意:</b> 请先检查你的电子邮件是正确且可使用的, 如果你的电子邮件没有办法正常的收发信件,那麽你的帐号将会被停用。</td>
</tr>
</table>
<br/>
<%
CategoryCache categoryCache = CategoryCache.getInstance();
Collection categoryBeans = categoryCache.getBeans();
ForumCache forumCache = ForumCache.getInstance();
Collection forumBeans = forumCache.getBeans();
%>
<form action="addwatchprocess" method="post">
<table class="tborder" width="95%" cellspacing="1" cellpadding="3" align="center">
<tr class="theader">
<td colspan="2">请选择追踪项目:</td>
</tr>
<tr class="trow1">
<td width="30%" valign="top">想要追踪的型式</td>
<td>
<input type="radio" name="WatchSelector" value="0" id="WatchSelector0" onClick="showGlobalWatch();" class="noborder"> 全域<br>
<input type="radio" name="WatchSelector" value="1" id="WatchSelector1" onClick="showCategoryWatch();" class="noborder"> 讨论区分类<br>
<input type="radio" name="WatchSelector" value="2" id="WatchSelector2" onClick="showForumWatch();" class="noborder"> 讨论区<br>
<input type="radio" name="WatchSelector" value="3" id="WatchSelector3" onClick="showThreadWatch();" class="noborder"> 讨论主题<br>
</td>
</tr>
<tr class="trow2" id="GlobalWatch" style="display: none;">
<td colspan="2" align="center">你将会追踪整个系统</td>
</tr>
<tr class="trow2" id="CategoryWatch" style="display: none;">
<td>分类</td>
<td>
<select name="category">
<option value="">请选择一个讨论区分类</option>
<%
Iterator catIterator = categoryBeans.iterator();
while (catIterator.hasNext()) {
CategoryBean categoryBean = (CategoryBean)catIterator.next();
%>
<option value="<%=categoryBean.getCategoryID()%>"> <%=categoryBean.getCategoryName()%></option>
<% }//while %>
</select>
</td>
</tr>
<tr class="trow2" id="ForumWatch" style="display: none;">
<td>讨论区</td>
<td>
<select name="forum">
<option value="">请选择一个讨论区</option>
<%
Iterator forumIterator = forumBeans.iterator();
int lastCategoryID = -1;
while(forumIterator.hasNext()) {
ForumBean row = (ForumBean)forumIterator.next();
if (row.getCategoryID() != lastCategoryID) {// to print the category
lastCategoryID = row.getCategoryID();
CategoryBean categoryBean = categoryCache.getBean(lastCategoryID); %>
<option value="<%=categoryBean.getCategoryID()%>"> <%=categoryBean.getCategoryName()%></option>
<option value=""> ---------------------------------</option>
<%
}//if
%>
<option value="<%=row.getForumID()%>"> <%=row.getForumName()%></option>
<% }//while %>
</select>
</td>
</tr>
<tr class="trow2" id="ThreadWatch" style="display: none;">
<td>话题</td>
<td><input type="text" name="thread" value="<%=ParamUtil.getParameter(request, "thread")%>"></td>
</tr>
<tr class="trowfinal">
<td colspan="2" align="center">
<input type="button" value="追踪" onclick="disabled=true; submit();" class="mainoption">
</td>
</tr>
</table>
</form>
<script language="JavaScript">
showCategoryWatch();
</script>
<br/>
<%@ include file="footer.jsp"%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -