Edit D:\app\Administrator\product\11.2.0\dbhome_1\oc4j\j2ee\oc4j_applications\applications\em\em\database\security\dv\dvChartIncl.jsp
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag/db" prefix="db" %> <%@ taglib uri="http://xmlns.oracle.com/oem/jsp/tag" prefix="oem" %> <%@ page import="oracle.sysman.db.adm.ParameterNames"%> <% String sUrl = "/console/database/security/dv/DV?event="; String sTargetName = request.getParameter(ParameterNames.TARGET); String stargetType = request.getParameter(ParameterNames.TARGET_TYPE); String stt = "&"+ParameterNames.TARGET+"="+sTargetName+"&"+ParameterNames.TARGET_TYPE+"="+stargetType; String sFinalUrl=request.getContextPath()+sUrl+"doLoad"+stt; String sFinalUrl1=request.getContextPath()+sUrl+"violationsGo"+stt; String sFinalUrl2=request.getContextPath()+sUrl+"violatorsGo"+stt; String sJS="please('"+sFinalUrl+"')"; String sJS4="please('"+sFinalUrl+"')"; String sJS1="please('"+sFinalUrl1+"')"; String sJS2="please('"+sFinalUrl2+"')"; String sIsPolicyChangeCritical = request.getParameter("isPolicyChangeCritical"); if(sIsPolicyChangeCritical == null){ sIsPolicyChangeCritical = (String)request.getAttribute("isPolicyChangeCritical"); } if(sIsPolicyChangeCritical == null){ sIsPolicyChangeCritical = "false"; } %> <uix:header textBinding="ATTEMPTED_VIOLATIONS@dvMsgs" shortDescBinding="ATTEMPTED_VIOLATIONS@dvMsgs" > <uix:flowLayout> <uix:tableLayout width="100%"> <uix:rowLayout> <uix:cellFormat hAlign="left" vAlign="top" width="50%" > <uix:spacer width="20"/> <%-- <uix:styledText styleClass="OraPromptText" textBinding="VIOLATIONS_COUNT@dvMsgs"/> <uix:spacer width="8"/> <uix:link shortDescBinding="violationsHeader@servletRequest" textBinding="violationsInLast@dvHomeBean@servletRequest" destinationBinding="violationsInLastDest@servletRequest"/> <uix:spacer width="4"/> --%> <%-- <uix:styledText styleClass="OraTipText" textBinding="violationsInLast@servletRequest"/> --%> <%-- <uix:spacer width="20"/> <uix:styledText styleClass="OraPromptText" textBinding="policyChangesInLast@servletRequest"/> <uix:spacer width="8"/> <uix:link shortDescBinding="policyChangeToolTip@servletRequest" textBinding="policyChangesInLast@dvHomeBean@servletRequest" destinationBinding="policyChangesInLastDest@servletRequest"/> <% if(sIsPolicyChangeCritical.equals("true")){ %> --%> <%-- <uix:image source="/em/images/criticalind_status.gif"/> --%> <%-- <% }else{ %> --%> <%-- <uix:image source="/em/images/ok.gif"/> --%> <%-- <% } %> --%> </uix:cellFormat> <uix:cellFormat hAlign="right" width="50%" vAlign="top" > <uix:flowLayout> <uix:button textBinding="viewMsg@dvHomeBean@servletRequest" shortDescBinding="viewMsg@dvHomeBean@servletRequest" destinationBinding="viewMsgLink@dvHomeBean@servletRequest" /> <%-- <uix:link textBinding="viewMsg@dvHomeBean@servletRequest" destinationBinding="viewMsgLink@dvHomeBean@servletRequest"/> --%> <uix:spacer width="15" /> <uix:styledText styleClass="OraFieldText" textBinding="VIEW_DATA@DBMsgBundle@servletRequest" labeledNodeId="ViewLabel" /> <uix:choice name="refreshHome" id="ViewLabel" shortDescBinding= '<%= request.getAttribute("refreshHomeSelected") + "@dvMsgs" %>' onChangeBinding="doLoadUrl@servletRequest" selectedValueBinding="refreshHomeSelected@servletRequest"> <uix:option textBinding="LAST1HR@dvMsgs" shortDescBinding="LAST1HR@dvMsgs" value="LAST1HR"/> <uix:option textBinding="LAST24HRS@dvMsgs" shortDescBinding="LAST24HRS@dvMsgs" value="LAST24HRS"/> <uix:option textBinding="LAST7DAYS@dvMsgs" shortDescBinding="LAST7DAYS@dvMsgs" value="LAST7DAYS"/> <uix:option textBinding="LAST31DAYS@dvMsgs" shortDescBinding="LAST31DAYS@dvMsgs" value="LAST31DAYS"/> </uix:choice> </uix:flowLayout> </uix:cellFormat> </uix:rowLayout> <%-- <uix:rowLayout> <uix:cellFormat vAlign="top" width="50%" > <uix:spacer width="8"/> </uix:cellFormat> <uix:cellFormat hAlign="right" width="50%"> <uix:spacer width="8"/> </uix:cellFormat> </uix:rowLayout> --%> <!-- Violations in last 24 hours --> <%-- <uix:rowLayout> <uix:cellFormat hAlign="left" vAlign="top" width="50%" > </uix:cellFormat> <uix:cellFormat hAlign="right" width="50%"> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat vAlign="top" width="50%" > <uix:spacer width="8"/> </uix:cellFormat> <uix:cellFormat hAlign="right" width="50%"> <uix:spacer width="8"/> </uix:cellFormat> </uix:rowLayout> --%> <uix:rowLayout> <uix:cellFormat vAlign="top" width="50%" > <uix:header textBinding="TOP5VIOLATIONS@dvMsgs" shortDescBinding="TOP5VIOLATIONS@dvMsgs"> <uix:stackLayout> <uix:tableLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" vAlign="right"> <uix:flowLayout> <uix:styledText styleClass="OraFieldText" textBinding="TYPE@dvMsgs" labeledNodeId="violationType" /> <uix:spacer width="5" /> <uix:choice name="violationType" id="violationType" shortDescBinding= '<%= request.getAttribute("violationTypeSelected") + "@dvMsgs" %>' onChangeBinding="violationsGoUrl@servletRequest" selectedValueBinding="violationTypeSelected@servletRequest"> <uix:option textBinding="REALM@dvMsgs" value="REALM" shortDescBinding="REALM@dvMsgs" /> <uix:option textBinding="COMMAND_RULE@dvMsgs" value="COMMAND_RULE" shortDescBinding="COMMAND_RULE@dvMsgs" /> </uix:choice> </uix:flowLayout> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout hAlign="center" vAlign="center" > <% oracle.sysman.emSDK.chart.SimpleChartDataSource obj1 = (oracle.sysman.emSDK.chart.SimpleChartDataSource) request. getAttribute("pieData1"); if(obj1 != null ){ String strView = request.getParameter("strView"); if(strView == null){ strView = (String)request.getAttribute("strView"); } if(strView == null || strView.equals("0")){ %> <oem:chart chartType="pieChart" titleVisible="false" width="175" height="175" pieValuesInLegend="value" shadowEffect="none" legendPosition="south" pieSlicesFromColumn="false" showSlicePercentLabels="true" hideZeroSlices="false" noDataMessageBinding="altTextViolations@dvHomeBean@servletReques" legendVisible="external" externalLegendOrientation="vertical" shortDescBinding="TOP5VIOLATIONS@dvMsgs" > <uix:contents> <oem:boundChartDataSource chartDataSourceBinding="pieData1@servletRequest" /> <oem:imageMap imageMapItemsBinding="pieImageMap1@servletRequest" /> <oem:chartColumn isKey="true" displayLabel="Item" sourceIndex="0" /> <oem:chartColumn displayLabel="CPU %" sourceIndex="1" itemColor="red" /> </uix:contents> </oem:chart> <% }else{ %> <oem:chart id="pieData1" chartType="timeSeriesChart" width="250" height="250" orientation="vertical" seriesColorsAutomatic="true" seriesSymbolsAutomatic="true" legendPosition="south" shortDescBinding="TOP5VIOLATIONS@dvMsgs" noDataMessageBinding="altTextViolations@dvHomeBean@servletReques" > <uix:contents> <oem:boundChartDataSource chartDataSourceBinding="pieData1@servletRequest" /> <oem:imageMap imageMapDataSourceBinding="violationsChartImageMap@dvHomeBean@servletRequest" /> <oem:chartColumn isKey="true" displayLabel="Country" sourceIndex="0" /> <oem:chartColumn isTimeColumn="true" displayLabel="Time" sourceIndex="1" /> <oem:chartColumn displayLabel="" sourceIndex="2" itemColor="red" /> <%-- <oem:chartColumn displayLabel="" sourceIndex="3" itemColor="blue" /> <oem:chartColumn displayLabel="" sourceIndex="4" itemColor="green" /> --%> </uix:contents> </oem:chart> <%} %> <%}else{%> <uix:tableLayout width="100%"> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> <uix:styledText styleClass="OraInlineInfoText" textBinding="altTextViolations@dvHomeBean@servletRequest"/> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <%} %> </uix:rowLayout> </uix:tableLayout> </uix:stackLayout> </uix:header> </uix:cellFormat> <uix:cellFormat vAlign="top" width="50%" > <uix:header textBinding="TOP5VIOLATORS@dvMsgs" shortDescBinding="TOP5VIOLATORS@dvMsgs" > <uix:stackLayout> <uix:tableLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" vAlign="left" width="100%"> <uix:flowLayout> <uix:styledText styleClass="OraFieldText" textBinding="TYPE@dvMsgs" labeledNodeId="violatorType"/> <uix:spacer width="5" /> <uix:choice name="violatorType" id="violatorType" shortDescBinding= '<%= request.getAttribute("violatorTypeSelected") + "@dvMsgs" %>' onChangeBinding="violatorsGoUrl@servletRequest" selectedValueBinding="violatorTypeSelected@servletRequest"> <uix:option textBinding="USERS@dvMsgs" shortDescBinding="USERS@dvMsgs" value="USERS"/> <uix:option textBinding="MACHINES@dvMsgs" shortDescBinding="MACHINES@dvMsgs" value="MACHINES"/> </uix:choice> </uix:flowLayout> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout hAlign="center" vAlign="center"> <uix:cellFormat hAlign="center" vAlign="center" width="100%"> <% oracle.sysman.emSDK.chart.SimpleChartDataSource obj2 = (oracle.sysman.emSDK.chart.SimpleChartDataSource) request.getAttribute("pieData2"); if(obj2 != null ){ String strView2 = request.getParameter("strView"); if(strView2 == null){ strView2 = (String)request.getAttribute("strView"); } if(strView2 == null || strView2.equals("0")){ %> <oem:chart chartType="pieChart" titleVisible="false" width="175" height="175" pieValuesInLegend="value" shadowEffect="none" legendPosition="south" pieSlicesFromColumn="false" showSlicePercentLabels="true" hideZeroSlices="false" noDataMessageBinding="altTextViolators@dvHomeBean@servletReques" legendVisible="external" externalLegendOrientation="vertical" shortDescBinding="TOP5VIOLATORS@dvMsgs" > <uix:contents> <oem:boundChartDataSource chartDataSourceBinding="pieData2@servletRequest" /> <oem:imageMap imageMapItemsBinding="pieImageMap2@servletRequest" /> <oem:chartColumn isKey="true" displayLabel="Item" sourceIndex="0" /> <oem:chartColumn displayLabel="Availability" sourceIndex="1" itemColor="red" /> </uix:contents> </oem:chart> <% }else{ %> <oem:chart id="pieData2" chartType="timeSeriesChart" width="250" height="250" orientation="vertical" seriesColorsAutomatic="true" seriesSymbolsAutomatic="true" legendPosition="south" noDataMessageBinding="altTextViolators@dvHomeBean@servletReques" shortDescBinding="TOP5VIOLATORS@dvMsgs" > <uix:contents> <oem:boundChartDataSource chartDataSourceBinding="pieData2@servletRequest" /> <oem:imageMap imageMapDataSourceBinding="violatorsChartImageMap@dvHomeBean@servletRequest" /> <oem:chartColumn isKey="true" displayLabel="Country" sourceIndex="0" /> <oem:chartColumn isTimeColumn="true" displayLabel="Time" sourceIndex="1" /> <oem:chartColumn displayLabel="" sourceIndex="2" itemColor="red" /> <%-- <oem:chartColumn displayLabel="" sourceIndex="3" itemColor="blue" /> <oem:chartColumn displayLabel="" sourceIndex="4" itemColor="green" /> --%> </uix:contents> </oem:chart> <% } %> <%}else{%> <uix:tableLayout width="100%"> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> </uix:cellFormat> </uix:rowLayout> <uix:rowLayout> <uix:cellFormat hAlign="left" > <uix:spacer width="5" height="5" /> </uix:cellFormat> <uix:cellFormat hAlign="right" vAlign="top"> <uix:spacer width="5" height="5" /> <uix:styledText styleClass="OraInlineInfoText" textBinding="altTextViolators@dvHomeBean@servletRequest"/> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> <%} %> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:stackLayout> </uix:header> </uix:cellFormat> </uix:rowLayout> </uix:tableLayout> </uix:flowLayout> </uix:header>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de