Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\ols\appl\applySchema.jsp
<%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag/db" prefix="db" %> <%@ page import="oracle.sysman.emo.util.UIXDataSource" %> <%@ page import="oracle.sysman.db.rsc.sec.ols.PolicyMsgID" %> <%@ include file="/oemNoscript.jspf" %> <script type="text/javascript"> function submitApply() { document.applSchema.action = document.applSchema.action + '&event=apply'; document.applSchema.submit(); } function enableDisableCheckBoxes() { //alert( document.policyForm.enforcementOption[0].checked); //alert( document.policyForm.enforcementOption[1].checked); if(document.applSchema.enforcementOption[0].checked || document.applSchema.enforcementOption[1].checked) { document.applSchema.readControl.checked = false; document.applSchema.insertControl.checked = false; document.applSchema.updateControl.checked = false; document.applSchema.deleteControl.checked = false; document.applSchema.labelDefault.checked = false; document.applSchema.labelUpdate.checked = false; document.applSchema.checkControl.checked = false; document.applSchema.readControl.disabled = true; document.applSchema.insertControl.disabled = true; document.applSchema.updateControl.disabled = true; document.applSchema.deleteControl.disabled = true; document.applSchema.labelDefault.disabled = true; document.applSchema.labelUpdate.disabled = true; document.applSchema.checkControl.disabled = true; }else if(document.applSchema.enforcementOption[2].checked){ document.applSchema.readControl.disabled = false; document.applSchema.insertControl.disabled = false; document.applSchema.updateControl.disabled = false; document.applSchema.deleteControl.disabled = false; document.applSchema.labelDefault.disabled = false; document.applSchema.labelUpdate.disabled = false; document.applSchema.checkControl.disabled = false; } } </script> <uix:renderingContext id="renderingContext"> <oem:setURLEncoder id="renderingContext"/> <db:script src="/database/LOV.js"/> <uix:bundle name="dbMsgs" class="oracle.sysman.db.rsc.DBObjectMsg"/> <uix:bundle name="policyMsgs" class="oracle.sysman.db.rsc.sec.ols.PolicyMsg"/> <uix:bundle name="policyApplMsgs" class="oracle.sysman.db.rsc.sec.ols.PolicyApplMsg"/> <uix:document> <uix:metaContainer> <uix:head titleBinding="title@servletRequest"/> </uix:metaContainer> <script language="JavaScript" > <%@ include file="/database/LOV.js"%> </script> <uix:body> <db:form name="applSchema" method="post" destination="/console/database/security/ols/policy/appl" copyParams="target,type,otype,objectType,applObjType,policyName,oname,sname"> <uix:formValue name="pageName" value="/database/security/ols/appl/applySchema"/> <uix:formValue name="cancelURL" valueBinding="cancelURL@servletRequest"/> <uix:formValue name="policyName" valueBinding="policyName@servletRequest"/> <uix:pageLayout titleBinding="header@servletRequest"> <%@ include file="/database/global.jspf" %> <oem:messageBox messageType="info" errorTableBinding="info@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <oem:messageBox messageType="error" errorTableBinding="errors@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> <!-- Main Contents Starts--> <uix:contents> <uix:spacer width="10" height="10"/> <uix:tableLayout width="50%" hAlign="start"> <uix:contents> <uix:labeledFieldLayout width="70%"> <uix:contents> <uix:messageLovField shortDescBinding="SCHEMA@policyApplMsgs" searchDescBinding="SCHEMA@policyApplMsgs" name="schemaName" promptBinding="SCHEMA@policyApplMsgs" textBinding="schemaName@applMainBean@servletRequest" required="uiOnly" disabledBinding="editing@applMainBean@servletRequest" onClick="startLov('schemaName', 'ListSchema')" /> <uix:messageCheckBox shortDescBinding="HIDE_COLUMN@policyApplMsgs" textBinding="HIDE_COLUMN@policyApplMsgs" name="hideColumn" messageBinding="HIDE_COLUMN_MSG@policyApplMsgs" checkedBinding="hideColumn@applMainBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="ENABLED@policyApplMsgs" textBinding="ENABLED@policyApplMsgs" name="enabled" checkedBinding="enabled@applMainBean@servletRequest"/> </uix:contents> </uix:labeledFieldLayout> </uix:contents> </uix:tableLayout> <uix:header shortDescBinding="ENFORCEMENT_OPTIONS_HEADER@policyApplMsgs" textBinding="ENFORCEMENT_OPTIONS_HEADER@policyApplMsgs" > <uix:contents> <uix:radioSet name="enforcementOption" onClick='enableDisableCheckBoxes()' > <uix:contents> <uix:option value="noControl" shortDescBinding="NO_CONTROL@policyApplMsgs" textBinding="NO_CONTROL@policyApplMsgs" selectedBinding="noControl@applMainBean@servletRequest" /> <uix:option value="default" shortDescBinding="DEFAULT_ENFORCEMENT@policyApplMsgs" textBinding="DEFAULT_ENFORCEMENT@policyApplMsgs" selectedBinding="default@applMainBean@servletRequest" /> <uix:option value="apply" shortDescBinding="APPLY_ENFORCEMENT@policyApplMsgs" textBinding="APPLY_ENFORCEMENT@policyApplMsgs" selectedBinding="apply@applMainBean@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@policyApplMsgs" textBinding="READ_CONTROL@policyApplMsgs" name="readControl" checkedBinding="readControl@applMainBean@servletRequest" disabledBinding="disableCheckbox@applMainBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="INSERT_CONTROL@policyApplMsgs" textBinding="INSERT_CONTROL@policyApplMsgs" name="insertControl" checkedBinding="insertControl@applMainBean@servletRequest" disabledBinding="disableCheckbox@applMainBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="UPDATE_CONTROL@policyApplMsgs" textBinding="UPDATE_CONTROL@policyApplMsgs" name="updateControl" checkedBinding="updateControl@applMainBean@servletRequest" disabledBinding="disableCheckbox@applMainBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="DELETE_CONTROL@policyApplMsgs" textBinding="DELETE_CONTROL@policyApplMsgs" name="deleteControl" checkedBinding="deleteControl@applMainBean@servletRequest" disabledBinding="disableCheckbox@applMainBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="LABEL_DEFAULT@policyApplMsgs" textBinding="LABEL_DEFAULT@policyApplMsgs" name="labelDefault" checkedBinding="labelDefault@applMainBean@servletRequest" disabledBinding="disableCheckbox@applMainBean@servletRequest" /> <uix:messageCheckBox shortDescBinding="LABEL_UPDATE@policyApplMsgs" textBinding="LABEL_UPDATE@policyApplMsgs" name="labelUpdate" checkedBinding="labelUpdate@applMainBean@servletRequest" disabledBinding="disableCheckbox@applMainBean@servletRequest" tipBinding="LABEL_UPDATE_TIP@policyApplMsgs" /> <uix:messageCheckBox shortDescBinding="CHECK_CONTROL@policyApplMsgs" textBinding="CHECK_CONTROL@policyApplMsgs" name="checkControl" checkedBinding="checkControl@applMainBean@servletRequest" disabledBinding="disableCheckbox@applMainBean@servletRequest" tipBinding="CHECK_CONTROL_TIP@policyApplMsgs" /> </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="10"/> </uix:contents> <!-- Main Contents Ends--> <!-- navigation --> <uix:pageButtons> <uix:pageButtonBar> <uix:contents> <uix:submitButton shortDescBinding="SHOWSQL@dbMsgs" textBinding="SHOWSQL@dbMsgs" name="event" value="showSql"/> <uix:switcher defaultCase="false" childNameBinding="editing@applMainBean@servletRequest"> <uix:case name="true"> <uix:submitButton shortDescBinding="REVERT@dbMsgs" textBinding="REVERT@dbMsgs" name="event" value="revert"/> </uix:case> <uix:case name="false"> <uix:submitButton shortDescBinding="CANCEL@dbMsgs" textBinding="CANCEL@dbMsgs" name="event" value="cancel"/> </uix:case> </uix:switcher> <uix:switcher defaultCase="false" childNameBinding="editing@applMainBean@servletRequest"> <uix:case name="true"> <uix:submitButton shortDescBinding="APPLY@dbMsgs" textBinding="APPLY@dbMsgs" name="event" value="applyEdit"/> </uix:case> <uix:case name="false"> <uix:submitButton shortDescBinding="OK@dbMsgs" textBinding="OK@dbMsgs" name="event" value="apply" onClick="submitApply()" /> </uix:case> </uix:switcher> </uix:contents> </uix:pageButtonBar> </uix:pageButtons> <uix:pageStatus> <uix:formattedText textBinding="SCHEMA_PAGE_STATUS@policyApplMsgs" styleClass="OraInstructionText"/> </uix:pageStatus> </uix:pageLayout> </db:form> </uix:body> </uix:document> </uix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de