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

📄 menu.jsp

📁 java 写的一个新闻发布系统
💻 JSP
字号:
<%@include file="include_header.jsp"%><%@ taglib uri="JahiaLib" prefix="jahia" %><%@page import = "org.jahia.data.JahiaData"%><%@page import = "org.jahia.bin.*"%><%    JahiaSite   currentSite =  (JahiaSite)	request.getAttribute( "site" );    Integer     siteID = (Integer) request.getAttribute( "siteID" );    if (siteID == null){        siteID = new Integer(-1);    }    Boolean     isSuperAdmin  = (Boolean) request.getAttribute( "isSuperAdmin" );    if (isSuperAdmin == null){        isSuperAdmin = new Boolean(false);    }    Boolean     configJahia        =  (Boolean)  	request.getAttribute( "configJahia" );    Boolean     profileCapability  =  (Boolean)     request.getAttribute( "profileCapability" );    Vector      sitesList          =  (Vector)      request.getAttribute( "sitesList" );    if ( sitesList == null ){        sitesList = new Vector();    }    Enumeration sitesEnum          =  sitesList.elements();    Enumeration sitesJavaScript    =  sitesList.elements();    boolean     superAdminSettings =  false;    String      switchModeAction   =  "server";    JahiaData jData = (JahiaData)request.getAttribute("org.jahia.data.JahiaData");    if(isSuperAdmin.booleanValue()) {        if(configJahia != null) {            if(configJahia.booleanValue()) {                superAdminSettings = true;                if ( sitesList.size()>0 ){                    switchModeAction   = "sites";                }            }        }    }%><style><!--   A:link {text-decoration: none}   A:visited {text-decoration: none}   A:active {text-decoration: none}   A:hover {text-decoration: none}//--></style><tr>    <td align="right" class="text" colspan="2">        <b>::&nbsp;&nbsp;Jahia Administration&nbsp;&nbsp;::</b>&nbsp;&nbsp;&nbsp;&nbsp;        <% if(isSuperAdmin.booleanValue()) {               if(sitesList.size()>0){                   String switchModeActionWord = (switchModeAction.equals("sites")) ? "virtual sites" : switchModeAction ; %>            <br><br><a href="<%=JahiaAdministration.composeActionURL(request,response,"switch","&mode=" + switchModeAction)%>" border="0">>&nbsp;&nbsp;switch administration mode to <%=switchModeActionWord%>&nbsp;&nbsp;<</a>&nbsp;&nbsp;&nbsp;&nbsp;            <% }           }        %>    </td></tr></table><br>&nbsp;<table cellpadding="2" cellspacing="0" border="0" width="530"><tr>    <td width="100">&nbsp;</td>    <td width="430">        <table border="0" cellspacing="15" width="80%">    <% if(superAdminSettings) { %>        <tr>            <td class="text">                <b>Portal Server Administration</b>            </td>        </tr>        <tr>            <td width="100%" height="2"><img src="<%=URL%>images/hr.gif" width="300" height="2"></td>        </tr>        <tr>            <td class="text"><br><br><a href="<%=JahiaAdministration.composeActionURL(request,response,"sites","&sub=list")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('sites','','<%=URL%>images/icons/site_management_on.gif',1)"><img align="left" name="sites" src="<%=URL%>images/icons/site_management_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Virtual sites management</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"server","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('server','','<%=URL%>images/icons/admin_server_on.gif',1)"><img align="left" name="server" src="<%=URL%>images/icons/admin_server_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Server settings</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"database","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('database','','<%=URL%>images/icons/admin_database_on.gif',1)"><img align="left" name="database" src="<%=URL%>images/icons/admin_database_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Database settings</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"logs","&sub=settings")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('logs','','<%=URL%>images/icons/admin_logs_on.gif',1)"><img align="left" name="logs" src="<%=URL%>images/icons/admin_logs_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Administrative audit logs</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"users","&sub=superAdminProps")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('profile','','<%=URL%>images/icons/admin_profile_on.gif',1)"><img align="left" name="profile" src="<%=URL%>images/icons/admin_profile_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Edit Super Administrator Properties</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"extdepsite","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('extdepsite','','<%=URL%>images/icons/deployment_on.gif',1)"><img align="left" name="extdepsite" src="<%=URL%>images/icons/deployment_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Extract/Deploy virtual sites</a></td>        </tr>       <% if ( (currentSite != null) && (currentSite.getID() != -1) ) { // -1 = fake virtual site %>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"jeffile","&sub=catlist")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('jeffile','','<%=URL%>images/icons/decryptes_on.gif',1)"><img align="left" name="jeffile" src="<%=URL%>images/icons/decryptes_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Unlock encrypted files</a></td>        </tr>        <% } %>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"status","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('stats','','<%=URL%>images/icons/admin_stats_on.gif',1)"><img align="left" name="stats" src="<%=URL%>images/icons/admin_stats_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Server status</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"info","")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('info','','<%=URL%>images/icons/about_on.gif',1)"><img align="left" name="info" src="<%=URL%>images/icons/about_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;About Jahia</a></td>        </tr>    <% } else { %>        <tr>            <td class="text">            <% if(sitesList.size() > 1) { %>                <script language="javascript">                    function changeSiteNow() {                    <%                       int countJS = 0;                       while(sitesJavaScript.hasMoreElements()) {                           JahiaSite siteJS = (JahiaSite) sitesJavaScript.nextElement();                           String siteChangeURL = JahiaAdministration.composeActionURL(request,response,"change","&changesite=" + siteJS.getID());                    %>                        if(document.jahiaAdmin.changesite.options[<%=countJS%>].selected) location.href = "<%=siteChangeURL%>";                    <%                           countJS++;                       }                    %>                    }                </script>                <form name="jahiaAdmin">                    <nobr><b>Select your website:&nbsp;&nbsp;&nbsp;</b>                    <select name="changesite" onChange="changeSiteNow();">                        <% while(sitesEnum.hasMoreElements()) {                             JahiaSite site = (JahiaSite) sitesEnum.nextElement(); %>                        <option value="<%=site.getID()%>"<%if(siteID.intValue()==site.getID()){%> selected<%}%>>&nbsp;<%=site.getServerName()%>&nbsp;</option>                        <% }%>                    </select>                    </nobr>                                </form>            <% } else if ( sitesList.size()>0 ) {                 JahiaSite site = (JahiaSite) sitesEnum.nextElement(); %>                <b><nobr>You're currently on:&nbsp;&nbsp;&nbsp;</nobr><%=site.getServerName()%></b>            <% } %>            </td>        </tr>        <tr>            <td width="100%" height="2"><img src="<%=URL%>images/hr.gif" width="300" height="2"></td>        </tr>        <% if ( siteID.intValue() > 0 ) { %>        <tr>            <td class="text"><%if(isSuperAdmin.booleanValue() || !profileCapability.booleanValue()){%><br><br><%}%><a href="<%=JahiaAdministration.composeActionURL(request,response,"pages","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('pages','','<%=URL%>images/icons/admin_pages_on.gif',1)"><img align="left" name="pages" src="<%=URL%>images/icons/admin_pages_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Page settings</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"users","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('users','','<%=URL%>images/icons/admin_users_on.gif',1)"><img align="left" name="users" src="<%=URL%>images/icons/admin_users_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Manage users</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"groups","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('groups','','<%=URL%>images/icons/admin_groups_on.gif',1)"><img align="left" name="groups" src="<%=URL%>images/icons/admin_groups_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Manage groups</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"components","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('components','','<%=URL%>images/icons/admin_components_on.gif',1)"><img align="left" name="components" src="<%=URL%>images/icons/admin_components_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Manage components</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"templates","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('templates','','<%=URL%>images/icons/admin_templates_on.gif',1)"><img align="left" name="templates" src="<%=URL%>images/icons/admin_templates_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Manage templates</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"search","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('search','','<%=URL%>images/icons/search_on.gif',1)"><img align="left" name="search" src="<%=URL%>images/icons/search_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Manage search engine</a></td>        </tr>        <tr>            <td class="text"><a href="<%=JahiaAdministration.composeActionURL(request,response,"homepages","&sub=display")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('homepages','','<%=URL%>images/icons/home_on.gif',1)"><img align="left" name="homepages" src="<%=URL%>images/icons/home_off.gif" width="16" height="16" border="0">            &nbsp;&nbsp;&nbsp;Manage home page definitions</a></td>        </tr>        <tr>            <td>            <table  border="0"  cellpadding="0" cellspacing="0">            <tr>                <td class="text" valign="top"><img align="left" name="access" src="<%=URL%>images/icons/admin_users_off.gif" width="16" height="16" border="0"></td>                <td class="text">                    &nbsp;&nbsp;&nbsp;User access overview on site pages :<br>                    &nbsp;&nbsp;&nbsp;<a href="<%=JahiaAdministration.composeActionURL(request,response,"access","&sub=tab")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('access','','<%=URL%>images/icons/admin_users_on.gif',1)">- Text file format</a><br>                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(use Save as... in browser)<br>                    &nbsp;&nbsp;&nbsp;<a href="<%=JahiaAdministration.composeActionURL(request,response,"access","&sub=excel")%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('access','','<%=URL%>images/icons/admin_users_on.gif',1)">- Excel file format</a>                </td>            </tr>            </table>            </td>        </tr>        <% }    } %>        </table>        &nbsp;<br><br>        <% if ((siteID.intValue() > 0) && (currentSite != null)) { %>            <a href="<%=jData.params().getSiteURL()%>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('logout','','<%=URL%>images/buttons/exit_administration_on.gif',1)"><img name="logout" src="<%=URL%>images/buttons/exit_administration_off.gif" width="150" height="17" border="0"></a>        <% } %>    </td></tr><tr>    <td colspan="2" align="right">        &nbsp;<br>&nbsp;<br>        <font class="text2"><%=jahiaDisplayMessage%>&nbsp;&nbsp;&nbsp;</font>    </td></tr><tr>    <td colspan="2">&nbsp;</td></tr></table><%@include file="include_footer.jsp"%>

⌨️ 快捷键说明

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