📄 menu.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>:: Jahia Administration ::</b> <% 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">> switch administration mode to <%=switchModeActionWord%> <</a> <% } } %> </td></tr></table><br> <table cellpadding="2" cellspacing="0" border="0" width="530"><tr> <td width="100"> </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"> 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"> 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"> 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"> 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"> 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"> 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"> 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"> 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"> 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: </b> <select name="changesite" onChange="changeSiteNow();"> <% while(sitesEnum.hasMoreElements()) { JahiaSite site = (JahiaSite) sitesEnum.nextElement(); %> <option value="<%=site.getID()%>"<%if(siteID.intValue()==site.getID()){%> selected<%}%>> <%=site.getServerName()%> </option> <% }%> </select> </nobr> </form> <% } else if ( sitesList.size()>0 ) { JahiaSite site = (JahiaSite) sitesEnum.nextElement(); %> <b><nobr>You're currently on: </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"> 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"> 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"> 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"> 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"> 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"> 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"> 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"> User access overview on site pages :<br> <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> (use Save as... in browser)<br> <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> <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"> <br> <br> <font class="text2"><%=jahiaDisplayMessage%> </font> </td></tr><tr> <td colspan="2"> </td></tr></table><%@include file="include_footer.jsp"%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -