📄 selectug.jsp
字号:
<%@ page language="java" %><%@ page import="java.util.*" %><%@ page import="org.jahia.params.*" %><%@ page import="org.jahia.services.*" %><%@ page import="org.jahia.exceptions.*" %><%@ page import="org.jahia.utils.JahiaTools"%><%@ page import="org.jahia.services.usermanager.*" %><%@ taglib uri="JahiaLib" prefix="jahia" %><jsp:useBean id="URL" class="java.lang.String" scope="request"/><jsp:useBean id="engineTitle" class="java.lang.String" scope="request"/><jsp:useBean id="javaScriptPath" class="java.lang.String" scope="request"/><% HashMap engineMap = (HashMap) request.getAttribute( "org.jahia.engines.EngineHashMap" ); String engineUrl = (String) engineMap.get( "engineUrl" ); String selectUGEngine = (String)engineMap.get("selectUGEngine");%><!-- FIXME : The following javascript file path are hardcoded. --><script language="javascript" src="<jahia:serverHttpPath />/jsp/jahia/javascript/selectbox.js"></script><script language="javascript" src="<jahia:serverHttpPath />/jsp/jahia/javascript/help.js"></script><script language="javascript" src="<jahia:serverHttpPath />/jsp/jahia/javascript/checkbox.js"></script><script language="javascript">var defaultAction = "searchUsers";function sendForm(action){ defaultAction = action; document.mainForm.method = "POST"; document.mainForm.action = "<%=engineUrl%>?screen=" + action; document.mainForm.submit();}function changeSelectUGEngine(){ if (document.mainForm.selectUGEngineSelector.options[0].selected) { sendForm("searchUsers"); } else { sendForm("searchGroups"); }}document.onkeydown = keyDown;function keyDown() { if (document.all) { var ieKey = event.keyCode; if (ieKey == 13) { sendForm(defaultAction); } if (ieKey == 88 && event.altKey) { window.close(); } }}function pasteSelection(){ if (window.opener.closed) { //alert('ACL entries closed'); } else { for (i = 0; i < document.mainForm.selectedUG.length; i++) { if ((document.mainForm.selectedUG.options[i].selected) && (document.mainForm.selectedUG.options[i].value != "null")) { window.opener.addOptions(document.mainForm.selectedUG.options[i].text, document.mainForm.selectedUG.options[i].value); document.mainForm.selectedUG.options[i].selected = false; } } window.opener.addOptionsBalance(); }}function pasteSelectionClose(){ pasteSelection(); document.mainForm.method = "POST"; document.mainForm.action = "<%=engineUrl%>&screen=save"; document.mainForm.submit(); window.close();}</script><!-- Title --><form name="mainForm" method="post" action=""><table class="text" width="95%" align="center" border="0"> <tr> <td><b>Add new users/groups to the ACL</b></td> <td>Search engine : <select class="input" name="selectUGEngineSelector" onChange="changeSelectUGEngine()"> <option value="userList" <% if (selectUGEngine.equals("selectUsers")) { %> selected<% } %>> User list </option> <option value="groupList" <% if (selectUGEngine.equals("selectGroups")) { %>selected<% } %>> Group list </option> </select> </td> </tr></table><!-- --><!-- <hr> --><table width="95%" height="2" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td background="<jahia:serverHttpPath /><jahia:engineResourceBundle resourceName="hrImg" />"></td> </tr></table><br><% if (selectUGEngine.equals("selectUsers")) { %> <jsp:include page="selectusers.jsp" flush="true"/><% } else { %> <jsp:include page="selectgroups.jsp" flush="true"/><% } %> <!-- Menu --><table class="text" width="50%" align="center" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <br> <jahia:jahiaButton img="ok" href="javascript:pasteSelectionClose()" alt="Paste the above selection to the right management window and close this window" /> <jahia:jahiaButton img="add" href="javascript:pasteSelection();" alt="Paste the above selection to the right management window without closing this window" /> <jahia:jahiaButton img="cancel" href="javascript:window.close();" alt="Close this windows without pasting the above selection to the right management window" /> </td> </tr></table><!-- end of menu --></form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -