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

📄 thread-threaded.jsp

📁 jive3.1.4破解版(非源码)
💻 JSP
字号:
<%--  - $RCSfile: thread-threaded.jsp,v $  - $Revision: 1.23.2.3 $  - $Date: 2003/07/25 15:32:32 $  -  - Copyright (C) 1999-2003 Jive Software. All rights reserved.  -  - This software is the proprietary information of Jive Software.  Use is subject to license terms.--%><%@ page import="com.jivesoftware.forum.action.ForumThreadAction,                 com.jivesoftware.forum.util.SkinUtils,                 java.util.Iterator,                 com.jivesoftware.base.User,                 com.jivesoftware.forum.action.util.Page,                 com.jivesoftware.forum.*,                 com.jivesoftware.forum.action.util.Guest,                 com.jivesoftware.util.ByteFormat"%><%@ include file="global.jsp" %><%@ taglib uri="webwork" prefix="ww" %><%@ taglib uri="jivetags" prefix="jive" %><%  // Get the action and other variables for this view.    ForumThreadAction action = (ForumThreadAction)getAction(request);    ForumFactory forumFactory = action.getForumFactory(); // needed by included pages    Forum forum = action.getForum();    ForumThread thread = action.getThread();    TreeWalker treeWalker = thread.getTreeWalker();%><jsp:include page="header.jsp" flush="true" /><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr valign="top">    <td width="98%">        <%-- Breadcrumbs (customizable via the admin tool) --%>        <jsp:include page="breadcrumbs.jsp" flush="true" />        <%-- Forum name and brief info about the forum --%>        <p>        <span class="jive-page-title">        <%-- Topic: [topic name] --%>        <a href="thread.jspa?threadID=<%= thread.getID() %>"         ><jive:i18n key="global.topic" /><jive:i18n key="global.colon" /></a>        <%= thread.getName() %>        </span>        <br>        <%-- Replies: [reply count] --%>        <jive:i18n key="global.replies" /><jive:i18n key="global.colon" />        <%= action.getNumberFormat().format(thread.getMessageCount()-1) %> &nbsp;        <%-- Pages: [page count] (note, in the threaded view there is *always* only 1 page) --%>        <jive:i18n key="global.pages" /><jive:i18n key="global.colon" /> 1 &nbsp;        <%-- Last Post --%>        <%  if (thread.getMessageCount() > 1) {                ForumMessage lastPost = SkinUtils.getLastPost(thread);                if (lastPost != null) {        %>                <%-- Last Post: --%>                <jive:i18n key="global.last_post" /><jive:i18n key="global.colon" />                <%= action.getDateFormat().format(thread.getModificationDate()) %>                <%-- by: [username, linked to the last post] --%>                <jive:i18n key="global.by" /><jive:i18n key="global.colon" />                <%  if (lastPost.getUser() != null) { %>                    <a href="thread.jspa?threadID=<%= thread.getID() %>&messageID=<%= lastPost.getID() %>#<%= lastPost.getID() %>"                     ><%= lastPost.getUser().getUsername() %></a>                <%  } else {                        Guest guest = new Guest();                        guest.setMessage(lastPost);                %>                    <span class="jive-guest">                    <nobr>                    <a href="thread.jspa?threadID=<%= thread.getID() %>&messageID=<%= lastPost.getID() %>#<%= lastPost.getID() %>"                     ><%= guest.getDisplay() %> &raquo;</a>                    </nobr>                    </span>        <%          }                }            }        %>        </p>        <%-- Question feature --%>        <jive:property if="questions.enabled">            <%@ include file="thread-question.jsp" %> <br>        </jive:property>        <%-- Rewards feature --%>        <% if ("true".equals(action.getJiveProperty("rewards.enabled")) && !action.isLocked()) { %>            <%@ include file="thread-reward.jsp" %> <br>        <% } %>        <%-- print out a message if this thread is archived --%>        <%  if (action.isArchived()) { %>            <table class="jive-info-message" cellpadding="3" cellspacing="0" border="0" width="350">            <tr valign="top">                <td width="1%"><img src="images/archived-16x16.gif" width="16" height="16" border="0"></td>                <td width="99%">                    <span class="jive-info-text">                    <jive:i18n key="thread.topic_archived_description" />                    </span>                </td>            </tr>            </table>            <br><br>        <%  } %>        <%-- print out a message if this thread is locked --%>        <%  if (action.isLocked()) { %>            <table class="jive-info-message" cellpadding="3" cellspacing="0" border="0" width="350">            <tr valign="top">                <td width="1%"><img src="images/lock-16x16.gif" width="16" height="16" border="0"></td>                <td width="99%">                    <span class="jive-info-text">                    <jive:i18n key="thread.topic_locked_description" />                    </span>                </td>            </tr>            </table>            <br><br>        <%  } %>    </td>    <td width="1%"><img src="images/blank.gif" width="10" height="1" border="0"></td>    <td width="1%">        <%@ include file="accountbox.jsp" %>    </td></tr></table><jive:property if="watches.enabled">    <ww:if test="pageUser">        <%  if (action.getForumFactory().getWatchManager().isWatched(action.getPageUser(), thread)) { %>            <table class="jive-info-message" cellpadding="3" cellspacing="0" border="0" width="100%">            <tr valign="top">                <td width="1%"><img src="images/info-16x16.gif" width="16" height="16" border="0"></td>                <td width="99%">                    <span class="jive-info-text">                    <%--                        You are watching this topic. To remove this watch, click "Stop Watching Topic"                        below.                    --%>                    <jive:i18n key="thread.watch_description" />                    <%-- Watch Options --%>                    (<a href="editwatches!default.jspa"><jive:i18n key="global.watch_options" /></a>)                    </span>                </td>            </tr>            </table>            <br>        <%  } %>    </ww:if></jive:property><%@ include file="thread-buttons.jsp" %><br><table cellpadding="3" cellspacing="0" border="0" width="100%"><tr>    <td width="1%" nowrap>        <a href="forum.jspa?forumID=<%= forum.getID() %>"         ><img src="images/back-to-16x16.gif" width="16" height="16" border="0"></a>    </td>    <td width="1%" nowrap>        <%-- Back to Topic List --%>        <span class="jive-button-label">        <a href="forum.jspa?forumID=<%= forum.getID() %>"         ><jive:i18n key="thread.back_to_topic" /></a>        </span>    </td>    <td align="right" width="98%">        <jive:cache id="nextPrev">            <%  if (action.getHasPreviousThread() || action.getHasNextThread()) { %>                <%-- Topics: --%>                <jive:i18n key="global.topics" /><jive:i18n key="global.colon" />                [                <%  if (action.getHasPreviousThread()) { %>                    <%-- Previous --%>                    <a href="thread.jspa?threadID=<%= action.getPreviousThread().getID() %>&tstart=<%= action.getPrevTstart() %>"                     ><jive:i18n key="global.previous" /></a>                <%  } else { %>                    <%-- Previous --%>                    <jive:i18n key="global.previous" />                <%  } %>                |                <%  if (action.getHasNextThread()) { %>                    <%-- Next --%>                    <a href="thread.jspa?threadID=<%= action.getNextThread().getID() %>&tstart=<%= action.getNextTstart() %>"                     ><jive:i18n key="global.next" /></a>                <%  } else { %>                    <%-- Next --%>                    <jive:i18n key="global.next" />                <%  } %>                ]            <%  } %>        </jive:cache>    </td></tr></table><div class="jive-message-list"><table cellpadding="3" cellspacing="0" border="0" width="100%"><tr>    <th colspan="2">        <%-- Replies: --%>        <jive:i18n key="global.replies" /><jive:i18n key="global.colon" />        <%= action.getNumberFormat().format(thread.getMessageCount()-1) %>    </th></tr></table><%  //    // Main loop for the messages on this page    //    int status = 0;    Iterator messages = treeWalker.getRecursiveMessages();    // Adjust the iterator to account for pending messages (moderation)    messages = SkinUtils.filterPendingMessages(messages);    // Loop thru all messages    while (messages.hasNext()) {        ForumMessage message = (ForumMessage)messages.next();        int depth = treeWalker.getMessageDepth(message);%>    <%  if (depth > 0) { %>        <table cellpadding="0" cellspacing="0" border="0" width="100%">        <tr>            <td width="1%"><img src="images/blank.gif" width="<%= (depth*20) %>" height="1" border="0"></td>            <td width="99%">    <%  } %>            <div class="jive-message-list">            <%@ include file="thread-messagebox.jsp" %>            </div>    <%  if (depth > 0) { %>            </td>        </tr></table>    <%  } %>    <br><%  } %></div><div class="jive-message-list-footer"><table cellpadding="3" cellspacing="0" border="0" width="100%"><tr>    <td colspan="2">        <table cellpadding="0" cellspacing="0" border="0" width="100%">        <tr>            <td width="99%" align="center">                <table cellpadding="3" cellspacing="0" border="0">                <tr>                    <td>                        <a href="forum.jspa?forumID=<%= forum.getID() %>"                         ><img src="images/back-to-16x16.gif" width="16" height="16" border="0"></a>                    <td>                        <%-- Back to Topic List --%>                        <span class="jive-button-label">                        <a href="forum.jspa?forumID=<%= forum.getID() %>"                         ><jive:i18n key="thread.back_to_topic" /></a>                        </span>                    </td>                </tr>                </table>            </td>            <td width="1%" nowrap>                <jive:cache id="nextPrev" />            </td>        </tr>        </table>    </td></tr></table></div><jsp:include page="footer.jsp" flush="true" />

⌨️ 快捷键说明

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