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

📄 searchsettings.jsp

📁 jive3.1.4破解版(非源码)
💻 JSP
📖 第 1 页 / 共 2 页
字号:
                if (searchHome.exists()) {                    File[] files = searchHome.listFiles();                    for (int i=0; i<files.length; i++) {                        size += files[i].length();                    }                    size /= 1024.0*1024.0;                }        %>                <table cellpadding="2" cellspacing="0" border="0">                <tr>                    <td>Index Location:</td>                    <td><%= searchHome %></td>                </tr>                <tr>                    <td>Index Files:</td>                    <td><%= LocaleUtils.getLocalizedNumber(searchHome.listFiles().length) %></td>                </tr>                <tr>                    <td>Index Size:</td>                    <td><%= megFormatter.format(size) %> MB</td>                </tr>                <tr>                    <td>Index Last Updated:</td>                    <td>                        <%= SkinUtils.formatDate(request,pageUser,searchManager.getLastIndexedDate()) %>                    </td>                </tr>                </table>        <%  } %>    </ul>    <%  // only show the following section if the search feature is enabled        if (searchEnabled) {    %>        <table cellpadding="0" cellspacing="0" border="0">        <tr>            <td>                <b>Search Settings</b>            </td>            <td>                <a href="#" onclick="helpwin('search','index_settings');return false;"                 title="Click for help"                 ><img src="images/help-16x16.gif" width="16" height="16" border="0" hspace="8"></a>            </td>        </tr>        </table>        <ul>            <%  if ("true".equals(request.getParameter("success"))) { %>                <p class="jive-success-text">                Settings updated successfully.                </p>            <%  } %>            <form action="searchSettings.jsp" method="post" name="settingsForm">            <input type="hidden" name="saveSettings" value="true">            <table cellpadding="3" cellspacing="0" border="0">            <tr>                <td>                    Automatically index forum content:                </td>                <td>                    <input type="radio" name="autoIndexEnabled" value="true"                     id="aie01" <%= (autoIndexEnabled)?"checked":"" %>>                    <label for="aie01">Yes</label>                    &nbsp;                    <input type="radio" name="autoIndexEnabled" value="false" id="aie02"                     <%= (!autoIndexEnabled)?"checked":"" %>>                    <label for="aie02">No</label>                </td>            </tr>            <tr>                <td>                    Index update time (in minutes):                </td>                <td>                    <select size="1" name="updateInterval">                        <%  for (int i=1; i<=60;) {                                String selected = "";                                if (updateInterval == i) {                                    selected = " selected";                                }                        %>                            <option value="<%= i %>"<%= selected %>><%= i %>                            <%  if (i >= 10) {                                    i+=5;                                } else {                                    i++;                                }                            %>                        <%  } %>                    </select>                </td>            </tr>            <tr>                <td>                    Indexer Type (* Supports                    <a href="#" onclick="helpwin('search','index_settings');return false;"                     >Stemming</a>):                </td>                <td>                    <select size="1" name="indexType" onchange="handleIndexChange(this);">                    <%  for (int i=0; i<INDEXERS.length; i++) { %>                        <option value="<%= INDEXERS[i][0] %>"                         <%= (indexType.equals(INDEXERS[i][0])?" selected":"") %>                         ><%= INDEXERS[i][1] %>                    <%  } %>                    </select>                </td>            </tr>            <tr>                <td>                    Allow wildcards in search queries (ie, *, ~, ?):                </td>                <td>                    <input type="radio" name="wildcardIgnored" value="false"                     id="wi01" <%= (!wildcardIgnored)?"checked":"" %> >                    <label for="wi01">Yes</label>                    &nbsp;                    <input type="radio" name="wildcardIgnored" value="true"                     id="wi02" <%= (wildcardIgnored)?"checked":"" %>>                    <label for="wi02">No</label>                </td>            </tr>            <tr>                <td>                    Group search results by thread:                </td>                <td>                    <input type="radio" name="groupByThread" value="true"                     id="gbt01" <%= (groupByThread)?"checked":"" %>>                    <label for="gbt01">Yes</label>                    &nbsp;                    <input type="radio" name="groupByThread" value="false"                     id="gbt02" <%= (!groupByThread)?"checked":"" %>>                    <label for="gbt02">No</label>                </td>            </tr>            <tr>                <td>                    Enable attachment search:                </td>                <td>                    <input type="radio" name="attachmentSearchEnabled" value="true"                     id="gbt011" <%= (attachmentSearchEnabled)?"checked":"" %>>                    <label for="gbt011">Yes</label>                    &nbsp;                    <input type="radio" name="attachmentSearchEnabled" value="false"                     id="gbt021" <%= (!attachmentSearchEnabled)?"checked":"" %>>                    <label for="gbt021">No</label>                </td>            </tr>            </table>            <br>            <input type="submit" value="Save Settings">            </form>            <script language="JavaScript" type="text/javascript">            var index = document.settingsForm.indexType.selectedIndex;            function handleIndexChange(el) {                var message = "Warning: You will need to rebuild your search index after changing the index type.\n\n";                message += "Are you sure you want to proceed?";                var proceed = confirm(message);                if (!proceed) {                    el.selectedIndex = index;                }            }            </script>        </ul>        <form action="searchSettings.jsp">        <table cellpadding="0" cellspacing="0" border="0">        <tr>            <td>                <b>Update Index</b>            </td>            <td>                <a href="#" onclick="helpwin('search','update_index');return false;"                 title="Click for help"                 ><img src="images/help-16x16.gif" width="16" height="16" border="0" hspace="8"></a>            </td>        </tr>        </table>        <ul>            <p>            Manually update the index. This will update the search index with new content since            it was last updated on            <%= SkinUtils.formatDate(request,pageUser,searchManager.getLastIndexedDate()) %>.            </p>            <input type="hidden" name="doUpdateIndex" value="true">            <input type="submit" value="Update Index">        </ul>        </form>        <form action="searchSettings.jsp">        <table cellpadding="0" cellspacing="0" border="0">        <tr>            <td>                <b>Rebuild Index</b>            </td>            <td>                <a href="#" onclick="helpwin('search','rebuild_index');return false;"                 title="Click for help"                 ><img src="images/help-16x16.gif" width="16" height="16" border="0" hspace="8"></a>            </td>        </tr>        </table>        <ul>            <p>            Manually rebuild the index. This will re-index <i>all</i> content and may take a            long time if you have a lot of content.            </p>            <input type="hidden" name="doRebuildIndex" value="true">            <input type="submit" value="Rebuild Index">        </ul>        </form>        <form action="searchSettings.jsp">        <table cellpadding="0" cellspacing="0" border="0">        <tr>            <td>                <b>Optimize Index</b>            </td>            <td>                <a href="#" onclick="helpwin('search','optimize_index');return false;"                 title="Click for help"                 ><img src="images/help-16x16.gif" width="16" height="16" border="0" hspace="8"></a>            </td>        </tr>        </table>        <ul>            <p>            Optimize the index for quicker searches. Note, this rarely needs to be done but can            help if you have a lot of data.            </p>            <input type="hidden" name="doOptimizeIndex" value="true">            <input type="submit" value="Optimize Index">        </ul>        </form>    <%  } %><%  } %><%@ include file="footer.jsp" %>

⌨️ 快捷键说明

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