Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\olsoid\createPolicyGeneralPage.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.streams.ApplyMsg"%> <%@ page import="oracle.cabo.ui.data.BundleDataObject"%> <%@ page import="oracle.sysman.db.adm.sec.olsoid.Util"%> <%@ page import="oracle.sysman.db.adm.sec.olsoid.PolicyConstants"%> <%@ page import="oracle.sysman.db.adm.sec.common.EntDBSecConstants"%> <%@ page import="oracle.sysman.db.rsc.sec.OLSOIDMsgID"%> <%@ page import="oracle.sysman.db.adm.sec.olsoid.PolicyTableList"%> <%@ page import="oracle.sysman.emo.adm.security.olsoid.UserTableList"%> <script type="text/javascript"> function enableDisableCheckBoxes() { //alert( document.policyForm.enforcementOption[0].checked); //alert( document.policyForm.enforcementOption[1].checked); if(document.policyForm.enforcementOption[0].checked) { document.policyForm.readControl.checked = false; document.policyForm.insertControl.checked = false; document.policyForm.updateControl.checked = false; document.policyForm.deleteControl.checked = false; document.policyForm.labelDefault.checked = false; document.policyForm.labelUpdate.checked = false; document.policyForm.checkControl.checked = false; document.policyForm.readControl.disabled = true; document.policyForm.insertControl.disabled = true; document.policyForm.updateControl.disabled = true; document.policyForm.deleteControl.disabled = true; document.policyForm.labelDefault.disabled = true; document.policyForm.labelUpdate.disabled = true; document.policyForm.checkControl.disabled = true; }else if(document.policyForm.enforcementOption[1].checked){ document.policyForm.readControl.disabled = false; document.policyForm.insertControl.disabled = false; document.policyForm.updateControl.disabled = false; document.policyForm.deleteControl.disabled = false; document.policyForm.labelDefault.disabled = false; document.policyForm.labelUpdate.disabled = false; document.policyForm.checkControl.disabled = false; } } function enableCheckBoxes() { document.policyForm.readControl.disabled = false; } </script> <uix:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <uix:bundle name="dbMsgs" class="oracle.sysman.db.rsc.DBObjectMsg"/> <uix:bundle name="streamsMsgs" class="oracle.sysman.db.rsc.streams.StreamsMsg"/> <uix:bundle name="olsMsgs" class="oracle.sysman.db.rsc.sec.OLSOIDMsg"/> <uix:bundle name="policyMsgs" class="oracle.sysman.db.rsc.sec.ols.PolicyMsg"/> <uix:document> <uix:metaContainer> <uix:head titleBinding="title@servletRequest"/> </uix:metaContainer> <uix:body onLoad='enableDisableCheckBoxes()'> <uix:form name="policyForm" method="POST" destination="/console/database/EntDBSec/OLSOID/PolicyController" > <uix:pageLayout shortDescBinding = "header@servletRequest" titleBinding = "header@servletRequest" > <uix:formValue name="pageName" value="<%= PolicyConstants.CREATE_POLICY_GENERAL_PAGE %>" /> <uix:formValue name="beanName" value="<%= PolicyConstants.CREATE_POLICY_BEAN %>" /> <%@ include file="/oemGlobal.jspf"%> <!-- <%@ include file="/enablePPR.jspf" %> <%@ include file="/oemGlobal.jspf"%> <%-- <%@ include file="/database/security/common/entdbseclogout.jspf"%> --%> --> <%-- <uix:messages> --%> <oem:messageBox messageType="info" errorTableBinding="info@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <oem:messageBox messageType="error" errorTableBinding="errors@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <%-- </uix:messages> --%> <!-- Main Contents Starts Here --> <uix:contents> <uix:subTabLayout> <uix:subTabs> <uix:subTabBar selectedIndex="0"> <uix:contents> <uix:link shortDescBinding="GENERAL@olsMsgs" textBinding="GENERAL@olsMsgs"/> <uix:link shortDescBinding="LABEL_COMPONENTS@olsMsgs" textBinding="LABEL_COMPONENTS@olsMsgs" onClick="submitForm('policyForm', true, {event:'createPolicyComponents'})"/> <uix:link shortDescBinding="ADVANCED@olsMsgs" textBinding="ADVANCED@olsMsgs" onClick="submitForm('policyForm', true, {event:'createPolicyAdvanced'})"/> </uix:contents> </uix:subTabBar> </uix:subTabs> <uix:contents> <uix:spacer width="10" height="20"/> <uix:tableLayout width="100%"> <uix:contents> <%-- <uix:rowLayout> <uix:contents> <uix:cellFormat> <uix:contents> --%> <uix:labeledFieldLayout width="75%"> <uix:contents> <uix:switcher defaultCase="false" childNameBinding="editing@policyBean@servletRequest"> <uix:case name="true"> <uix:messageTextInput promptBinding="NAME@olsMsgs" name="policyName" textBinding="policyName@policyBean@servletRequest" readOnlyBinding="editing@policyBean@servletRequest" maximumLength="30" shortDescBinding="POLICY_NAME@olsMsgs" required="no" styleClass="OraDataText" /> </uix:case> <uix:case name="false"> <uix:messageTextInput promptBinding="NAME@olsMsgs" name="policyName" textBinding="policyName@policyBean@servletRequest" readOnlyBinding="editing@policyBean@servletRequest" maximumLength="30" shortDescBinding="POLICY_NAME@olsMsgs" required="uiOnly" /> </uix:case> </uix:switcher> <uix:switcher defaultCase="false" childNameBinding="editing@policyBean@servletRequest"> <uix:case name="true"> <uix:messageTextInput promptBinding="COLUMN_NAME@olsMsgs" name="columnName" textBinding="columnName@policyBean@servletRequest" readOnlyBinding="editing@policyBean@servletRequest" maximumLength="30" shortDescBinding="COLUMN_NAME@olsMsgs" required="no" styleClass="OraDataText" /> </uix:case> <uix:case name="false"> <uix:messageTextInput promptBinding="COLUMN_NAME@olsMsgs" name="columnName" textBinding="columnName@policyBean@servletRequest" messageBinding="LABEL_COL_TIP@policyMsgs" readOnlyBinding="editing@policyBean@servletRequest" maximumLength="30" shortDescBinding="COLUMN_NAME@olsMsgs" required="uiOnly" /> </uix:case> </uix:switcher> <uix:messageCheckBox shortDescBinding="HIDE_COLUMN@olsMsgs" textBinding="HIDE_COLUMN@olsMsgs" name="hideColumn" messageBinding="HIDE_COLUMN_MSG@olsMsgs" checkedBinding="hideColumn@policyBean@servletRequest"/> <uix:messageCheckBox shortDescBinding="INVERSE_GROUP@olsMsgs" textBinding="INVERSE_GROUP@olsMsgs" name="inverseGroup" checkedBinding="inverseGroup@policyBean@servletRequest" tipBinding="INVERSE_GROUP_TIP@olsMsgs" readOnlyBinding="editing@policyBean@servletRequest" /> </uix:contents> </uix:labeledFieldLayout> <%-- </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> --%> </uix:contents> </uix:tableLayout> <uix:header shortDescBinding="ENFORCEMENT_OPTIONS_HEADER@olsMsgs" textBinding="ENFORCEMENT_OPTIONS_HEADER@olsMsgs"> <uix:contents> <uix:radioSet name="enforcementOption" onClick='enableDisableCheckBoxes()'> <uix:contents> <uix:option value="noControl" shortDescBinding="NO_CONTROL@olsMsgs" textBinding="NO_CONTROL@olsMsgs" selectedBinding="noControl@policyBean@servletRequest" /> <uix:option value="apply" shortDescBinding="APPLY_ENFORCEMENT@olsMsgs" textBinding="APPLY_ENFORCEMENT@olsMsgs" selectedBinding="apply@policyBean@servletRequest" /> <uix:tableLayout> <uix:contents> <uix:rowLayout> <uix:contents> <uix:cellFormat> <uix:contents> <uix:spacer width="10" height="10"/> </uix:contents> </uix:cellFormat> <uix:cellFormat> <uix:contents> <uix:labeledFieldLayout> <uix:contents> <%-- <uix:messageCheckBox shortDescBinding="READ_CONTROL@olsMsgs" textBinding="READ_CONTROL@olsMsgs" name="readControl" checkedBinding="readControl@policyBean@servletRequest" disabledBinding="disableCheckbox@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="INSERT_CONTROL@olsMsgs" textBinding="INSERT_CONTROL@olsMsgs" name="insertControl" checkedBinding="insertControl@policyBean@servletRequest" disabledBinding="disableCheckbox@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="UPDATE_CONTROL@olsMsgs" textBinding="UPDATE_CONTROL@olsMsgs" name="updateControl" checkedBinding="updateControl@policyBean@servletRequest" disabledBinding="disableCheckbox@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="DELETE_CONTROL@olsMsgs" textBinding="DELETE_CONTROL@olsMsgs" name="deleteControl" checkedBinding="deleteControl@policyBean@servletRequest" disabledBinding="disableCheckbox@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="LABEL_DEFAULT@olsMsgs" textBinding="LABEL_DEFAULT@olsMsgs" name="labelDefault" checkedBinding="labelDefault@policyBean@servletRequest" disabledBinding="disableCheckbox@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="LABEL_UPDATE@olsMsgs" textBinding="LABEL_UPDATE@olsMsgs" name="labelUpdate" checkedBinding="labelUpdate@policyBean@servletRequest" disabledBinding="disableCheckbox@policyBean@servletRequest" tipBinding="LABEL_UPDATE_TIP@olsMsgs"/> <uix:messageCheckBox shortDescBinding="CHECK_CONTROL@olsMsgs" textBinding="CHECK_CONTROL@olsMsgs" name="checkControl" checkedBinding="checkControl@policyBean@servletRequest" disabledBinding="disableCheckbox@policyBean@servletRequest" tipBinding="CHECK_CONTROL_TIP@olsMsgs"/> --%> <uix:messageCheckBox shortDescBinding="READ_CONTROL@olsMsgs" textBinding="READ_CONTROL@olsMsgs" name="readControl" checkedBinding="readControl@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="INSERT_CONTROL@olsMsgs" textBinding="INSERT_CONTROL@olsMsgs" name="insertControl" checkedBinding="insertControl@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="UPDATE_CONTROL@olsMsgs" textBinding="UPDATE_CONTROL@olsMsgs" name="updateControl" checkedBinding="updateControl@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="DELETE_CONTROL@olsMsgs" textBinding="DELETE_CONTROL@olsMsgs" name="deleteControl" checkedBinding="deleteControl@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="LABEL_DEFAULT@olsMsgs" textBinding="LABEL_DEFAULT@olsMsgs" name="labelDefault" checkedBinding="labelDefault@policyBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="LABEL_UPDATE@olsMsgs" textBinding="LABEL_UPDATE@olsMsgs" name="labelUpdate" checkedBinding="labelUpdate@policyBean@servletRequest" tipBinding="LABEL_UPDATE_TIP@olsMsgs"/> <uix:messageCheckBox shortDescBinding="CHECK_CONTROL@olsMsgs" textBinding="CHECK_CONTROL@olsMsgs" name="checkControl" checkedBinding="checkControl@policyBean@servletRequest" tipBinding="CHECK_CONTROL_TIP@olsMsgs"/> </uix:contents> </uix:labeledFieldLayout> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:tableLayout> </uix:contents> </uix:radioSet> </uix:contents> </uix:header> <uix:spacer width="10" height="30"/> </uix:contents> </uix:subTabLayout> </uix:contents> <!-- Main Contents Ends Here --> <!-- Navigation --> <uix:location> <uix:breadCrumbs> <uix:link shortDescBinding="ENTERPRISE_DATABASE_SECURITY@olsMsgs" textBinding="ENTERPRISE_DATABASE_SECURITY@olsMsgs" destination="/console/database/EntDBSec?event=dbLogin"/> <uix:link shortDescBinding="POLICY_PAGE_TITILE@olsMsgs" textBinding="POLICY_PAGE_TITILE@olsMsgs" destination="/console/database/EntDBSec/OLSOID/PolicyController?event=load" /> </uix:breadCrumbs> </uix:location> <uix:pageStatus> <uix:flowLayout> <uix:formattedText text="" styleClass="OraInstructionText"/> </uix:flowLayout> </uix:pageStatus> <uix:pageButtons> <uix:pageButtonBar> <uix:contents> <uix:switcher defaultCase="false" childNameBinding="editing@policyBean@servletRequest"> <uix:case name="true"> <uix:submitButton shortDescBinding="REVERT@olsMsgs" textBinding="REVERT@olsMsgs" name="event" value="revert"/> </uix:case> <uix:case name="false"> <uix:submitButton shortDescBinding="CANCEL@olsMsgs" textBinding="CANCEL@olsMsgs" name="event" value="cancel"/> </uix:case> </uix:switcher> <uix:switcher defaultCase="false" childNameBinding="editing@policyBean@servletRequest"> <uix:case name="true"> <uix:submitButton shortDescBinding="APPLY@olsMsgs" textBinding="APPLY@olsMsgs" name="event" value="apply"/> </uix:case> <uix:case name="false"> <uix:submitButton shortDescBinding="OK@olsMsgs" textBinding="OK@olsMsgs" name="event" value="ok"/> </uix:case> </uix:switcher> </uix:contents> </uix:pageButtonBar> </uix:pageButtons> </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