📄 group_search.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"/><% ArrayList resultList = (ArrayList)request.getAttribute( "resultList" );%><!-- Group selection --><table class="text" border="0" cellspacing="0" cellpadding="0" width="95%" align="center"> <tr> <td> </td> <td valign="top"> <!-- Search engine view --> <!-- FIXME : This is a temporary solution !! --> <table class="text" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <input type="hidden" name="searchInGroup" value="allProps"> </td> </tr> </table> <!-- end search engine view --> <!-- Search engine view --> <!-- A future search engine view ? <table class="text" border="0" width="50%"> <tr> <td colspan="2"> <br> Search groups : <input type="text" name="searchStringGroup" size="10"> </td> </tr> <tr> <td>Search in :</td> <td> <input type="radio" name="searchInGroup" value="allProps" checked onclick="disableCheckBox(properties);"> All properties </td> </tr> <tr> <td> </td> <td valign="top"> <input type="radio" name="searchInGroup" value="properties" onclick="enableCheckbox(properties);"> Properties :<br> <input type="checkbox" name="properties" value="groupNameGroup" disabled> Group name<br> <input type="checkbox" name="properties" value="homePageGroup" disabled> Home page<br> <input type="checkbox" name="properties" value="siteGroup" disabled> Site<br> <input type="checkbox" name="properties" value="membersGroup" disabled> Members<br> </td> </tr> <tr> <td> </td> <td align="right"> <br> <a href="#">Search...</a> </td> </tr> </table> --> <!-- end search engine view --> </td> <td align="center"> <!-- Display group list --> <table class="text" border="0"> <tr> <td> <table class="text" width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7%"> </td> <td width="20%"> <jahia:jahiaButton img="sort" href="javascript:sortSelectBox(document.mainForm.selectedGroup, false);" alt="Sort by source" /> </td> <td width="30%"> <jahia:jahiaButton img="sort" href="javascript:sortSelectBox(document.mainForm.selectedGroup, false, /.{7}/);" alt="Sort by group ID" /> </td> <td> <jahia:jahiaButton img="sort" href="javascript:sortSelectBox(document.mainForm.selectedGroup, false, /.{23}/);" alt="Sort by property" /> </td> <td> <!-- <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('helpSorting','','<%=request.getContextPath()%><jahia:engineResourceBundle resourceName="helpOnButtonImg" />',1)"> <img align="left" name="helpSorting" alt="Help on sorting ACL entries" onclick="javascript:popupHelp(event, '<%=request.getContextPath()%>/html/help/helpSorting.htm');" src="<%=request.getContextPath()%><jahia:engineResourceBundle resourceName="helpOffButtonImg" />" width="11" height="11" border="0"></a>--> </td> </tr> </table> <select ondblclick="javascript:handleKey(event);" onkeydown="javascript:handleKeyCode(event.keyCode);" class="fontfix" name="selectedGroup" size="25" multiple><% if (resultList == null || resultList.size() == 0) {%> <option value="null" selected> </option><% } else { for (int i = 0; i < resultList.size(); i += 2) {%> <!-- Option value = "<%= JahiaTools.replacePattern((String)resultList.get(i), " ", "_")%>" text = "<%= JahiaTools.replacePattern((String)resultList.get(i + 1), " ", "_")%>" --> <option value="<%= (String)resultList.get(i)%>"> <%= (String)resultList.get(i + 1)%> </option><% } }%> </select><br> </td> </tr> </table> </td> </tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -