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

📄 thread-question.jsp

📁 jive3.1.4破解版(非源码)
💻 JSP
字号:
<%--  - $RCSfile: thread-question.jsp,v $  - $Revision: 1.1.2.5 $  - $Date: 2003/07/27 19:49:03 $  -  - 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.QuestionAction" %><%  // This page assumes an "action" variable which is an instance of ForumThreadAction    // and a "thread" variable which is an instance of ForumThread.%><%-- Show the question resolution status if this is a question and the topic is not --%><%-- locked or achived --%><%  if (!action.isArchived() && !action.isLocked()) {        boolean isQuestion = "true".equals(thread.getProperty("isQuestion"));        if (isQuestion) {            // Get the question resolution status:            String resolution = thread.getProperty("questionResolution");            // Set a default resolution of "unanswered" if no resolution was found:            if (resolution == null) {                resolution = QuestionAction.UNANSWERED;            }            // Determine if the question is inactive:            boolean isInactive = QuestionAction.isInactiveQuestion(thread);            // A thread that is explicitly marked as answered should not be 'inactive'            if (isInactive) {                if (resolution.equals(QuestionAction.ANSWERED)) {                    isInactive = false;                }            }%>        <%  if (QuestionAction.ASSUMED_ANSWERED.equals(resolution)) { %>            <table class="jive-info-message" cellpadding="3" cellspacing="0" border="0" width="100%">            <tr valign="top">                <td width="1%"><img src="images/question-16x16.gif" width="16" height="16" border="0"></td>                <td width="99%">                    <span class="jive-info-text">                    <%-- This question is assumed to be answered. --%>                    <jive:i18n key="question.is_assumed_answered" />                    </span>                </td>            </tr>            </table>        <%  } else if (isInactive) { %>            <table class="jive-info-message" cellpadding="3" cellspacing="0" border="0" width="100%">            <tr valign="top">                <td width="1%"><img src="images/question-16x16.gif" width="16" height="16" border="0"></td>                <td width="99%">                    <span class="jive-info-text">                    <%-- This topic was marked as a question but has since become inactive. --%>                    <jive:i18n key="question.has_become_inactive" />                    <%  // See if the page user is a moderator. If so, give them the                        // ability to mark the question as 'assumed answered'                        if ((action.isModerator(thread.getForum())                                || action.isModerator(thread.getForum().getForumCategory())))                        {                    %>                        <%--                        As a moderator, you can [link]mark this topic as assumed answered[/link].                        --%>                        <jive:i18n key="question.as_moderator_can_mark_as_answered">                            <jive:arg>                                <a href="question!default.jspa?threadID=<%= thread.getID() %>&resolution=<%= QuestionAction.ASSUMED_ANSWERED %>">                            </jive:arg>                            <jive:arg>                                </a>                            </jive:arg>                        </jive:i18n>                    <%  } %>                    </span>                </td>            </tr>            </table>        <%  } else { %>            <table class="jive-info-message" cellpadding="3" cellspacing="0" border="0" width="100%">            <tr valign="top">                <td width="1%"><img src="images/question-16x16.gif" width="16" height="16" border="0"></td>                <td width="99%">                    <span class="jive-info-text">                    <%  if (action.getPageUser() != null && thread.getRootMessage().getUser() != null) { %>                        <%  if (action.getPageUser().getID() == thread.getRootMessage().getUser().getID()) { %>                            <%  if (resolution.equals(QuestionAction.UNANSWERED)) { %>                                <%--                                This topic has been marked as <b>unanswered</b>.                                If you are satisfied with the replies to your question, you can                                <a href="">mark this question as answered</a>.                                --%>                                <jive:i18n key="question.if_satisfied_can_mark_as_answered">                                    <jive:arg>                                        <a href="question!default.jspa?threadID=<%= thread.getID() %>&resolution=<%= QuestionAction.ANSWERED %>">                                    </jive:arg>                                    <jive:arg>                                        </a>                                    </jive:arg>                                </jive:i18n>                            <%  } else { %>                                <%--                                This question has been marked as <b>answered</b>. If you feel this                                is incorrect you can                                <a href="">mark this question as unanswered</a>.                                --%>                                <jive:i18n key="question.if_incorrect_can_mark_as_unanswered">                                    <jive:arg>                                        <a href="question!default.jspa?threadID=<%= thread.getID() %>&resolution=<%= QuestionAction.UNANSWERED %>">                                    </jive:arg>                                    <jive:arg>                                        </a>                                    </jive:arg>                                </jive:i18n>                            <%  } %>                        <%  } else { %>                            <%  if (resolution.equals(QuestionAction.ANSWERED)) { %>                                <%-- This question has been answered --%>                                <jive:i18n key="question.has_been_answered" />                            <%  } else { %>                                <%-- This topic has been marked as a question. --%>                                <jive:i18n key="question.this_topic_is_question" />                                <%  // See if the page user is a moderator. If so, give them the                                    // ability to mark the question as 'assumed answered'                                    if ((action.isModerator(thread.getForum())                                            || action.isModerator(thread.getForum().getForumCategory()))                                            && resolution.equals(QuestionAction.UNANSWERED))                                    {                                %>                                    <%--                                    As a moderator, you can [link]mark this topic as assumed answered[/link].                                    --%>                                    <jive:i18n key="question.as_moderator_can_mark_as_answered">                                        <jive:arg>                                            <a href="question!default.jspa?threadID=<%= thread.getID() %>&resolution=<%= QuestionAction.ASSUMED_ANSWERED %>">                                        </jive:arg>                                        <jive:arg>                                            </a>                                        </jive:arg>                                    </jive:i18n>                                <%  } %>                            <%  } %>                        <%  } %>                    <%  } else { %>                        <%  if (resolution.equals(QuestionAction.ANSWERED)) { %>                            <%-- This question has been answered --%>                            <jive:i18n key="question.has_been_answered" />                        <%  } else { %>                            <%-- This topic has been marked as a question. --%>                            <jive:i18n key="question.this_topic_is_question" />                        <%  } %>                    <%  } %>                    </span>                </td>            </tr>            </table>        <%  } %>        <br><%        }    }%>

⌨️ 快捷键说明

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