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

📄 searchresults.jsp

📁 jive3.1.4破解版(非源码)
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%--  - $RCSfile: searchresults.jsp,v $  - $Revision: 1.26.2.3 $  - $Date: 2003/06/25 04:51:45 $  -  - Copyright (C) 2002-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.SearchAction,                 java.util.Date,                 com.jivesoftware.forum.*,                 com.jivesoftware.util.*,                 com.jivesoftware.forum.action.util.*"%><%@ include file="global.jsp" %><%@ taglib uri="webwork" prefix="ww" %><%@ taglib uri="jivetags" prefix="jive" %><%  // Get the action for this view.    SearchAction action = (SearchAction)getAction(request);    String queryText = action.getQ();%><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 class="jive-page-title">        <%-- Forum Search --%>        <jive:i18n key="search.title" />        </p>        <%--            Use the form below to search the forum content. You can choose to search all content            or restrict it to certain forums or dates. Also, you can filter the results by            a username or user ID.        --%>        <jive:i18n key="search.description" />    </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><br><form action="search!execute.jspa" name="searchform"><%  long categoryID = ParamUtils.getLongParameter(request, "categoryID", -1L);    long forumID = ParamUtils.getLongParameter(request, "forumID", -1L);    if (categoryID != -1L) {%>    <input type="hidden" name="categoryID" value="<%= categoryID %>"><%  }    if (forumID != -1) {%>    <input type="hidden" name="forumID" value="<%= forumID %>"><%  } %><div class="jive-search-form"><table cellpadding="3" cellspacing="0" border="0" width="100%"><tr>    <th colspan="3">        <%-- Search Forum Content --%>        <jive:i18n key="search.search_forum_content" />    </th></tr><tr>    <td align="right" width="1%" nowrap>        <%-- Search Terms: --%>        <jive:i18n key="search.search_terms" /><jive:i18n key="global.colon" />    </td>    <td width="1%"><input type="text" name="q" size="40" maxlength="100" value="<%= ((queryText != null) ? queryText : "") %>"></td>    <%-- Search (button) --%>    <td width="98%"><input type="submit" value="<jive:i18n key="global.search" />"></td></tr><ww:if test="errors['q']">    <tr>        <td align="right" width="1%" nowrap>&nbsp;</td>        <td colspan="2" width="99%">            <span class="jive-error-text">            <ww:property value="errors['q']" />            </span>        </td>    </tr></ww:if><tr>    <td align="right" width="1%" nowrap>        <%-- Category or Forum: --%>        <jive:i18n key="search.category_or_forum" /><jive:i18n key="global.colon" />    </td>    <td colspan="2" width="99%">        <select size="1" name="objID">        <option value="" style="border-bottom:2px #ccc solid">        <%-- All Categories --%>          <jive:i18n key="search.all_categories" />        <%-- Print all root-level forums --%>        <%  for (Iterator iter=action.getForumFactory().getForums(); iter.hasNext(); ) {                Forum f = (Forum)iter.next();        %>            <option value="f<%= f.getID() %>"                <%= ((action.getForumSelected(f.getID())) ? " selected" : "") %>            >&nbsp;            &#149; <%= f.getName() %>        <%  } %>        <%  // Get the root level category            ForumCategory root = action.getForumFactory().getRootForumCategory();        %>        <%-- Print all categories and forums --%>        <%  for (Iterator cats=root.getRecursiveCategories(); cats.hasNext(); ) {                ForumCategory c = (ForumCategory)cats.next();        %>            <option value="c<%= c.getID() %>" style="border-bottom:1px #ccc dotted"                <%= ((action.getCategorySelected(c.getID())) ? " selected" : "") %>                >            <%= getSpacer("&nbsp;&nbsp;",c.getCategoryDepth()) %>            <%= c.getName() %>            <%-- Loop through the forums in this category --%>            <%  for (Iterator forums=c.getForums(); forums.hasNext(); ) {                    Forum f = (Forum)forums.next();            %>                <option value="f<%= f.getID() %>" style="border-bottom:1px #ccc dotted"                    <%= ((action.getForumSelected(f.getID())) ? " selected" : "") %>                >&nbsp;                <%= getSpacer("&nbsp;&nbsp;",c.getCategoryDepth()) %>                &#149; <%= f.getName() %>            <%  } %>        <%  } %>        </select>    </td></tr><tr>    <td align="right" width="1%" nowrap>        <%-- Date Range: --%>        <jive:i18n key="search.date_range" /><jive:i18n key="global.colon" />    </td>    <td colspan="2" width="99%">        <select size="1" name="dateRange">        <%  // Print out available dates            RelativeDateRange[] ranges = action.getDateRanges();            String currentRangeID = action.getDateRange();            Date now = new Date();            for (int i=0; i<ranges.length; i++) {                RelativeDateRange range = ranges[i];        %>            <option value="<%= range.getID() %>"             <%= ((range.getID().equals(currentRangeID)) ? "selected" : "") %>>             <jive:i18n key="<%= range.getI18nKey() %>" />             <% if (!"all".equals(range.getID())) { %>                 -                 <%= action.getShortDateFormat().format(range.getStartDate(now)) %>             <% } %>        <%            }        %>        </select>    </td></tr><tr>    <td align="right" width="1%" nowrap>        <%-- Username or User ID: --%>        <jive:i18n key="search.username" /><jive:i18n key="global.colon" />    </td>    <td colspan="2" width="99%">        <input type="text" name="userID" size="20" maxlength="50"        <%  if (action.getSearchedUser() != null) { %>            value="<%= action.getSearchedUser().getUsername() %>"        <%  } else if (action.getUserID() != null) { %>            value="<%= action.getUserID() %>"        <%  } else { %>            value=""        <%  } %>        >        <span class="jive-description">        <%-- (Leave field blank to search all users) --%>        <jive:i18n key="search.note" />        </span>    </td></tr><ww:if test="errors['userID']">    <tr>        <td align="right" width="1%" nowrap>&nbsp;</td>        <td colspan="2" width="99%">            <span class="jive-error-text">            <ww:property value="errors['userID']" />            </span>        </td>    </tr></ww:if><tr>    <td align="right" width="1%" nowrap>        <%-- Results Per Page: --%>        <jive:i18n key="search.results_page" /><jive:i18n key="global.colon" />    </td>    <td colspan="2" width="99%">        <select size="1" name="numResults">        <%-- loop through the number of results options --%>        <%  int[] numResultOptions = action.getNumResultOptions();            for (int i=0; i<numResultOptions.length; i++) {        %>            <option value="<%= numResultOptions[i] %>"                <%= ((action.getNumResults() == numResultOptions[i]) ? " selected" : "") %>            >            <%= numResultOptions[i] %>        <%  } %>        </select>    </td></tr></table></div></form>

⌨️ 快捷键说明

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