Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\eus\eususersgroupssearchbaseslov.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.cabo.ui.data.BundleDataObject"%> <%@ page import="oracle.sysman.emSDK.util.jdk.NLSUtil"%> <%@ page import="oracle.sysman.db.rsc.sec.EUSMsg"%> <%@ page import="oracle.cabo.ui.data.BundleDataObject"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSConstants"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSSubComponentsDataSourceConstants"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSSubComponentsDataSource"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSComponent"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSComponentType"%> <%@ page import="oracle.sysman.emo.adm.security.eus.EUSSubComponentType"%> <%@ page import="java.util.ResourceBundle"%> <%@ 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.util.UIXDataSource"%> <%@ page import="oracle.sysman.db.adm.ParameterNames"%> <% String sFormDestinationURL=(String)request.getAttribute(EUSConstants.EUS_BASE_URL_TO_COMPONENT); String sEvent=""; if(request.getAttribute("SUB_COMPONENT_EVENT") != null) sEvent=(String)request.getAttribute("SUB_COMPONENT_EVENT"); String sFinalUrl=request.getContextPath()+sFormDestinationURL+"&event="+sEvent+"&subevent=addUser"; String sAddUserJSFunction="submitMainForm('"+sFinalUrl+"')"; String sSearchUrl=request.getContextPath()+sFormDestinationURL+"&event="+sEvent+"&subevent=getUsers"; String sSearchUserJSFunction="submitCurrentForm('"+sSearchUrl+"')"; request.setAttribute("eusBundle", new BundleDataObject(NLSUtil.getBundle(EUSMsg.class.getName(), request))); String dbVersion = (String)request.getAttribute("DBVERSION"); ResourceBundle eusBundle=NLSUtil.getBundle(EUSMsg.class.getName(), request); String sPageTitle=eusBundle.getString("SELECT_EUS_USER_GROUP_TEXT"); EUSSubComponentType fromRequestSubComponentType=null; String sFRomRequestSubComponentTYpe="0"; if(request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE) != null) { fromRequestSubComponentType=(EUSSubComponentType) request.getAttribute(EUSConstants.SUB_COMPONENT_TYPE); sFRomRequestSubComponentTYpe=String.valueOf(fromRequestSubComponentType.getType()); } EUSComponentType fromRequestComponentType=null; String sFRomRequestComponentTYpe="0"; if(request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE) != null) { fromRequestComponentType=(EUSComponentType) request.getAttribute(EUSConstants.EUS_COMPONENT_TYPE); sFRomRequestComponentTYpe=String.valueOf(fromRequestComponentType.getType()); } String sCurrentJSP="/database/security/eus/eususersgroupssearchbaseslov"; %> <uix:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <uix:document> <%@ include file="/oemTitle.jspf" %> <uix:metaContainer> <uix:head title="<%=sPageTitle%>"/> </uix:metaContainer> <uix:body> <uix:form name="form0" method="POST" destination="<%=sFormDestinationURL%>"> <uix:formValue name="<%=EUSConstants.SUB_COMPONENT_TYPE%>" value="<%=sFRomRequestSubComponentTYpe%>" /> <uix:formValue name="<%=EUSConstants.EUS_COMPONENT_TYPE%>" value="<%=sFRomRequestComponentTYpe%>" /> <uix:formValue name="<%=ParameterNames.PAGE_NAME%>" value="<%=sCurrentJSP%>"/> <uix:formValue name="SUB_COMPONENT_EVENT" value="<%=sEvent%>"/> <oem:messageBox messageType="error" errorTableBinding="errors@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <uix:script text="function cancel() { top.close(); } function submitCurrentForm(sSearchUrl) { document.forms[0].action=sSearchUrl; document.forms[0].submit(); } function submitMainForm(sFinalUrl) { var sRadioButtonName='eususergroups:selected'; var sToBeAddedSubComponentsIndexes=''; for(var i=0;i<document.forms[0].elements.length;i++) { var sElemenetName=document.forms[0].elements[i].name; if(sRadioButtonName==sElemenetName) { if(document.forms[0].elements[i].checked) { sToBeAddedSubComponentsIndexes=document.forms[0].elements[i].value; } } } if(sToBeAddedSubComponentsIndexes!='') { top.window.opener.document.forms[0].ToBeAddedUserGroupIndex.value=sToBeAddedSubComponentsIndexes; top.window.opener.document.forms[0].action=sFinalUrl; top.window.opener.document.forms[0].submit(); } top.close(); }" /> <uix:pageLayout title="<%=sPageTitle%>"> <uix:tableLayout width="100%" cellPadding="2" cellSpacing="2"> <uix:rowLayout hAlign="right"> <uix:cellFormat columnSpan="2"> <uix:pageButtonBar> <uix:contents> <uix:button text="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" onClick="cancel()"/> <uix:button text="<%=eusBundle.getString(\"EUS_SELECT_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_SELECT_TEXT\")%>" onClick="<%=sAddUserJSFunction%>"/> </uix:contents> </uix:pageButtonBar> </uix:cellFormat> </uix:rowLayout> <% if(request.getAttribute("USER_GROUP_SEARCH_PROPERTIES") != null) { Map additionalSearchProperties=(Map)request.getAttribute("USER_GROUP_SEARCH_PROPERTIES"); Set keySet=additionalSearchProperties.keySet(); Map additionalSearchPropertiesValue=new HashMap(); if(request.getAttribute("USER_GROUP_SEARCH_PROPERTIES_VALUE") != null) additionalSearchPropertiesValue=(Map)request.getAttribute("USER_GROUP_SEARCH_PROPERTIES_VALUE"); Iterator iterator=keySet.iterator(); while(iterator.hasNext()) { String sKey=(String)iterator.next(); Object obj=additionalSearchProperties.get(sKey); Object objValue=""; if(additionalSearchPropertiesValue != null && additionalSearchPropertiesValue.get(sKey) != null) objValue=additionalSearchPropertiesValue.get(sKey); if(obj instanceof java.util.List) { %> <uix:rowLayout> <uix:cellFormat> <uix:styledText styleClass="OraInstructionText" text="<%=eusBundle.getString(sKey)%>" labeledNodeId="<%=sKey%>"/> </uix:cellFormat> <uix:cellFormat> <uix:messageChoice id="<%=sKey%>" name="<%=sKey%>" shortDesc="<%=eusBundle.getString(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(objValue.toString().equals(sDatabase)) sSelected="true"; %> <uix:option text="<%=sDatabase%>" value="<%=sDatabase%>" selected="<%=sSelected%>" shortDesc="<%=sDatabase%>"/> <% } %> </uix:contents> </uix:messageChoice> </uix:cellFormat> </uix:rowLayout> <% } else if(obj==null) { %> <uix:rowLayout > <uix:cellFormat> <uix:styledText styleClass="OraInstructionText" text="<%=eusBundle.getString(sKey)%>" labeledNodeId="<%=sKey%>"/> </uix:cellFormat> <uix:cellFormat> <uix:textInput id="<%=sKey%>" name="<%=sKey%>" required="true" shortDesc="<%=eusBundle.getString(sKey)%>" text="<%=objValue%>" onKeyPress="if(_getKC(event)==13) return false; else return true;" /> </uix:cellFormat> </uix:rowLayout> <% } } %> <uix:rowLayout > <uix:cellFormat> <uix:spacer /> </uix:cellFormat> <uix:cellFormat> <uix:submitButton onClick="<%=sSearchUserJSFunction%>" text="<%=eusBundle.getString(\"EUS_SEARCH_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_SEARCH_TEXT\")%>"/> </uix:cellFormat> </uix:rowLayout> <% } %> <uix:rowLayout> <uix:cellFormat columnSpan="2"> <uix:dataScope currentDataBinding="EUS_USERS_GROUPS_DATASOURCE@servletRequest"> <uix:table name="eususergroups" alternateTextBinding="EUS_NO_ITEMS_FOUND_TEXT@eusMsgs" width="100%" tableDataBinding="rowData" minValue="1" formSubmitted="true" valueBinding="<%= UIXDataSource.S_START_INDEX_ATTR %>" blockSizeBinding="<%= UIXDataSource.S_BLOCK_SIZE_ATTR %>" maxValueBinding="<%= UIXDataSource.S_NUM_ROWS_ATTR %>" shortDesc="" summary=""> <uix:tableFormat tableBanding="rowBanding"/> <% String sDisplayNameKey="USER_GROUP_NAME"; //String sDisplayNameKey="SUBCOMP_106_COMP_3_COL0"; String sDisplayName = eusBundle.getString(sDisplayNameKey); //String sDisplayName = "Name"; %> <uix:column> <uix:columnHeader> <uix:sortableHeader text="<%=sDisplayName%>" shortDesc="<%=sDisplayName%>" sortable="true"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat" /> <uix:styledText textBinding="<%=sDisplayNameKey%>" /> </uix:column> <uix:tableSelection> <uix:singleSelection selectedIndex="0" textBinding="EUS_SELECT_TEXT@eusMsgs" shortDescBinding="EUS_SELECT_TEXT@eusMsgs"> </uix:singleSelection> </uix:tableSelection> </uix:table> </uix:dataScope> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout hAlign="right"> <uix:cellFormat columnSpan="2"> <uix:pageButtonBar> <uix:contents> <uix:button text="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_CANCEL_TEXT\")%>" onClick="cancel()"/> <uix:button text="<%=eusBundle.getString(\"EUS_SELECT_TEXT\")%>" shortDesc="<%=eusBundle.getString(\"EUS_SELECT_TEXT\")%>" onClick="<%=sAddUserJSFunction%>"/> </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