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

📄 thread-flat.jsp

📁 jive3.1.4破解版(非源码)
💻 JSP
字号:
<%--  - $RCSfile: thread-flat.jsp,v $  - $Revision: 1.45.2.2 $  - $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();    Forum forum = action.getForum();    ForumThread thread = action.getThread();    // Get the paginator for this thread - it's used throughout the site:    Paginator paginator = new Paginator(action);%><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] --%>        <jive:i18n key="global.pages" /><jive:i18n key="global.colon" />        <%= action.getNumberFormat().format(paginator.getNumPages()) %> &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">    <%  if (action.getPageUser() != null) { %>        <%  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>        <%  } %>    <%  } %></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" alt="<jive:i18n key="thread.back_to_topic" />"></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">        <jive:cache id="paginator">            <%-- Replies: --%>            <jive:i18n key="global.replies" /><jive:i18n key="global.colon" />            <%= action.getNumberFormat().format(thread.getMessageCount()-1) %> &nbsp;            <%-- Pages: --%>            <jive:i18n key="global.pages" /><jive:i18n key="global.colon" />            <%= action.getNumberFormat().format(paginator.getNumPages()) %> &nbsp;            <%  if (paginator.getNumPages() > 1) { %>                <span class="jive-paginator">                [                <%  if (paginator.getPreviousPage()) { %>                    <%-- Previous --%>                    <a href="thread.jspa?threadID=<%= thread.getID() %>&start=<%= paginator.getPreviousPageStart() %>&tstart=<%= action.getTstart() %>"                     ><jive:i18n key="global.previous" /></a> |                <%  } %>                <%  Page[] pages = paginator.getPages();                    for (int i=0; i<pages.length; i++) {                %>                    <%  if (pages[i] == null) { %>                        <jive:i18n key="global.elipse" />                    <%  } else { %>                        <a href="thread.jspa?threadID=<%= thread.getID() %>&start=<%= pages[i].getStart() %>&tstart=<%= action.getTstart() %>"                         class="<%= ((action.getStart()==pages[i].getStart())?"jive-current":"") %>"                         ><%= pages[i].getNumber() %></a>                     <% } %>                <%  } %>                <%  if (paginator.getNextPage()) { %>                    <%-- Next --%>                    | <a href="thread.jspa?threadID=<%= thread.getID() %>&start=<%= paginator.getNextPageStart() %>&tstart=<%= action.getTstart() %>"                     ><jive:i18n key="global.next" /></a>                <%  } %>                ]                </span>            <%  } %>        </jive:cache>    </th></tr></table></div><%  //    // Main loop for the messages on this page    //    int status = 0;    for (Iterator messages=action.getMessages(); messages.hasNext(); ) {        ForumMessage message = (ForumMessage)messages.next();%>    <div class="jive-message-list">    <%@ include file="thread-messagebox.jsp" %>    </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="1%" nowrap>                <span class="jive-paginator-bottom">                <jive:cache id="paginator" />                </span>            </td>            <td width="98%" 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" alt="<jive:i18n key="thread.back_to_topic" />"></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 + -