threadmode2.jsp
来自「Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛」· JSP 代码 · 共 794 行 · 第 1/3 页
JSP
794 行
User author = null; if (!"false".equals(JiveGlobals.getJiveProperty("skin.default.showLastPostLink"))) { lastPost = SkinUtils.getLastPost(thread); if (lastPost != null) { author = lastPost.getUser(); } %> <a href="thread.jsp?forum=<%= lastPost.getForumThread().getForum().getID() %>&thread=<%= lastPost.getForumThread().getID() %>&message=<%= lastPost.getID() %>#latest" title="" ><img src="images/go_to.gif" width="13" height="10" border="0" hspace="2"></a> <%= SkinUtils.getLocalizedString("skin.default.thread.most_recent_reply_posted_by",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <% if (author == null) { %> <i><%= SkinUtils.getLocalizedString("skin.default.global.guest", locale) %></i> <% } else { %> <%= author.getUsername() %> <% } %> (<%= SkinUtils.formatDate(request,pageUser,lastPost.getCreationDate()) %>) <% } // end if lastPost != null } // end if numReplies > 0 %> </font> </td> <td valign="top" width="1%" align="center"> <%@ include file="loginbox.jsp" %> </td></tr></table><% if (isGuest) { %><p><% } %><% if (isWatchedThread) { %><table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>" cellpadding="1" cellspacing="0" border="0" width="400"><tr><td><table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>" cellpadding="3" cellspacing="0" border="0" width="100%"> <tr bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.prefsHeaderBgColor") %>"> <td valign="top" width="1%" nowrap><img src="images/watch.gif" width="17" height="17" border="0"></td> <td width="99%"> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"> <%-- Watching this Topic --%> <b><%= SkinUtils.getLocalizedString("skin.default.thread.watching_this_topic",locale) %></b> <br> <%-- watch description --%> <%= SkinUtils.getLocalizedString("skin.default.thread.watch_description",locale) %> </font> <br> <table cellpadding="2" cellspacing="0" border="0"> <tr><td><img src="images/watch_remove.gif" width="17" height="14" border="0"></td> <td> <%-- Stop Watching Topic --%> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"> <a href="watches.jsp?forum=<%= forumID %>&thread=<%= threadID %>&remove=true" ><%= SkinUtils.getLocalizedString("skin.default.thread.stop_watch",locale) %></a> </font> </td> <td><img src="images/blank.gif" width="10" height="1" border="0"></td> <% if (watchManager.isWatchedThread(pageUser, thread, WatchManager.EMAIL_NOTIFY_WATCH)) { %> <td><img src="images/remove_email_watch.gif" width="16" height="12" border="0" vspace="1"></td> <td> <%-- Remove Email Notification --%> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"> <a href="watches.jsp?forum=<%= forumID %>&thread=<%= threadID %>&remove=true&type=<%= WatchManager.EMAIL_NOTIFY_WATCH %>" ><%= SkinUtils.getLocalizedString("skin.default.watches.remove_email",locale) %></a> </font> </td> <% } else { if (!isLocked && !isArchived) { %> <td><img src="images/add_email_watch.gif" width="16" height="12" border="0" vspace="1"></td> <td> <%-- Add Email Notification --%> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"> <a href="watches.jsp?forum=<%= forumID %>&thread=<%= threadID %>&add=true&type=<%= WatchManager.EMAIL_NOTIFY_WATCH %>" ><%= SkinUtils.getLocalizedString("skin.default.watches.add_email",locale) %></a> </font> </td> <% } } %> </tr> </table> </td> </tr> </table> </td></tr> </table><br><% } %><% if (isLocked) { %> <table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>" cellpadding="1" cellspacing="0" border="0" width="400"> <tr><td> <table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>" cellpadding="3" cellspacing="0" border="0" width="100%"> <tr bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.prefsHeaderBgColor") %>"> <td valign="top" width="1%" nowrap><img src="images/lock.gif" width="9" height="12" border="0" vspace="3" hspace="3"></td> <td width="99%"> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"> <%-- Topic Locked --%> <b><%= SkinUtils.getLocalizedString("skin.default.thread.topic_locked",locale) %></b> <br> <%-- Topic locked description --%> <%= SkinUtils.getLocalizedString("skin.default.thread.topic_locked_description",locale) %> <% if (isModerator) { %> <br> <%-- Moderator: --%> <b><%= SkinUtils.getLocalizedString("skin.default.global.moderator",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %></b> <%-- Unlock this topic --%> <a href="thread.jsp?forum=<%= forumID %>&thread=<%= threadID %>&unlock=true&tstart=<%= threadStart %>&trange=<%= threadRange %>" ><%= SkinUtils.getLocalizedString("skin.default.thread.unlock_this_topic",locale) %></a> <% } %> </font> </td> </tr> </table></td></tr> </table><br><% } else if (isArchived) { %> <table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>" cellpadding="1" cellspacing="0" border="0"> <tr><td> <table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>" cellpadding="3" cellspacing="0" border="0" width="100%"> <tr bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.prefsHeaderBgColor") %>"> <td valign="top"><img src="images/archived.gif" width="11" height="14" border="0" vspace="2"></td> <td> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"> <%-- Topic Archived --%> <b><%= SkinUtils.getLocalizedString("skin.default.thread.topic_archived",locale) %></b> <br> <%-- Topic archived description --%> <%= SkinUtils.getLocalizedString("skin.default.thread.topic_archived_description",locale) %> <% if (isModerator) { %> <br> <%-- Moderator: --%> <b><%= SkinUtils.getLocalizedString("skin.default.global.moderator",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %></b> <%-- Unarchive this topic --%> <a href="thread.jsp?forum=<%= forumID %>&thread=<%= threadID %>&unarchive=true&tstart=<%= threadStart %>&trange=<%= threadRange %>" ><%= SkinUtils.getLocalizedString("skin.default.thread.unarchive_this_topic",locale) %></a> <% } %> </font> </td> </tr></table></td></tr></table><br><% } %><table cellpadding="0" cellspacing="2" border="0"><tr> <% if (!isLocked && !isArchived) { %> <td><a href="post.jsp?forum=<%= forumID %>&thread=<%= threadID %>&reply=true"><img src="images/reply.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_reply",locale) %>" border="0"></a></td> <td nowrap><font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"> <a href="post.jsp?forum=<%= forumID %>&thread=<%= threadID %>&reply=true" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_reply",locale) %>"><%= SkinUtils.getLocalizedString("skin.default.thread.reply_topic",locale) %></a> </font> </td> <td><img src="images/blank.gif" width="10" height="1" border="0"></td> <% } %> <td><a href="post.jsp?forum=<%= forumID %>"><img src="images/post.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_start_watch",locale) %>" border="0"></a></td> <td nowrap><font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"> <a href="post.jsp?forum=<%= forumID %>" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_start_watch",locale) %>"><%= SkinUtils.getLocalizedString("skin.default.global.post_new_topic",locale) %></a> </font> </td> <td><img src="images/blank.gif" width="10" height="1" border="0"></td> <% if ("true".equals(JiveGlobals.getJiveProperty("search.enabled"))) { %> <td><a href="search.jsp?forums=<%= forumID %>"><img src="images/search.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_search",locale) %>" border="0"></a></td> <td nowrap><font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"> <a href="search.jsp?forums=<%= forumID %>" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_search",locale) %>"><%= SkinUtils.getLocalizedString("skin.default.global.search_forum",locale) %></a> </font> </td> <td><img src="images/blank.gif" width="10" height="1" border="0"></td> <% } %> <% if (!isGuest) { boolean showWatchLink = false; if (isWatchedThread) { showWatchLink = true; } else { if (!isArchived && !isLocked) { showWatchLink = true; } } if (showWatchLink) { if (!isWatchedThread) { %> <td><a href="watches.jsp?forum=<%= forumID %>&thread=<%= threadID %>&add=true"><img src="images/watch.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_start_watch",locale) %>" border="0"></a></td> <td nowrap><font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"> <a href="watches.jsp?forum=<%= forumID %>&thread=<%= threadID %>&add=true" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_start_watch",locale) %>"><%= SkinUtils.getLocalizedString("skin.default.global.watch_topic",locale) %></a> </font> </td> <% } } } %></tr></table><table cellpadding="0" cellspacing="2" border="0" width="100%" align="center"><tr><td colspan="3"><img src="images/blank.gif" width="1" height="5" border="0"></td></tr><tr> <td width="1%" nowrap><% if (nav && prevThread != null) { String subj = prevThread.getRootMessage().getSubject(); // Replace any " in the subject subj = StringUtils.replace(subj, "\"", """);%> <a href="thread.jsp?forum=<%= forumID %>&thread=<%= prevThread.getID() %>&tstart=<%= prevStart %>&trange=<%= range %>" title="<%= subj %>" ><img src="images/prev.gif" width="10" height="10" hspace="2" title="<%= SkinUtils.getLocalizedString("skin.default.global.topic",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <%= subj %>" border="0"></a> <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"> <a href="thread.jsp?forum=<%= forumID %>&thread=<%= prevThread.getID() %>&tstart=<%= prevStart %>&trange=<%= range %>" title="<%= SkinUtils.getLocalizedString("skin.default.global.topic",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <%= subj %>" ><%= SkinUtils.getLocalizedString("skin.default.thread.previous_topic",locale) %></a> </font><% } else { %> <% } %> </td> <td width="98%" align="center"><table cellpadding="0" cellspacing="2" border="0"><tr> <td><a href="forum.jsp?forum=<%= forumID %>"><img src="images/back_to.gif" width="12" height="12" title="<%= SkinUtils.getLocalizedString("skin.default.global.go_back_to_topic_list",locale) %>" border="0"></a></td> <td nowrap> <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"> <a href="forum.jsp?forum=<%= forumID %>" title="<%= SkinUtils.getLocalizedString("skin.default.global.go_back_to_topic_list",locale) %>" ><%= SkinUtils.getLocalizedString("skin.default.thread.back_to_topic",locale) %></a> </font> </td></tr></table> </td> <td width="1%" nowrap><% if (nav && nextThread != null) { String subj = nextThread.getRootMessage().getSubject();%> <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"> <a href="thread.jsp?forum=<%= forumID %>&thread=<%= nextThread.getID() %>&tstart=<%= nextStart %>&trange=<%= range %>" title="<%= SkinUtils.getLocalizedString("skin.default.global.topic",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <%= subj %>" ><%= SkinUtils.getLocalizedString("skin.default.thread.next_topic",locale) %></a> </font> <a href="thread.jsp?forum=<%= forumID %>&thread=<%= nextThread.getID() %>&tstart=<%= nextStart %>&trange=<%= range %>" title="<%= subj %>" ><img src="images/next.gif" width="10" height="10" hspace="2" title="<%= SkinUtils.getLocalizedString("skin.default.global.topic",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <%= subj %>" border="0"></a><% } else { %>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?