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

📄 archivesettings.jsp

📁 jive3论坛开源 最新 有版主功能 jive3论坛开源 最新 有版主功能 jive3论坛开源 最新 有版主功能
💻 JSP
📖 第 1 页 / 共 2 页
字号:
                            String selected = (autoArchiveInterval == INTERVAL_HOURS[i])?" selected":"";                    %>                        <option value="<%= INTERVAL_HOURS[i] %>"<%= selected %>><%= INTERVAL_HOURS[i] %>                    <%  } %>                    </select>                </td>            </tr>            </table>            </form>            </font>            <p>            <input type="submit" name="saveGlobal" value="Save Settings">            </p>        </ul>        <font size="-1">        <b>Start Archiving Task</b>        </font>        <ul>            <font size="-1">            <p>            The system will periodically archive your content. However, if you want            to start the archiving process now, click the button below.            </p>            <%  if (isBusy) { %>                <table cellpadding="2" cellspacing="0" border="0">                <tr>                    <td><img src="images/busy.gif" width="16" height="16" border="0"></td>                    <td>                        <font size="-1">                        An archiving process is currently running in the background.                        </font>                    </td>                </tr>                </table>            <%  } else { %>                <p>                Last archive time:                <%  if (lastArchiveTime == null) { %>                    <i>Not available (an archiving process may not have been run yet).</i>                <%  } else { %>                    <%= SkinUtils.formatDate(request, pageUser, lastArchiveTime) %>                <%  } %>                </p>                </font>                <form action="archiveSettings.jsp">                <input type="hidden" name="forum" value="<%= forumID %>">                <input type="submit" name="doArchive" value="Start Archiving Now">                </form>            <%  } %>        </ul>    <%  } %><%  } else { // is not global %>    <font size="-1">    <b>Archiving Status</b>    </font>    <ul>        <font size="-1">        <p>Enable or disable archiving for this forum</p>        </font>        <form action="archiveSettings.jsp">        <input type="hidden" name="forum" value="<%= forumID %>">        <input type="hidden" name="saveForum" value="true">        <input type="hidden" name="saveEnable" value="true">        <table bgcolor="<%= tblBorderColor %>" cellpadding="0" cellspacing="0" border="0" width="300">        <td>        <table bgcolor="<%= tblBorderColor %>" cellpadding="3" cellspacing="1" border="0" width="100%">        <tr bgcolor="#ffffff">        <td align="center"<%= (archiveEnabled)?" bgcolor=\"#99cc99\"":"" %>>            <input type="radio" name="archiveEnabled" value="true" id="rb01"             <%= (archiveEnabled)?"checked":"" %>>            <label for="rb01"><%= (archiveEnabled)?"<b>On</b>":"On" %></label>        </td>        <td align="center"<%= (!archiveEnabled)?" bgcolor=\"#cc6666\"":"" %>>            <input type="radio" name="archiveEnabled" value="false" id="rb02"             <%= (!archiveEnabled)?"checked":"" %>>            <label for="rb02"><%= (!archiveEnabled)?"<b>Off</b>":"Off" %></label>        </td>        <td align="center">            <input type="submit" name="submitButton" value="Update">        </td>        </tr>        </table>        </td>        </table>        </form>    </ul>    <%  if (archiveEnabled) { %>        <font size="-1">        <b>Inactive Content</b>        </font>        <ul>            <form action="archiveSettings.jsp">            <input type="hidden" name="forum" value="<%= forumID %>">            <input type="hidden" name="saveForum" value="true">            <table cellpadding="2" cellspacing="0" border="0">            <tr>                <td><font size="-1">Number of days a thread should be inactive before archiving it:</font></td>                <td>                    <select size="1" name="threadInactInterval">                    <%  for (int i=0; i<THREAD_DAYS.length; i++) {                            String selected = (threadInactInterval == THREAD_DAYS[i])?" selected":"";                    %>                        <option value="<%= THREAD_DAYS[i] %>"<%= selected %>><%= THREAD_DAYS[i] %>                    <%  } %>                    </select>                </td>            </tr>            </table>            <p><input type="submit" name="saveDays" value="Update"></p>            </form>        </ul>        <font size="-1">        <b>Archive Actions</b>        </font>        <ul>            <font size="-1">            <p>            Use the form below to specify what should happen when content is archived.            </p>            </font>            <form action="archiveSettings.jsp">            <input type="hidden" name="forum" value="<%= forumID %>">            <input type="hidden" name="saveForum" value="true">            <table cellpadding="3" cellspacing="0" border="0">            <tr>                <td>                    <input type="radio" name="archiveMode" value="<%= ArchiveManager.MARK_ONLY %>"                     <%= (archiveMode==ArchiveManager.MARK_ONLY?" checked":"") %> id="rb03">                </td>                <td><font size="-1"><label for="rb03">Do Nothing - Just mark the content as "archived"</label></font></td>            </tr>            <tr>                <td>                    <input type="radio" name="archiveMode" value="<%= ArchiveManager.DELETE_THREADS %>"                     <%= (archiveMode==ArchiveManager.DELETE_THREADS?" checked":"") %> id="rb04">                </td>                <td><font size="-1"><label for="rb04">Delete the Content - Archived threads and messages will be automatically deleted.</label></font></td>            </tr>            <tr>                <td valign="top">                    <input type="radio" name="archiveMode" value="<%= ArchiveManager.MOVE_THREADS %>"                     <%= (archiveMode==ArchiveManager.MOVE_THREADS?" checked":"") %> id="rb05">                </td>                <td>                    <font size="-1">                    <label for="rb05">                        Move the Content - Use the form below to specify which forum                        archived threads should be moved to.                    </label>                    <br><br>                    <font size="-1">                    <ul>                    <li type="disc">                    Forum:                    <select size="1" name="archiveForum" style="margin:1;"                     onchange="this.form.archiveMode[2].checked=true;">                    <%  if (archiveForum == null) { %>                        <option value=""> - No Forum Selected -                        <option value="">                    <%  } %>                    <%  Iterator forums = forumFactory.getRootForumCategory().getRecursiveForums();                        List forumList = new LinkedList();                        while (forums.hasNext()) {                            Forum f = (Forum)forums.next();                            forumList.add(f);                        }                        Collections.sort(forumList, new Comparator() {                            public int compare(Object obj1, Object obj2) {                                String f1Name = ((Forum)obj1).getName().toLowerCase();                                String f2Name = ((Forum)obj2).getName().toLowerCase();                                return f1Name.compareTo(f2Name);                            }                        });                        for (int i=0; i<forumList.size(); i++) {                            Forum f = (Forum)forumList.get(i);                            String selected = "";                            if (archiveForum != null && archiveForum.getID() == f.getID()) {                                selected = " selected";                            }                            if (f.getID() != forum.getID()) {                    %>                        <option value="<%= f.getID() %>"<%= selected %>><%= f.getName() %>                    <%      }                        }                    %>                    </select>                    <li type="disc">                    <a href="createForum.jsp?cat=<%= forum.getForumCategory().getID() %>&name=<%= java.net.URLEncoder.encode(forum.getName() + " Archive") %>"                     >Create a new forum</a>.                    </ul>                    </font>                </td>            </tr>            </table>            <p><input type="submit" name="saveMode" value="Update"></p>            </form>        </ul>    <%  } %><%  } // end else is not global %><%@ include file="footer.jsp" %>

⌨️ 快捷键说明

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