threadmode2.jsp
来自「Jive是基于JSP/JAVA技术构架的一个大型BBS论坛系统,这是Jive论坛」· JSP 代码 · 共 794 行 · 第 1/3 页
JSP
794 行
<% } %> </td></tr></table><table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableHeaderBgColor") %>" cellpadding="3" cellspacing="0" border="0" width="100%" align="center"><tr><td> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>" color="<%= JiveGlobals.getJiveProperty("skin.default.tableHeaderTextColor") %>"> <%= SkinUtils.getLocalizedString("skin.default.global.replies",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <b><%= SkinUtils.getLocalizedNumber(numReplies,locale) %></b> <%= SkinUtils.getLocalizedString("skin.default.global.pages",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <b><%= SkinUtils.getLocalizedNumber(numPages,locale) %></b> <%= headerPaginatorHTML %> </font> </td></tr></table><% // check to see if there are any forums if (!messages.hasNext()) {%> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"> <i><%= SkinUtils.getLocalizedString("skin.default.thread.no_threads",locale) %></i> </font><% } else { // There are messages, so iterate and print them out String bgcolor = ""; int row = 1; while (messages.hasNext()) { ForumMessage message = (ForumMessage)messages.next(); boolean isRootMessage = (message.getID() == rootMessage.getID()); User author = message.getUser(); if (row++%2 == 1) { bgcolor = JiveGlobals.getJiveProperty("skin.default.tableRowColor1"); } else { bgcolor = JiveGlobals.getJiveProperty("skin.default.tableRowColor2"); }%><a name="<%= message.getID() %>"></a><% if (!messages.hasNext()) { %><a name="latest"></a><% } %><table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>" cellpadding="0" cellspacing="0" border="0" width="100%" align="center"><tr> <td> <table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>" cellpadding="4" cellspacing="1" border="0" width="100%"> <tr bgcolor="<%= bgcolor %>" valign="top"> <td width="1%" rowspan="2" valign="top"> <table cellpadding="0" cellspacing="0" border="0" width="140"> <tr><td> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>" color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>"><% if (author == null) { // Check to see if there is an extended property for name & email // since the gateway feature imports names and emails as extended // props. String name = message.getProperty("name"); String email = message.getProperty("email"); String nameAndEmail = getNameAndEmailDisplay(name, email); if (nameAndEmail != null) {%> <i><%= SkinUtils.getLocalizedString("skin.default.global.guest",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <%= nameAndEmail %></i><% } else { %> <i><%= SkinUtils.getLocalizedString("skin.default.global.guest",locale) %></i><% } } else { // author != null String authorName = author.getName();%> <a href="profile.jsp?user=<%= author.getID() %>" title="<%= (authorName!=null)?authorName:"" %>" ><b><%= author.getUsername() %></b></a> </font> <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>" color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>"> <br><br> <%= SkinUtils.getLocalizedString("skin.default.global.posts",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <%= SkinUtils.getLocalizedNumber(userManager.userMessageCount(author),locale) %> <br> <% String location = author.getProperty("jiveLocation"); if (location != null) { %> <%= SkinUtils.getLocalizedString("skin.default.global.from",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <%= location %><br> <% } %> <%= SkinUtils.getLocalizedString("skin.default.global.registered",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <%= shortDateFormatter.format(author.getCreationDate()) %> <br><br><% } // end else %> </font> </td> </tr> </table> </td> <td width="98%"> <table cellpadding="2" cellspacing="0" border="0" width="100%"> <tr><td width="99%" valign="top"> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>" color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>"> <b><%= message.getSubject() %></b> </font> </td> <td width="1%" nowrap> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>" color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>"> <%= SkinUtils.getLocalizedString("skin.default.global.posted",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <%= SkinUtils.formatDate(request,pageUser,message.getCreationDate()) %> </font> </td></tr> </table> </td> <td width="1%" nowrap align="center" valign="top"> <% if (!isLocked && !isArchived) { %> <table cellpadding="2" cellspacing="0" border="0"> <tr> <td><a href="post.jsp?forum=<%= forumID %>&thread=<%= threadID %>&message=<%= message.getID() %>&reply=true" title="<%= SkinUtils.getLocalizedString("skin.default.thread.reply_message",locale) %>"><img src="images/reply.gif" width="17" height="17" title="<%= SkinUtils.getLocalizedString("skin.default.thread.reply_message",locale) %>" hspace="3" border="0" ></a></td> <td> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>"> <a href="post.jsp?forum=<%= forumID %>&thread=<%= threadID %>&message=<%= message.getID() %>&reply=true" title="<%= SkinUtils.getLocalizedString("skin.default.thread.reply_message",locale) %>"><%= SkinUtils.getLocalizedString("skin.default.global.reply",locale) %></a> </font> </td> </tr> </table> <% } else { %> <% } %> </td> </tr> <tr bgcolor="<%= bgcolor %>"> <td width="99%" colspan="2" valign="top"> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>" color="<%= JiveGlobals.getJiveProperty("skin.default.textColor") %>"><% if (hilite) { String body = message.getBody(); String[] queryWords = StringUtils.toLowerCaseWordArray(searchWords); body = StringUtils.highlightWords(body, queryWords, "<font style='background-color:#ffff00'><b>", "</b></font>");%> <%= body %><% } else { %> <% if (message.getBody() != null) { %><%= message.getBody() %><% } %><% } %> </font> <p> </td> </tr> </table></td></tr></table><% if (isRootMessage && numReplies > 0) { %><br><% } %><% } // end of while } // end of else%><table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.tableBorderColor") %>" cellpadding="1" cellspacing="0" border="0" width="100%" align="center"><tr><td> <table bgcolor="<%= JiveGlobals.getJiveProperty("skin.default.paginatorTableBgColor") %>" cellpadding="3" cellspacing="0" border="0" width="100%" align="center"> <tr><td> <font size="<%= JiveGlobals.getJiveProperty("skin.default.fontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.fontFace") %>" color="<%= JiveGlobals.getJiveProperty("skin.default.paginatorTextColor") %>"> <%= SkinUtils.getLocalizedString("skin.default.global.replies",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <b><%= SkinUtils.getLocalizedNumber(numReplies,locale) %></b> <%= SkinUtils.getLocalizedString("skin.default.global.pages",locale) %><%= SkinUtils.getLocalizedString("skin.default.global.colon",locale) %> <b><%= SkinUtils.getLocalizedNumber(numPages,locale) %></b> <%= footerPaginatorHTML %> </font> </td></tr> </table></td></tr></table><table cellpadding="0" cellspacing="2" border="0" width="100%" align="center"><tr> <td width="1%" nowrap valign="top"><% 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> <td nowrap> </td> <td><a href="#top"><img src="images/up_to.gif" width="12" height="12" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_top_page",locale) %>" border="0"></a></td> <td nowrap> <font size="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontSize") %>" face="<%= JiveGlobals.getJiveProperty("skin.default.buttonFontFace") %>"> <a href="#top" title="<%= SkinUtils.getLocalizedString("skin.default.thread.click_top_page",locale) %>" ><%= SkinUtils.getLocalizedString("skin.default.thread.top_page",locale) %></a> </font> </td></tr></table> </td> <td width="1%" nowrap valign="top"><% 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 { %> <% } %> </td></tr></table><br><%@ include file="footer.jsp" %>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?