📄 manage_components.jsp
字号:
<%@page import="org.jahia.bin.*"%><%@include file="include_header.jsp"%><%@page import = "java.util.*,org.jahia.data.applications.*"%><%@page import = "java.util.*,org.jahia.services.sites.*"%><%@page import = "java.util.*,org.jahia.registries.*"%><% String theURL = ""; Enumeration appsList = (Enumeration)request.getAttribute("appsList"); JahiaSite currentSite = (JahiaSite)request.getAttribute("site"); String requestURI = (String)request.getAttribute("requestURI"); String contextRoot = (String)request.getContextPath();%><script language="javascript"> function sendForm() { document.mainForm.submit(); }</script><tr> <td align="right" class="text" colspan="2"><b><% if ( currentSite!= null ){%>site <%=currentSite.getServerName()%> <%}%>:: Manage components ::</b> </td></tr></table><br><table cellpadding="2" cellspacing="0" border="0" width="100%"><tr> <td colspan="2" width="530"> </td></tr><tr> <td width="100"> </td> <td width="100%"> <table border="0" cellpadding="0" width="90%"> <tr> <td nowrap> <font class="text"> <b>Applications List:</b><br><br><br><br> </font> </td> </tr> <tr> <td width="100%"> <form name="mainForm" action="<%=requestURI%>?do=components&sub=visibility" method="post"> <table border="0" cellpadding="0" cellspacing="5" width="100%"> <tr> <td valign="top" align="left" class="text" width="50%"><b>Name</b></td> <td valign="top" align="left" class="text" width="25%"><b>Context</b></td> <td valign="top" align="right" class="text" width="25%"><b>Available to users</b></td> </tr> <tr> <td colspan="3"></td> </tr> <tr> <td colspan="3" width="100%" height="2" background="<%=request.getContextPath()%>/jsp/jahia/engines/images/hr.gif"><img src="<%=request.getContextPath()%>/jsp/jahia/engines/images/pix.gif" width="1" height="1"></td> </tr> <tr> <td colspan="3"><br></td> </tr> <% if ( appsList != null ){ ApplicationBean app = null; while (appsList.hasMoreElements()){ app = (ApplicationBean)appsList.nextElement(); if ( app.getJahiaID() == currentSite.getID() ){ %> <tr> <td class="text2" valign="top"><a href="<%=requestURI%>?do=components&sub=edit&appid=<%=app.getID()%>" alt="edit properties"><%=app.getName()%></a><br><br></td> <td class="text" valign="top"><%=app.getContext()%></td> <td class="text" valign="top" align="center"> <input type="checkbox" name ="visible_status" value="<%=app.getID()%>" <% if (app.getVisibleStatus() == 1 ){ %>checked<% } %>> </td> </tr> <% } else { JahiaSite ownerSite = ServicesRegistry.getInstance().getJahiaSitesService().getSite(app.getJahiaID()); %> <tr> <td class="text" valign="top"><%=app.getName()%><br><br></td> <td class="text" valign="top"colspan="2" nowrap> <% if ( ownerSite != null ){ %> Shared by site <%=ownerSite.getServerName()%> <% } else { %> Shared Application <% } %> </td> </tr> <% } } } else { %><tr><td colspan="3" class="text">No Applications found</td></tr><% } %> <tr> <td colspan="3"><br><br><br><br></td> </tr> <tr> <td align="right" colspan="3"> <br> <a href="javascript:document.mainForm.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('save','','<%=request.getContextPath()%>/jsp/jahia/engines/images/buttons/save_change_on.gif',1)"><img name="save" src="<%=request.getContextPath()%>/jsp/jahia/engines/images/buttons/save_change_off.gif" width="114" height="17" border="0" alt="Save visibility status changes"></a> </td> </tr> <tr> <td colspan="3"><br></td> </tr> </table> </form> </td> </tr> <tr> <td> <br><br> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td nowrap width="145" valign="top"><font class="text"><b>Other operations: </b></font></td> <td valign="top"> <font class="text"> <%if(!isLynx){%><li> <%}%><a href="<%=JahiaAdministration.composeActionURL(request,response,"components","&sub=displaynewlist")%>">Deploy new components</a><br> <%if(!isLynx){%><li> <%}%><a href="<%=JahiaAdministration.composeActionURL(request,response,"components","&sub=add")%>">Manually add a new component</a><br> <%if(!isLynx){%><li> <%}%><a href="<%=JahiaAdministration.composeActionURL(request,response,"components","&sub=share")%>">Share Components with other sites</a><br> <%if(!isLynx){%><li> <%}%><a href="<%=JahiaAdministration.composeActionURL(request,response,"components","&sub=options")%>">Components management options</a><br> <%if(!isLynx){%><li> <%}%><a href="<%=JahiaAdministration.composeActionURL(request,response,"components","&sub=decryptjec")%>">Unlock encrypted components</a><br> <%if(!isLynx){%><li> <%}%><a href="<%=JahiaAdministration.composeActionURL(request,response,"displaymenu","")%>">Back to menu</a><br> </font> </td> </tr> </table> </td> </tr> </table> </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 + -