Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\appctxt\oidappctxtallusers.jsp
<%@ include file="/sdk/oemTop.jspf" %> <%@ include file="/oemNoscript.jspf" %> <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix"%> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem"%> <%@ page import="oracle.sysman.emSDK.util.jdk.NLSUtil"%> <%@ page import="oracle.sysman.db.rsc.sec.OIDAppCtxtMsg"%> <%@ page import="oracle.cabo.ui.data.BundleDataObject"%> <%@ page import="java.util.ResourceBundle"%> <%@ page import="oracle.sysman.emo.util.UIXDataSource"%> <%@ page import="oracle.sysman.db.adm.ParameterNames"%> <%@ page import="java.util.Map"%> <%@ page import="java.util.Set"%> <%@ page import="java.util.List"%> <%@ page import="java.util.HashMap"%> <%@ page import="java.util.Iterator"%> <%@ page import="oracle.sysman.emo.adm.security.appctxt.OIDAppCtxtConstants"%> <% String sAllUSERSReturnToEvent="OID_APP_CTXT_ATTRIBUTE_VALUE_ADD_USERS"; String sSubmitFormJS=""; sSubmitFormJS="submitMainForm('"+sAllUSERSReturnToEvent+"')"; ResourceBundle oidAppCtxtBundle=NLSUtil.getBundle(OIDAppCtxtMsg.class.getName(), request); StringBuffer oemTitle = (StringBuffer)request.getAttribute("_emSDK_PageTitle"); oemTitle.append(" - "); oemTitle.append(oidAppCtxtBundle.getString("OID_APP_CTXT_ALL_USERS_TITLE")); %> <uix:renderingContext id="renderingContext"> <uix:bundle name="OIDAppCtxtMsg" class="oracle.sysman.db.rsc.sec.OIDAppCtxtMsg"/> <uix:bundle name="dbMsgs" class="oracle.sysman.db.rsc.DBObjectMsg"/> <uix:bundle name="olsMsgs" class="oracle.sysman.db.rsc.sec.OLSOIDMsg"/> <uix:bundle name="eusMsgs" class="oracle.sysman.db.rsc.sec.EUSMsg"/> <oem:setURLEncoder id="renderingContext"/> <uix:document> <%@ include file="/oemTitle.jspf" %> <uix:metaContainer> <uix:head title="<%=oemTitle%>"/> </uix:metaContainer> <uix:body> <uix:form name="form0" method="POST" destinationBinding="FORM_DESTINATION_URL@servletRequest"> <uix:formValue name="<%=ParameterNames.PAGE_NAME%>" valueBinding="pageName@servletRequest"/> <uix:script text="function cancel() { top.window.close(); } function submitMainForm(sFormEvent) { var iNumberOfCheckBoxes=0; var iCheckBoxCount=0; var sCheckBoxNamePrefix='OID_APP_CTXT_AVAILABLE_USERS_DATASOURCE:selected:'; var sToBeAddedSubComponentsIndexes=''; var iSelectedCheckBoxCount=0; var sCurrentFormURL=''; for(var i=0;i<document.forms[0].elements.length;i++) { var sElemenetName=document.forms[0].elements[i].name; var sCheckBoxName=sCheckBoxNamePrefix+iCheckBoxCount; if(sCheckBoxName==sElemenetName) { if(document.forms[0].elements[i].checked) { if(iSelectedCheckBoxCount==0) { sToBeAddedSubComponentsIndexes=document.forms[0].elements[i].value; } else { sToBeAddedSubComponentsIndexes = sToBeAddedSubComponentsIndexes + ',' + document.forms[0].elements[i].value; } iSelectedCheckBoxCount++; } iCheckBoxCount++; } } top.window.opener.document.forms[0].OID_APP_CTXT_SELECTED_USERS_INDEX.value=sToBeAddedSubComponentsIndexes; sCurrentFormURL=top.window.opener.document.forms[0].action; sCurrentFormURL=sCurrentFormURL+'?event='+sFormEvent; top.window.opener.document.forms[0].action=sCurrentFormURL; top.window.opener.document.forms[0].submit(); top.window.close(); }" /> <uix:pageLayout titleBinding="OID_APP_CTXT_ALL_USERS_TITLE@OIDAppCtxtMsg"> <uix:tableLayout width="100%" cellPadding="1" cellSpacing="1"> <uix:rowLayout hAlign="right"> <uix:cellFormat columnSpan="2"> <uix:pageButtonBar> <uix:contents> <uix:button textBinding="OID_APP_CTXT_CANCEL_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_CANCEL_TXT@OIDAppCtxtMsg" onClick="cancel()"/> <uix:button textBinding="OID_APP_CTXT_SELECT_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_SELECT_TXT@OIDAppCtxtMsg" onClick="<%=sSubmitFormJS%>"/> </uix:contents> </uix:pageButtonBar> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="100%" cellPadding="2" cellSpacing="2"> <% if(request.getAttribute("USER_GROUP_SEARCH_PROPERTIES") != null) { Map additionalSearchProperties=(Map)request.getAttribute("USER_GROUP_SEARCH_PROPERTIES"); Set keySet=additionalSearchProperties.keySet(); Iterator iterator=keySet.iterator(); while(iterator.hasNext()) { String sKey=(String)iterator.next(); Object obj=additionalSearchProperties.get(sKey); if(obj instanceof java.util.List) { %> <uix:rowLayout> <uix:cellFormat hAlign="right"> <uix:styledText styleClass="OraInstructionText" text="<%=oidAppCtxtBundle.getString(sKey)%>" labeledNodeId="<%=sKey%>"/> </uix:cellFormat> <uix:cellFormat hAlign="left"> <uix:messageChoice id="<%=sKey%>" name="<%=sKey%>" > <uix:contents> <% List databases=(List)obj; for(int i=0;i<databases.size();i++) { String sDatabase=(String)databases.get(i); String sSelected="false"; if(request.getAttribute("OID_APP_CTXT_ENT_USERS_SEARCHBASE") != null) { String sSelectedDatabase=(String)request.getAttribute("OID_APP_CTXT_ENT_USERS_SEARCHBASE"); if(sDatabase.equalsIgnoreCase(sSelectedDatabase)) sSelected="true"; } %> <uix:option shortDesc="<%=sDatabase%>" text="<%=sDatabase%>" value="<%=sDatabase%>" selected="<%=sSelected%>"/> <% } %> </uix:contents> </uix:messageChoice> </uix:cellFormat> </uix:rowLayout> <% } else if(obj==null) { %> <uix:rowLayout > <uix:cellFormat hAlign="right"> <uix:styledText styleClass="OraInstructionText" text="<%=oidAppCtxtBundle.getString(sKey)%>" labeledNodeId="<%=sKey%>" /> </uix:cellFormat> <uix:cellFormat hAlign="left"> <% String sSeacrhedUser = ""; if(request.getAttribute("OID_APP_CTXT_ENT_USERS_NAME") != null) sSeacrhedUser =(String) request.getAttribute("OID_APP_CTXT_ENT_USERS_NAME"); %> <uix:textInput id="<%=sKey%>" name="<%=sKey%>" required="true" text="<%=sSeacrhedUser%>"/> </uix:cellFormat> </uix:rowLayout> <% } } %> <uix:rowLayout > <uix:cellFormat> <uix:spacer /> </uix:cellFormat> <uix:cellFormat> <uix:submitButton name="event" textBinding="OID_APP_CTXT_GO_TXT@OIDAppCtxtMsg" value="<%=OIDAppCtxtConstants.OID_APP_CTXT_ALL_USERS_EVENT%>" /> </uix:cellFormat> </uix:rowLayout> <% } %> </uix:tableLayout> <uix:tableLayout width="100%" cellSpacing="5"> <uix:rowLayout> <uix:dataScope currentDataBinding="OID_APP_CTXT_AVAILABLE_USERS_DATASOURCE@servletRequest"> <uix:table width="100%" name="OID_APP_CTXT_AVAILABLE_USERS_DATASOURCE" alternateTextBinding="EUS_NO_ITEMS_FOUND_TEXT@eusMsgs" tableDataBinding="rowData" minValue="1" formSubmitted="true" valueBinding="<%= UIXDataSource.S_START_INDEX_ATTR %>" blockSizeBinding="<%= UIXDataSource.S_BLOCK_SIZE_ATTR %>" maxValueBinding="<%= UIXDataSource.S_NUM_ROWS_ATTR %>" shortDescBinding="OID_APP_CTXT_NAME_TXT@OIDAppCtxtMsg" summaryBinding="OID_APP_CTXT_NAME_TXT@OIDAppCtxtMsg"> <uix:column> <uix:columnHeader> <uix:sortableHeader textBinding="OID_APP_CTXT_NAME_TXT@OIDAppCtxtMsg" sortable="true"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:styledText textBinding="OID_APP_CTXT_ENT_USERS_NAME" /> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader textBinding="OID_APP_CTXT_DN_TXT@OIDAppCtxtMsg" sortable="true"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:styledText textBinding="OID_APP_CTXT_ENT_USERS_DN" /> </uix:column> <uix:tableSelection> <uix:multipleSelection shortDescBinding="OID_APP_CTXT_SELECT_TXT@OIDAppCtxtMsg" textBinding="OID_APP_CTXT_SELECT_TXT@OIDAppCtxtMsg"> </uix:multipleSelection> </uix:tableSelection> </uix:table> </uix:dataScope> </uix:rowLayout> </uix:tableLayout> <uix:tableLayout width="100%" cellPadding="1" cellSpacing="1"> <uix:rowLayout hAlign="right"> <uix:cellFormat columnSpan="2"> <uix:pageButtonBar> <uix:contents> <uix:button textBinding="OID_APP_CTXT_CANCEL_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_CANCEL_TXT@OIDAppCtxtMsg" onClick="cancel()"/> <uix:button textBinding="OID_APP_CTXT_SELECT_TXT@OIDAppCtxtMsg" shortDescBinding="OID_APP_CTXT_SELECT_TXT@OIDAppCtxtMsg" onClick="<%=sSubmitFormJS%>"/> </uix:contents> </uix:pageButtonBar> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:pageLayout> </uix:form> </uix:body> </uix:document> </uix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de