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

📄 watches.jsp

📁 Struts+Spring+Hibernate开发的BBS,功能很强大很完善
💻 JSP
📖 第 1 页 / 共 2 页
字号:
</tr>
</table>

<p>

<form action="watches.jsp">
<font size="-1" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>">
论坛监控:
</font>
<select size="1" name="forum" onchange="location.href='watches.jsp?forum='+this.options[this.selectedIndex].value;">
<option value="-1">所有论坛 (默认)
<%  for (Iterator iter=myEnv.getForumFactory().forums(); iter.hasNext();) {
        Forum f = (Forum)iter.next();
        String selected = "";
        if (f.getID() == forumID) {
            selected = " selected";
        }
%>
    <option value="<%= f.getID() %>"<%= selected %>>&nbsp;&#149;&nbsp; <%= f.getName() %>
<%  } %>
</select>
<noscript>
<input type="submit" value="Go">
</noscript>
</form>
<%  if (forumID != -1) { %>
    <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>">
    下面是 <b><%= forum.getName() %></b> 论坛的监控.
    [<a href="watches.jsp">显示全部监控</a>]
    </font>
<%  } %>

<%  if (!watchedThreads.hasNext()) { %>

    <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"
    color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">
    <%  if (forumID == -1) { %>
您没有监控任何主题,请点击每个主题页面中的"监控主体"链接.
    <%  } else { %>
您没有监控任何主题,请点击<a href="forum.jsp?forum=<%= forumID %>">主题页面</a>中的"监控主体"链接.
    <%  } %>
    </font>
    <p>

<%  } else { %>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<form action="watches.jsp">
<td width="99%">
    &nbsp;
</td>
</form>
<form action="watches.jsp" method="post">
<input type="hidden" name="deleteWatch" value="true">
<input type="hidden" name="start" value="<%= start %>">
<input type="hidden" name="range" value="<%= range %>">
<%  if (referrer != null) { %>
<input type="hidden" name="referrer" value="<%= referrer %>">
<%  } %>
<%  if (watchedThreads.hasNext()) { %>
<td width="1%" valign="bottom">&nbsp;</td>
<%  } %>
</tr>
</table>
<%  if (watchedThreads.hasNext()) { %>
<table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>"
 cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
<table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>"
 cellpadding="3" cellspacing="1" border="0" width="100%">
<tr bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableHeaderBgColor") %>">
    <td width="1%">&nbsp;</td>
    <td width="97%"><font class=p2 color="<%= JiveGlobals.getJiveProperty("skin.default.tableHeaderTextColor") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.headerFontFace") %>"><b>&nbsp; 主 题</b></font></td>
    <td width="1%" nowrap align="center"><font class=p2 color="<%= JiveGlobals.getJiveProperty("skin.default.tableHeaderTextColor") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.headerFontFace") %>"><b>&nbsp; 选 项 &nbsp;</b></font></td>
    <td width="1%" align="center" nowrap><font class=p2 color="<%= JiveGlobals.getJiveProperty("skin.default.tableHeaderTextColor") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.headerFontFace") %>"><b>&nbsp; 删 除 &nbsp;</b></font></td>
</tr>
<%      int watchStart = start;
        while (watchStart-- > 0 && watchedThreads.hasNext()) {
            watchedThreads.next();
        }
        int watchRange = range;
        while (watchRange-- > 0 && watchedThreads.hasNext()) {
            ForumThread t = (ForumThread)watchedThreads.next();
            Forum f = t.getForum();
            long tID = t.getID();
            long fID = f.getID();
            User author = t.getRootMessage().getUser();
            boolean isEmailUpdatable = watchManager.isWatchedThread(pageUser, t, WatchManager.EMAIL_NOTIFY_WATCH);
            boolean isExpirable = watchManager.isWatchExpirable(pageUser, t, WatchManager.NORMAL_WATCH);
            boolean isNew = (t.getModifiedDate().getTime() > lastVisited.getTime());
%>
<tr bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableRowColor1") %>">
    <td nowrap width="1%" valign="top">
    <%  if (isNew) { %>
        <img src="images/topic_new.gif" width="8" height="8" vspace="4" hspace="2" border="0">
    <%  } else { %>
        <img src="images/topic_old.gif" width="8" height="8" vspace="4" hspace="2" border="0">
    <%  } %>
    </td>
    <td width="97%">
        <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"
        color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">
        <a href="thread.jsp?forum=<%= fID %>&thread=<%= tID %>" title="<%= f.getName() %>"
         ><b><%= t.getName() %></b></a>
        </font>
        <br>
        <font class=p2 color="#333333" face="<%= JiveGlobals.getJiveProperty("skin.default.headerFontFace") %>">
        <%  if (author != null) { %>
        &nbsp;&nbsp; 发贴人: <a href="profile.jsp?user=<%= author.getID() %>"><%= author.getUsername() %></a>
        <%  } else { %>
        发贴人: <i>客人</i>
        <%  } %>
        在<a href="forum.jsp?forum=<%= f.getID() %>"><%= f.getName() %></a>论坛.
        <br>
        &nbsp;&nbsp; (最后更新: <%= SkinUtils.formatDate(request, response, pageUser, t.getModifiedDate()) %>)
        </font>
    </td>
    <td width="1%" nowrap>
        <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>">
<%  if (isEmailUpdatable) { %>
&#149; <a href="watches.jsp?forum=<%= fID %>&thread=<%= tID %>&remove=true&type=<%= WatchManager.EMAIL_NOTIFY_WATCH %>&redirect=<%= "watches.jsp?forum="+forumID %>"
>删除邮件提醒</a
<%  } else { %>
&#149; <a href="watches.jsp?forum=<%= fID %>&thread=<%= tID %>&add=true&type=<%= WatchManager.EMAIL_NOTIFY_WATCH %>&redirect=<%= "watches.jsp?forum="+forumID %>"
>加入邮件提醒</a
<%  } %>
<%  if (isExpirable) { %>
><br>&#149; <a href="watches.jsp?forum=<%= fID %>&thread=<%= tID %>&doExpire=true&expire=false&redirect=<%= "watches.jsp?forum="+forumID %>"
>保存自动监控</a>
<%  } else { %>
><br>&#149; <a href="watches.jsp?forum=<%= fID %>&thread=<%= tID %>&doExpire=true&expire=true&redirect=<%= "watches.jsp?forum="+forumID %>"
>删除自动监控</a>
<%  } %>
        </font>
    </td>
    <td width="1%" align="center">
        <table cellpadding="0" cellspacing="0" border="0" width="60">
        <tr><td align="center">
        <input type="hidden" name="<%= "thread"+tID+"forumID" %>" value="<%= fID %>">
        <input type="checkbox" name="deleteWatchThreadID" value="<%= tID %>">
        </td></tr>
        </table>
    </td>
</tr>
<%      } // end while %>
</table>
</td></tr>
</table>

<p>

<table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr><td width="1%">
    <img src="images/topic_new.gif" width="8" height="8" vspace="2" hspace="2" border="0">
</td><td width="98%">
    <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"
    color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>">
    <i>表明在您最后访问有新消息发表.</i>
    </font>
</td><td width="1%">
    <input type="submit" value="删 除">
</td></tr>
</table>

<p>

<%  if (start > 0 || ((start+range) < watchCount)) { %>
<table cellpadding="2" cellspacing="0" border="0" width="100%">
<tr>
    <td width="1%" nowrap>
    <%  if (start > 0) { %>
    <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.headerFontFace") %>">
    <a href="watches.jsp?start=<%= (start-range) %>&range=<%= range %>"
     ><img src="images/prev.gif" width="10" height="10" alt="Previous <%= range %> watches" hspace="3" border="0"></a>
    <a href="watches.jsp?start=<%= (start-range) %>&range=<%= range %>"
     >上 <%= range %> 个监控</a>
    </font>
    <%  } %>
    </td>
    <td width="98%">&nbsp;</td>
    <td width="1%" nowrap>
    <font class=p2 face="<%= JiveGlobals.getJiveProperty("skin.default.headerFontFace") %>">
    <%  if ((start+range) < watchCount) { %>
    <a href="watches.jsp?start=<%= (start+range) %>&range=<%= range %>"
     >下 <%= range %> 个监控</a>
    <a href="watches.jsp?start=<%= (start+range) %>&range=<%= range %>"
     ><img src="images/next.gif" width="10" height="10" alt="Next <%= range %> watches" hspace="3" border="0"></a>
    <%  } %>
    </font>
    </td>
</tr>
</table>
<%  } %>

<p>

<%  } // end else %>

</form>

<%  } // end if no watches %>

<%  if (referrer != null) { %>
<br>
<center>
    <form action="watches.jsp">
    <input type="hidden" name="back" value="true">
    <%  if (referrer != null) { %>
    <input type="hidden" name="referrer" value="<%= referrer %>">
    <%  } %>
    <input type="submit" value="返 回">
    </form>
</center>
<%  } %>

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

⌨️ 快捷键说明

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