Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\dv\dvPolicyChanges.jsp
<%@ include file="/sdk/oemTop.jspf"%> <%@ 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"%> <uix:renderingContext id="renderingContext"> <uix:bundle name="sdkMessageBundle" class="oracle.sysman.emSDK.eml.SDKUIMsg"/> <uix:bundle name="dbMessageBundle" class="oracle.sysman.db.rsc.inst.DBMsg"/> <uix:bundle name="dvMsgs" class="oracle.sysman.db.rsc.sec.dv.DVMsg"/> <oem:setURLEncoder id="renderingContext"/> <uix:document> <%@ include file="/oemTitle.jspf"%> <uix:body > <script> function disableDAYSorHRS(){ var selValue; for(i =0; i < document.forms[0].searchChoice.length; i++ ){ if(document.forms[0].searchChoice[i].checked){ selValue = document.forms[0].searchChoice[i].value; } } if(selValue == 'hrs'){ disableDaysFields(); }else if(selValue == 'days'){ disableHrsFields(); } } function disableDaysFields(){ document.forms[0].pastHrs.disabled=false; document.forms[0].fromDate.disabled=true; document.forms[0].fromHour.disabled=true; document.forms[0].fromMinute.disabled=true; document.forms[0].fromAmPm[0].disabled=true; document.forms[0].fromAmPm[1].disabled=true; document.forms[0].toDate.disabled=true; document.forms[0].toHour.disabled=true; document.forms[0].toMinute.disabled=true; document.forms[0].toAmPm[0].disabled=true; document.forms[0].toAmPm[1].disabled=true; } function disableHrsFields(){ document.forms[0].pastHrs.disabled=true; document.forms[0].fromDate.disabled=false; document.forms[0].fromHour.disabled=false; document.forms[0].fromMinute.disabled=false; document.forms[0].fromAmPm[0].disabled=false; document.forms[0].fromAmPm[1].disabled=false; document.forms[0].toDate.disabled=false; document.forms[0].toHour.disabled=false; document.forms[0].toMinute.disabled=false; document.forms[0].toAmPm[0].disabled=false; document.forms[0].toAmPm[1].disabled=false; } function LaunchDVA(dvaURL){ if(dvaURL != "" ){ window.open(dvaURL,'dvaWindow'); } } </script> <db:form name="dvVoliationsForm" method="POST" destination="/console/database/security/dv/DVPolicyChanges" copyParams="target,type"> <uix:formValue name="pageName" value="/database/security/dv/dvPolicyChanges"/> <uix:contents> <uix:pageLayout titleBinding="POLICY_CHANGES_REPORT_HEADER@dvMsgs"> <%@ include file="/database/global.jspf"%> <uix:messages> <oem:messageBox messageType="error" errorTableBinding="errors@servletRequest" titleTextKey="titleText" mainTextKey="mainText"/> </uix:messages> <uix:flowLayout> <uix:tableLayout width="100%"> <uix:rowLayout> <uix:cellFormat hAlign="right" > <uix:flowLayout> <uix:styledText styleClass="OraTipText" textBinding="PAGE_REFRESHED_TIME@sdkMessageBundle"/> <uix:spacer width="5" /> <uix:styledText styleClass="OraTipLabel" textBinding="refreshTime@servletRequest"/> <uix:spacer width="10" /> </uix:flowLayout> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:flowLayout> <uix:contents> <uix:spacer height="10" width="10"/> <uix:tableLayout width="100%"> <uix:rowLayout hAlign="left" width="100%"> <uix:cellFormat hAlign="left"> <uix:labeledFieldLayout labelWidth="30%" fieldWidth="70%" width="20%" columns="2"> <uix:messageRadioButton name="searchChoice" value="hrs" selectedBinding="hrsSel@defaultBean@servletRequest" /> <uix:messageTextInput name="pastHrs" promptBinding="VIOLATION_REPORT_LAST@dvMsgs" columns="5" textBinding="pastHrs@defaultBean@servletRequest" tipBinding="VIOLATIONS_REPORT_HRS_TEXT@dvMsgs" shortDescBinding="REPORT_SHORT_DESC_HRS@dvMsgs"> </uix:messageTextInput> </uix:labeledFieldLayout> </uix:cellFormat> <%--<uix:cellFormat hAlign="right"> <uix:messageChoice name="maxDisplayableRows" prompt="Maximum Results Size" selectedValueBinding="maxDisplayableRowsStr@defaultBean@servletRequest"> <uix:contents> <uix:option text="500" value="500"/> <uix:option text="1000" value="1000"/> <uix:option text="5000" value="5000"/> </uix:contents> </uix:messageChoice> </uix:cellFormat>--%> </uix:rowLayout> <uix:rowLayout hAlign="left" width="100%"> <uix:cellFormat columnSpan="2"> <uix:spacer height="10" width="10"/> <uix:labeledFieldLayout labelWidth="30%" fieldWidth="70%" width="20%" columns="8"> <uix:contents> <uix:messageRadioButton name="searchChoice" value="days" selectedBinding="daysSel@defaultBean@servletRequest" /> <uix:messageDateField columns="15" name="fromDate" promptBinding="FROM_DATE_PROMPT_TEXT@dvMsgs" valueBinding="fromDate@defaultBean@servletRequest" tipBinding="dateFormat@defaultBean@servletRequest" shortDescBinding="REPORT_SHORT_DESC_FROM_DATE@dvMsgs"> <uix:onSubmitValidater> <uix:date dateStyle="medium"/> </uix:onSubmitValidater> </uix:messageDateField> <uix:tableLayout> <uix:contents> <uix:rowLayout> <uix:contents> <%--<uix:cellFormat vAlign="top"> <uix:contents> <uix:messagePrompt prompt="Time "/> </uix:contents> </uix:cellFormat>--%> <uix:cellFormat> <uix:contents> <uix:rowLayout> <uix:contents> <uix:cellFormat vAlign="top" wrappingDisabled="true"> <uix:contents> <%--<uix:messageTextInput name="fromHour" columns="2" maximumLength="2" vAlign="top" textBinding="fromHour@defaultBean@servletRequest" shortDesc="Hours"> <uix:contents> <uix:onSubmitValidater> <uix:contents> <uix:regExp pattern="[0-9]+"/> </uix:contents> </uix:onSubmitValidater> </uix:contents> </uix:messageTextInput>--%> <uix:messageChoice name="fromHour" selectedValueBinding="fromHour@defaultBean@servletRequest" shortDescBinding="REPORT_SHORT_DESC_HRS@dvMsgs" promptBinding="REPORT_PROMPT_TIME@dvMsgs"> <uix:contents> <% for (int i=1;i<13;i++){ String str = Integer.toString(i); %> <uix:option text='<%=str%>' value='<%=str%>'/> <%}%> </uix:contents> </uix:messageChoice> </uix:contents> </uix:cellFormat> <uix:cellFormat vAlign="top"> <uix:contents> <uix:rowLayout vAlign="top"> <uix:contents> <uix:cellFormat width="4%" hAlign="center" vAlign="top" wrappingDisabled="true"> <uix:contents> <uix:spacer height="2"/> <uix:styledText text=":"/> <uix:spacer height="2"/> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:cellFormat> <uix:cellFormat width="96%" vAlign="top" wrappingDisabled="true"> <uix:contents> <uix:rowLayout vAlign="top"> <uix:contents> <uix:cellFormat width="30%" hAlign="right" vAlign="top" wrappingDisabled="true"> <uix:contents> <%--<uix:messageTextInput name="fromMinute" columns="2" maximumLength="2" vAlign="top" textBinding="fromMinute@defaultBean@servletRequest" shortDesc="Minutes"> <uix:contents> <uix:onSubmitValidater> <uix:contents> <uix:regExp pattern="[0-9]+"/> </uix:contents> </uix:onSubmitValidater> </uix:contents> </uix:messageTextInput>--%> <uix:messageChoice name="fromMinute" selectedValueBinding="fromMinute@defaultBean@servletRequest" shortDescBinding="REPORT_SHORT_DESC_MINS@dvMsgs"> <uix:contents> <% for (int j=0;j<60;j++){ String str = Integer.toString(j); %> <uix:option text='<%=str%>' value='<%=str%>'/> <%}%> </uix:contents> </uix:messageChoice> </uix:contents> </uix:cellFormat> <uix:spacer height="5"/> <uix:cellFormat width="70%" vAlign="top"> <uix:contents> <%--<uix:radioButton name="fromAmPm" value="0" text="AM" selectedValueBinding="fromAmPm@defaultBean@servletRequest"/>--%> <uix:messageChoice name="fromAmPm" selectedValueBinding="fromAmPm@defaultBean@servletRequest" shortDescBinding="REPORT_SHORT_AMPM@dvMsgs"> <uix:contents> <uix:option textBinding="REPORT_TEXT_AM@dvMsgs" value="0"/> <uix:option textBinding="REPORT_TEXT_PM@dvMsgs" value="1"/> </uix:contents> </uix:messageChoice> </uix:contents> </uix:cellFormat> <%--<uix:cellFormat width="70%" vAlign="top"> <uix:contents> <uix:radioButton name="fromAmPm" value="1" text="PM" selectedValueBinding="fromAmPm@defaultBean@servletRequest"/> </uix:contents> </uix:cellFormat>--%> </uix:contents> </uix:rowLayout> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:tableLayout> <uix:messageDateField columns="15" name="toDate" promptBinding="TO_DATE_PROMPT_TEXT@dvMsgs" valueBinding="toDate@defaultBean@servletRequest" tipBinding="dateFormat@defaultBean@servletRequest" shortDescBinding="REPORT_SHORT_DESC_TO_DATE@dvMsgs"> <uix:onSubmitValidater> <uix:date dateStyle="medium"/> </uix:onSubmitValidater> </uix:messageDateField> <uix:tableLayout> <uix:contents> <uix:rowLayout> <uix:contents> <%-- <uix:cellFormat vAlign="top"> <uix:contents> <uix:messagePrompt prompt="Time "/> </uix:contents> </uix:cellFormat>--%> <uix:cellFormat> <uix:contents> <uix:rowLayout> <uix:contents> <uix:cellFormat vAlign="top" wrappingDisabled="true"> <uix:contents> <%--<uix:messageTextInput name="toHour" columns="2" maximumLength="2" vAlign="top" textBinding="toHour@defaultBean@servletRequest" shortDesc="Hours"> <uix:contents> <uix:onSubmitValidater> <uix:contents> <uix:regExp pattern="[0-9]+"/> </uix:contents> </uix:onSubmitValidater> </uix:contents> </uix:messageTextInput>--%> <uix:messageChoice name="toHour" selectedValueBinding="toHour@defaultBean@servletRequest" shortDescBinding="REPORT_SHORT_DESC_HRS@dvMsgs" promptBinding="REPORT_PROMPT_TIME@dvMsgs"> <uix:contents> <% for (int k=1;k<13;k++){ String str = Integer.toString(k); %> <uix:option text='<%=str%>' value='<%=str%>'/> <%}%> </uix:contents> </uix:messageChoice> </uix:contents> </uix:cellFormat> <uix:cellFormat vAlign="top"> <uix:contents> <uix:rowLayout vAlign="top"> <uix:contents> <uix:cellFormat width="4%" hAlign="center" vAlign="top" wrappingDisabled="true"> <uix:contents> <uix:spacer height="2"/> <uix:styledText text=":"/> <uix:spacer height="2"/> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:cellFormat> <uix:cellFormat width="96%" vAlign="top" wrappingDisabled="true"> <uix:contents> <uix:rowLayout vAlign="top"> <uix:contents> <uix:cellFormat width="30%" hAlign="right" vAlign="top" wrappingDisabled="true"> <uix:contents> <%--<uix:messageTextInput name="toMinute" columns="2" maximumLength="2" vAlign="top" textBinding="toMinute@defaultBean@servletRequest" shortDesc="Minutes"> <uix:contents> <uix:onSubmitValidater> <uix:contents> <uix:regExp pattern="[0-9]+"/> </uix:contents> </uix:onSubmitValidater> </uix:contents> </uix:messageTextInput>--%> <uix:messageChoice name="toMinute" selectedValueBinding="toMinute@defaultBean@servletRequest" shortDescBinding="REPORT_SHORT_DESC_MINS@dvMsgs"> <uix:contents> <% for (int l=0;l<60;l++){ String str = Integer.toString(l); %> <uix:option text='<%=str%>' value='<%=str%>'/> <%}%> </uix:contents> </uix:messageChoice> </uix:contents> </uix:cellFormat> <uix:spacer height="5"/> <uix:cellFormat width="70%" vAlign="top"> <uix:contents> <%--<uix:radioButton name="toAmPm" value="0" text="AM" selectedValueBinding="toAmPm@defaultBean@servletRequest"/>--%> <uix:messageChoice name="toAmPm" selectedValueBinding="toAmPm@defaultBean@servletRequest" shortDescBinding="REPORT_SHORT_AMPM@dvMsgs"> <uix:contents> <uix:option textBinding="REPORT_TEXT_AM@dvMsgs" value="0"/> <uix:option textBinding="REPORT_TEXT_PM@dvMsgs" value="1"/> </uix:contents> </uix:messageChoice> </uix:contents> </uix:cellFormat> <%--<uix:cellFormat width="70%" vAlign="top"> <uix:contents> <uix:radioButton name="toAmPm" value="1" text="PM" selectedValueBinding="toAmPm@defaultBean@servletRequest"/> </uix:contents> </uix:cellFormat>--%> </uix:contents> </uix:rowLayout> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:cellFormat> </uix:contents> </uix:rowLayout> </uix:contents> </uix:tableLayout> </uix:contents> </uix:labeledFieldLayout> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout hAlign="left" width="100%"> <uix:cellFormat> <uix:spacer height="10" width="10"/> <uix:labeledFieldLayout labelWidth="30%" fieldWidth="70%" width="20%" columns="2"> <uix:contents> <uix:messageTextInput columns="20" promptBinding="POLICY_CHANGES_COLUMN_HEADER_DB_USER_NAME@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_DB_USER_NAME@dvMsgs" name="dbuserName" textBinding="dbuserName@defaultBean@servletRequest"/> <uix:messageTextInput columns="20" promptBinding="POLICY_CHANGES_COLUMN_HEADER_CLIENT_HOST@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_CLIENT_HOST@dvMsgs" name="userHost" textBinding="userHost@defaultBean@servletRequest"/> <uix:messageTextInput columns="20" promptBinding="POLICY_CHANGES_COLUMN_HEADER_ACTION_NAME@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_ACTION_NAME@dvMsgs" name="actionName" textBinding="actionName@defaultBean@servletRequest"/> <uix:messageChoice name="maxDisplayableRows" promptBinding="REPORT_SHORT_DESC_MAX_RESULTS_SIZE@dvMsgs" selectedValueBinding="maxDisplayableRowsStr@defaultBean@servletRequest" shortDescBinding="REPORT_SHORT_DESC_MAX_RESULTS_SIZE@dvMsgs"> <uix:contents> <uix:option text="500" value="500"/> <uix:option text="1000" value="1000"/> <uix:option text="5000" value="5000"/> </uix:contents> <uix:end> <uix:submitButton textBinding="REPORT_SHORT_DESC_GO_BUTTON@dvMsgs" name="event" value="searchPolicyChanges" shortDescBinding="REPORT_SHORT_DESC_GO_BUTTON@dvMsgs"/> </uix:end> </uix:messageChoice> </uix:contents> </uix:labeledFieldLayout> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:spacer height="10" width="10"/> <uix:tableLayout width="100%"> <uix:rowLayout hAlign="center" width="100%"> <uix:cellFormat> <uix:tableLayout cellPadding="2" cellSpacing="2" hAlign="center" width="100%"> <uix:rowLayout width="100%" hAlign="left"> <%--<uix:formattedText styleUsage="instruction" textBinding="resultsCriteria@defaultBean@servletRequest"/>--%> </uix:rowLayout> <uix:rowLayout width="100%" hAlign="center"> <uix:cellFormat hAlign="center" width="100%"> <uix:dataScope currentDataBinding="POLICY_CHANGES_SUMMARY@servletRequest"> <uix:table width="100%" formSubmitted="true" id="POLICY_CHANGES_TABLE" tableDataBinding="<%= UIXDataSource.S_ROW_DATA_ATTR %>" valueBinding="<%= UIXDataSource.S_START_INDEX_ATTR %>" maxValueBinding="<%= UIXDataSource.S_NUM_ROWS_ATTR %>" blockSizeBinding="<%= UIXDataSource.S_BLOCK_SIZE_ATTR %>" summaryBinding="POLICY_CHANGES_REPORT_HEADER@dvMsgs" shortDescBinding="POLICY_CHANGES_REPORT_HEADER@dvMsgs" alternateTextBinding="REPORT_NO_ITEMS_FOUND@dvMsgs"> <uix:column> <uix:columnHeader> <uix:sortableHeader textBinding="POLICY_CHANGES_COLUMN_HEADER_DATETIME@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_DATETIME@dvMsgs" sortableBinding="polChangesDateSortStatus"/> </uix:columnHeader> <uix:styledText textBinding="TIMESTAMP_INDEX"/> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader textBinding="POLICY_CHANGES_COLUMN_HEADER_DB_USER_NAME@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_DB_USER_NAME@dvMsgs" sortableBinding="polChangesUsernameSortStatus"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat"/> <uix:styledText textBinding="USERNAME_INDEX"/> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader textBinding="POLICY_CHANGES_COLUMN_HEADER_CLIENT_HOST@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_CLIENT_HOST@dvMsgs" sortableBinding="polChangesClientHostSortStatus"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat"/> <uix:styledText textBinding="USERHOST_INDEX"/> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader textBinding="POLICY_CHANGES_COLUMN_HEADER_CLIENT_HOST_USER_NAME@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_CLIENT_HOST_USER_NAME@dvMsgs" sortableBinding="polChangesHostUserNameStatus"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat"/> <uix:styledText textBinding="OS_USERNAME_INDEX"/> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader textBinding="POLICY_CHANGES_COLUMN_HEADER_ACTION_NAME@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_ACTION_NAME@dvMsgs" sortableBinding="polChangesActionNameStatus"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat"/> <uix:styledText textBinding="ACTION_NAME_INDEX"/> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader textBinding="POLICY_CHANGES_COLUMN_HEADER_OBJ_NAME@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_OBJ_NAME@dvMsgs" sortableBinding="polChangesObjectNameStatus"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat"/> <uix:styledText textBinding="OBJ_NAME_INDEX"/> </uix:column> <uix:column> <uix:columnHeader> <uix:sortableHeader textBinding="POLICY_CHANGES_COLUMN_HEADER_OWNER@dvMsgs" shortDescBinding="POLICY_CHANGES_COLUMN_HEADER_OWNER@dvMsgs" sortableBinding="polChangesOwnerStatus"/> </uix:columnHeader> <uix:columnFormat columnDataFormat="textFormat"/> <uix:styledText textBinding="OWNER_INDEX"/> </uix:column> </uix:table> </uix:dataScope> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <uix:header textBinding="RELATED_LINKS@DBMsgBundle@servletRequest"> <uix:tableLayout width="100%" cellSpacing="2" > <uix:rowLayout> <% String dvaURLNotAvailable = (String)request.getAttribute("isDVAUrlNotAvailable"); String dvaURLInRepos = (String)request.getAttribute("DVA_URL_FOR_RELATED_LINK"); String dvaURL = (String)request.getAttribute("DVA_URL"); String finalRealmURL = null; String finalcmdRuleURL = null; if(dvaURLNotAvailable != null && dvaURLNotAvailable.equals("false")){ //use realmURL with launchDVA function ad dvaURL is available finalRealmURL = dvaURLInRepos + "/mac/admin/realm"; finalcmdRuleURL = dvaURLInRepos + "/mac/admin/command"; finalRealmURL = "LaunchDVA('"+finalRealmURL+"')"; finalcmdRuleURL = "LaunchDVA('"+finalcmdRuleURL+"')"; }else{ //use dva_url value to go to launch DVA page as dvaURL is not available finalRealmURL = dvaURL; finalcmdRuleURL = dvaURL; } %> <%if(dvaURLNotAvailable != null && dvaURLNotAvailable.equals("true")){%> <uix:cellFormat> <db:link textBinding="REALMS@dvMsgs" destination="<%=finalRealmURL%>" copyParams="target,type" /> </uix:cellFormat> <uix:cellFormat> <db:link textBinding="COMMAND_RULES@dvMsgs" destination="<%=finalcmdRuleURL%>" copyParams="target,type"/> </uix:cellFormat> <%}else{%> <uix:cellFormat> <uix:link textBinding="REALMS@dvMsgs" onClick="<%=finalRealmURL%>" /> </uix:cellFormat> <uix:cellFormat> <uix:link textBinding="COMMAND_RULES@dvMsgs" onClick="<%=finalcmdRuleURL%>" /> </uix:cellFormat> <%}%> <uix:cellFormat> <db:link textBinding="VIEW_TRANSACTION@DBMsgBundle@servletRequest" destination="/console/database/lm/logminer?event=doLoad" copyParams="target,type"/> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:header> </uix:contents> <uix:pageStatus> <uix:formattedText styleUsage="instruction" textBinding="POLICY_CHANGES_REPORT_DESC@dvMsgs"/> </uix:pageStatus> <uix:pageButtons> <uix:pageButtonBar> <uix:contents> <uix:submitButton disabled="false" textBinding="OK@sdkMessageBundle" shortDescBinding="OK@sdkMessageBundle" name="event" value="dvHomePage"/> </uix:contents> </uix:pageButtonBar> </uix:pageButtons> </uix:pageLayout> </uix:contents> </db:form> </uix:body> </uix:document> </uix:renderingContext>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de