📄 main.jsp
字号:
<%@page language = "java" %><%@page import = "java.util.*" %><%@page import = "org.jahia.services.sites.JahiaSite" %><%@page import="org.jahia.bin.*"%><% Properties includes = new Properties(); includes.setProperty("list","/jsp/jahia/administration/homepages/include/list.jsp"); includes.setProperty("add","/jsp/jahia/administration/homepages/include/add.jsp"); includes.setProperty("addlink","/jsp/jahia/administration/homepages/include/addlink.jsp"); includes.setProperty("addcopy","/jsp/jahia/administration/homepages/include/addcopy.jsp"); includes.setProperty("addnew","/jsp/jahia/administration/homepages/include/addnew.jsp"); includes.setProperty("detail","/jsp/jahia/administration/homepages/include/detail.jsp"); includes.setProperty("detaillink","/jsp/jahia/administration/homepages/include/addlink.jsp"); includes.setProperty("detailcopy","/jsp/jahia/administration/homepages/include/addcopy.jsp"); includes.setProperty("detailnew","/jsp/jahia/administration/homepages/include/addnew.jsp"); includes.setProperty("delete","/jsp/jahia/administration/homepages/include/delete.jsp"); includes.setProperty("error","/jsp/jahia/administration/homepages/include/error.jsp"); includes.setProperty("options","/jsp/jahia/administration/homepages/include/options.jsp"); request.setAttribute("includes",includes);%><jsp:useBean id="url" class="java.lang.String" scope="request"/> <% // http files path. %><jsp:useBean id="focus" class="java.lang.String" scope="request"/> <% // autofocus input name in the form. %><jsp:useBean id="title" class="java.lang.String" scope="request"/> <% // title %><jsp:useBean id="msg" class="java.lang.String" scope="request"/> <% // bottom message [copyright or advertise]. %><jsp:useBean id="currentSite" class="JahiaSite" scope="request"/> <% // the current site %><jsp:useBean id="subAction" class="java.lang.String" scope="request"/> <% // the default screen %><jsp:useBean id="go" class="java.lang.String" scope="request"/> <% // the default event %><% Boolean isLynx = (Boolean) request.getAttribute( "isLynx" ); Integer navigator = (Integer) request.getAttribute( "navigator" ); String includeJsp = (String) request.getParameter("includejsp"); String includePage = includes.getProperty(includeJsp); if ( includePage == null ) includePage = includes.getProperty("error"); int inputSize = navigator.intValue() == 0 ? 65 : 40; request.setAttribute( "input", new Integer(inputSize).toString() );%><html><head> <title>Jahia - Manage Homepages</title> <link rel="stylesheet" href="<%=url%>/css/jahia.css" type="text/css"> <script language="javascript" src="<%=url%>/../javascript/jahia.js"></script> <script language="javascript"> function focus() { <%if(!focus.equals("-none-")){%> document.formular.<%=focus%>.focus(); <%}%> } function submitFormular(sub,go) { var theMatrix = Math.round(Math.random() * 10000); document.formular.action='<%=JahiaAdministration.composeActionURL(request,response,"homepages","&sub=")%>'+sub+'&go='+go+'&matrix='+theMatrix; document.formular.method='POST'; document.formular.submit(); } </script></head><body class="install" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="focus();" onUnload="closeEngineWin();" onClose="closeEngineWin();"><center><br><br><br><table cellpadding="1" cellspacing="0" bgcolor="#000000" width="530" border="0"><tr> <td> <table cellpadding="0" cellspacing="0" width="530" border="0"> <tr> <td bgcolor="#92A4AD"> <table width="530" height="63" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="126" height="63"><img src="<%=url%>/images/header.gif" width="126" height="63" alt=""></td> <td width="404" height="63" background="<%=url%>/images/header_bg.gif"> </td> </tr> <tr> <td align="right" class="text" colspan="2"> <% if ( currentSite!= null ){%>site <%=currentSite.getServerName()%> <%}%>:: <%=title%> ::</b> </tr> </table> <br><br> <table cellpadding="2" cellspacing="0" border="0" width="530"> <tr> <td colspan="3" width="530"> </td> </tr> <form name="formular" method="post" action="<%=JahiaAdministration.composeActionURL(request,response,"homepages","&sub=" + subAction + "&go=" + go)%>"> <tr> <td width="80"> </td> <td width="400" class="text"> <!-- include page start --> <jsp:include page="<%=includePage%>" flush="true"/> <!-- include page ends --> </td> <td width="50"> </td> </tr> </form> <tr> <td colspan="3" align="right"> <br><br><br> <font class="text2"><%=msg%> </font> </td> </tr> <tr> <td colspan="3"> </td> </tr> </table> </td> </tr> </table> </td></tr></table><br><br> </center></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -