Edit D:\app\Administrator\product\11.2.0\dbhome_1\j2ee\OC4J_EM\applications\em\em\admin\rep\blackout\blackoutsMain.uix
<page xmlns="http://bali.us.oracle.com/cabo/baja" xmlns:baja="http://bali.us.oracle.com/cabo/baja" xmlns:uix="http://bali.us.oracle.com/cabo/marlin" xmlns:marlin="http://bali.us.oracle.com/cabo/marlin" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:data="http://bali.us.oracle.com/cabo/marlin" xmlns:ui="http://xmlns.oracle.com/uix/ui"> <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin"> <body onLoad="setFocus();"> <contents> <dataScope> <contents> <!-- The script to submit the form when the enter key (13) is hit --> <script> <contents> var isNav = (navigator.appName.indexOf("Netscape") != -1); if (isNav) { document.captureEvents(Event.KEYPRESS); document.onkeypress = getKey; } function getKey(keyStroke) { key = (isNav) ? keyStroke.which : event.keyCode; if(key == "13") { submitForm('BlkMainForm',1,{event:'changeView'}, false); return false; } } function setFocus() { try { var eventName = document.BlkMainForm.eventName.value; if (eventName == "changeViewBy") { document.BlkMainForm.selectViewBy.focus(); } if (eventName == "changeView") { document.BlkMainForm.selectAView.focus(); } if (eventName == "toggleIncludedTargets") { document.BlkMainForm.showIncludedTargets.focus(); } } catch (e){} } </contents> </script> <html:title> <text data:text="pageTitle@blackoutsData"/> </html:title> <html:noScript> <text data:text="NO_JAVASCRIPT_MSG@blackoutBundle"/> </html:noScript> <pageLayout> <mediumAdvertisement> <include baja:node="../../../oemBanner"/> </mediumAdvertisement> <globalButtons> <include baja:node="../../../globalButtonBar"/> </globalButtons> <tabs> <include baja:node="../../../globalTabs"/> </tabs> <pageHeader> <include baja:node="../header"/> </pageHeader> <marlin:start> <include baja:node="../adminSideNav"/> </marlin:start> <location> <include baja:node="../../../breadCrumbs"/> </location> <copyright> <include baja:node="../../../copyright"/> </copyright> <contents> <messageBox data:message="confirmMsg@blackoutsData" rendered="false" data:rendered="showConfirmMsg@blackoutsData" messageType="confirmation"> </messageBox> <header data:text="BLACKOUT_TITLE@adminBundle"> <contents> <form name="BlkMainForm" method="POST" onKeyPress="getKey()"> <contents> <stackLayout> <contents> <styledText styleClass="OraInstructionText" data:text="MAIN_DESC@blackoutBundle"/> <spacer height="10"/> <!-- 2 Cases: errNode - any error retrieving blackouts okNode - query returned ok --> <switcher data:childName="node@blackoutsData"> <case name="errNode"> <inlineMessage data:message="errMsg@blackoutsData" messageType="error"> </inlineMessage> </case> <case name="okNode"> <stackLayout> <contents> <!--Begin Table for Arranging Controls--> <tableLayout width="95%" cellSpacing="3" vAlign="top"> <contents> <rowLayout> <!--Begin Row 1 for View By Dropdown--> <contents> <cellFormat width="10%" hAlign="right"> <contents> <formValue name="eventName" data:value="eventName@blackoutsData"/> </contents> <contents> <styledText data:text="VIEW_BY@blackoutBundle" labeledNodeId="selectViewBy" styleClass="OraPromptText"/> <spacer width="5"/> </contents> </cellFormat> <cellFormat width="90%" hAlign="left"> <contents> <choice name="selectViewBy" id="selectViewBy" selectedValue="active" onChange="submitForm('BlkMainForm',1,{event:'changeViewBy'}, false); return false;" data:selectedValue="selViewBy@blackoutsData"> <contents> <option data:text="BLACKOUT_NAME@blackoutBundle" value="blackout_name"/> <option data:text="TARGETS_BLACKOUT@blackoutBundle" value="targets_blackout"/> </contents> </choice> </contents> </cellFormat> </contents> </rowLayout> <rowLayout> <!--Begin Row 2 for Search Field--> <contents> <cellFormat hAlign="right"> <contents> <styledText data:text="SEARCH@SDKBundle" styleClass="OraPromptText"/> <spacer width="5"/> </contents> </cellFormat> <cellFormat hAlign="left"> <contents> <choice name="selectTargetType" id="searchBlackouts" data:selectedValue="selTargetType@blackoutsData" data:shortDesc="SELECT_TARGET_TYPE@blackoutBundle" data:rendered="isViewByTargets@blackoutsData"> <contents data:childData="typeName@blackoutsData"> <option data:text="available" data:value="availID"/> </contents> </choice> <spacer width="5" data:rendered="isViewByTargets@blackoutsData"/> <ui:textInput name="searchCriteria" id="searchCriteria" data:text="searchCriteria@blackoutsData" data:shortDesc="SEARCH@SDKBundle"/> <spacer width="5" data:rendered="isViewByTargets@blackoutsData"/> <submitButton data:text="GO@SDKBundle" data:shortDesc="GO@SDKBundle" name="event" value="searchBlackoutsByName" data:rendered="isNotViewByTargets@blackoutsData"/> </contents> </cellFormat> </contents> </rowLayout> <rowLayout data:rendered="isViewByTargets@blackoutsData"> <!--Begin Row 3 for Parent Drop Down and Search Field--> <contents> <cellFormat hAlign="right"> <contents> <styledText data:text="PARENT@blackoutBundle" labeledNodeId="searchParent" styleClass="OraPromptText"/> <spacer width="5"/> </contents> </cellFormat> <cellFormat hAlign="left"> <contents> <choice name="selectParentType" id="searchParent" selectedValue="active" data:selectedValue="selParentType@blackoutsData" data:shortDesc="SELECT_PARENT_TYPE@blackoutBundle"> <contents data:childData="parentTypeName@blackoutsData"> <option data:text="available" data:value="availID"/> </contents> </choice> <spacer width="5"/> <ui:textInput name="parentSearchCriteria" id="parentSearchCriteria" data:text="parentSearchCriteria@blackoutsData" data:shortDesc="ENTER_PARENT_NAME@blackoutBundle"/> <spacer width="5"/> <submitButton data:text="GO@SDKBundle" data:shortDesc="GO@SDKBundle" name="event" value="searchBlackoutsByTargets"/> </contents> </cellFormat> </contents> </rowLayout> <rowLayout> <!--Begin Row 4 for View/Show Dropdown--> <contents> <cellFormat hAlign="right"> <contents> <styledText data:text="SHOW@blackoutBundle" labeledNodeId="selectAView" styleClass="OraPromptText"/> <spacer width="5"/> </contents> </cellFormat> <cellFormat hAlign="left"> <contents> <choice name="selectAView" id="selectAView" selectedValue="active" data:selectedValue="selView@blackoutsData" onChange="submitForm('BlkMainForm',1,{event:'changeView'}, false); return false;"> <contents> <option data:text="ACTIVE_JOBS@SDKBundle" value="active"/> <option data:text="FUTURE_JOBS@blackoutBundle" value="future"/> <option data:text="HISTORY_JOBS@SDKBundle" value="history"/> <option data:text="ALL_LABEL@mntrResourceBundle" value="all"/> </contents> </choice> <spacer width="5" data:rendered="isViewByTargets@blackoutsData"/> <checkBox name="showIncludedTargets" id="showIncludedTargets" value="true" data:checked="showIncludedTargets@blackoutsData" data:shortDesc="SHOW_INCLUDED_TARGETS@blackoutBundle" data:rendered="isViewByTargets@blackoutsData" onClick="submitForm('BlkMainForm',1,{event:'toggleIncludedTargets'}, false); return false;"> </checkBox> <spacer width="2" data:rendered="isViewByTargets@blackoutsData"/> <styledText data:text="SHOW_INCLUDED_TARGETS@blackoutBundle" styleClass="OraPromptText" data:rendered="isViewByTargets@blackoutsData"/> </contents> </cellFormat> </contents> </rowLayout> </contents> </tableLayout> <!--End Table for Arranging Controls--> <switcher data:childName="isViewByTargets@blackoutsData"> <!-- The following contains the table that is displayed according to the View By that the user has selected.--> <case name="true"> <!-- The User has selected View By Target. --> <table id="blackoutTable" partialRenderMode="self" name="M" data:alternateText="NO_BLACKOUT_DEFINED@blackoutBundle" data:summary="BLACKOUT_TITLE@adminBundle" width="95%" formSubmitted="true" data:tableData="row@blackoutsData" data:columnHeaderData="column@blackoutsData" showAll="yes" data:value="value@blackoutsData" data:minValue="minValue@blackoutsData" data:blockSize="blockSize@blackoutsData" data:maxValue="maxValue@blackoutsData"> <columnFormats> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> </columnFormats> <columnHeaderStamp> <sortableHeader data:text="text" data:sortable="sortable" data:value="value"/> </columnHeaderStamp> <!-- Set the Table Format so that alternate rows are displayed in different colours (rowBanding) --> <tableFormat tableBanding="rowBanding"/> <tableSelection> <singleSelection selectedIndex="0" data:shortDesc="SELECT@commonBundle"> <contents> <submitButton data:text="CREATE_LIKE@SDKBundle" data:shortDesc="CREATE_LIKE@SDKBundle" name="event" value="createLike"/> <spacer width="5"/> <rowLayout> <boundAttribute name="rendered"> <if> <comparison type="notEquals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">history</fixed> </comparison> <fixed javaType="boolean">true</fixed> <fixed javaType="boolean">false</fixed> </if> </boundAttribute> <contents> <submitButton data:text="EDIT@SDKBundle" data:shortDesc="EDIT@SDKBundle" rendered="true" name="event" value="edit"/> <spacer width="5"/> </contents> </rowLayout> <submitButton data:text="VIEW@SDKBundle" data:shortDesc="VIEW@SDKBundle" name="event" value="view"/> <spacer width="5"/> <rowLayout> <boundAttribute name="rendered"> <if> <comparison type="notEquals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">history</fixed> </comparison> <fixed javaType="boolean">true</fixed> <fixed javaType="boolean">false</fixed> </if> </boundAttribute> <contents> <submitButton data:text="STOP@SDKBundle" data:shortDesc="STOP@SDKBundle" rendered="true" name="event" value="stop"/> <spacer width="5"/> </contents> </rowLayout> <submitButton data:text="DELETE@SDKBundle" data:shortDesc="DELETE@SDKBundle" rendered="true" name="event" value="delete"> <boundAttribute name="rendered"> <if> <or> <comparison type="equals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">active</fixed> </comparison> <comparison type="equals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">future</fixed> </comparison> </or> <fixed javaType="boolean">false</fixed> <fixed javaType="boolean">true</fixed> </if> </boundAttribute> </submitButton> </contents> </singleSelection> </tableSelection> <!-- The following contains the Button that perform action independant of the row selection.--> <tableActions> <submitButton data:text="CREATE@SDKBundle" data:shortDesc="CREATE@SDKBundle" name="event" value="add"/> </tableActions> <!-- The following contains the columns that are displayed according to the View By that the user has selected.--> <contents> <!--Target Name--> <styledText data:text="blkoutTarget" data:shortDesc="TARGET@blackoutBundle" data:destination="targetDest" data:rendered="isViewByTargets@blackoutsData"/> <!--Target Type--> <styledText data:text="blkoutTargetType" data:shortDesc="TYPE@SDKBundle" data:rendered="isViewByTargets@blackoutsData"/> <!--Blackout Status--> <switcher data:childName="isViewByTargets@blackoutsData"> <case name="true"> <styledText data:text="blkoutStatus" data:shortDesc="STATUS@SDKBundle" data:destination="blkoutDest"/> </case> <case name="false"> <styledText data:text="blkoutStatus" data:shortDesc="STATUS@SDKBundle"/> </case> </switcher> <!--Full Blackout Yes/No--> <styledText data:text="blkoutFull" data:shortDesc="FULL@blackoutBundle" data:rendered="isViewByTargets@blackoutsData"/> <!--Blackout Start/End/Scheduled Time--> <styledText data:text="startTime" data:shortDesc="DATE@SDKBundle"/> <!--Blackout Duration--> <styledText data:text="duration" data:shortDesc="DURATION@SDKBundle"/> <!--Blackout Repeat Yes/No--> <styledText data:text="repeatDef" data:shortDesc="REPEAT_HEADER@SDKBundle"/> <!--Blackout Reason--> <styledText data:text="blkoutReason" data:shortDesc="REASON@blackoutBundle"/> <!--Blackout Created By--> <styledText data:text="createdBy" data:shortDesc="CREATED_BY@blackoutBundle" data:rendered="showCreatedBy@blackoutsData"/> <!--Blackout Last Updated By--> <styledText data:text="lastUpdatedBy" data:shortDesc="LAST_UPDATED_BY@blackoutBundle" data:rendered="showUpdatedBy@blackoutsData"/> <formValue name="name" data:value="blkoutID"/> <formValue name="repeat" data:value="repeat"/> <formValue name="targetName" data:value="blkoutTarget"/> <formValue name="targetType" data:value="targetType"/> <formValue name="fullBlackout" data:value="blkoutFull"/> </contents> </table> </case> <case name="false"> <!-- The User has selected View By Blackouts. --> <table id="blackoutTable" partialRenderMode="self" name="M" data:alternateText="NO_BLACKOUT_DEFINED@blackoutBundle" data:summary="BLACKOUT_TITLE@adminBundle" width="95%" formSubmitted="true" data:tableData="row@blackoutsData" data:columnHeaderData="column@blackoutsData" showAll="yes" data:value="value@blackoutsData" data:minValue="minValue@blackoutsData" data:blockSize="blockSize@blackoutsData" data:maxValue="maxValue@blackoutsData"> <columnFormats> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> <columnFormat/> </columnFormats> <columnHeaderStamp> <sortableHeader data:text="text" data:sortable="sortable" data:value="value"/> </columnHeaderStamp> <!-- Set the Table Format so that alternate rows are displayed in different colours (rowBanding) --> <tableFormat tableBanding="rowBanding"/> <tableSelection> <singleSelection selectedIndex="0" data:shortDesc="SELECT@commonBundle"> <contents> <submitButton data:text="CREATE_LIKE@SDKBundle" data:shortDesc="CREATE_LIKE@SDKBundle" name="event" value="createLike"/> <spacer width="5"/> <rowLayout> <boundAttribute name="rendered"> <if> <comparison type="notEquals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">history</fixed> </comparison> <fixed javaType="boolean">true</fixed> <fixed javaType="boolean">false</fixed> </if> </boundAttribute> <contents> <submitButton data:text="EDIT@SDKBundle" data:shortDesc="EDIT@SDKBundle" rendered="true" name="event" value="edit"/> <spacer width="5"/> </contents> </rowLayout> <submitButton data:text="VIEW@SDKBundle" data:shortDesc="VIEW@SDKBundle" name="event" value="view"/> <spacer width="5"/> <rowLayout> <boundAttribute name="rendered"> <if> <comparison type="notEquals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">history</fixed> </comparison> <fixed javaType="boolean">true</fixed> <fixed javaType="boolean">false</fixed> </if> </boundAttribute> <contents> <submitButton data:text="STOP@SDKBundle" data:shortDesc="STOP@SDKBundle" rendered="true" name="event" value="stop"/> <spacer width="5"/> </contents> </rowLayout> <submitButton data:text="DELETE@SDKBundle" data:shortDesc="DELETE@SDKBundle" rendered="true" name="event" value="delete"> <boundAttribute name="rendered"> <if> <or> <comparison type="equals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">active</fixed> </comparison> <comparison type="equals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">future</fixed> </comparison> </or> <fixed javaType="boolean">false</fixed> <fixed javaType="boolean">true</fixed> </if> </boundAttribute> </submitButton> </contents> </singleSelection> </tableSelection> <!-- The following contains the Button that perform action independant of the row selection.--> <tableActions> <submitButton data:text="CREATE@SDKBundle" data:shortDesc="CREATE@SDKBundle" name="event" value="add"/> </tableActions> <!-- The following contains the columns that are displayed according to the View By that the user has selected.--> <contents> <!--Blackout Name--> <styledText data:text="blkoutName" data:shortDesc="NAME@SDKBundle" data:destination="blkoutDest" data:rendered="isNotViewByTargets@blackoutsData"/> <!--Blackout Status--> <switcher data:childName="isViewByTargets@blackoutsData"> <case name="true"> <styledText data:text="blkoutStatus" data:shortDesc="STATUS@SDKBundle" data:destination="blkoutDest"/> </case> <case name="false"> <styledText data:text="blkoutStatus" data:shortDesc="STATUS@SDKBundle"/> </case> </switcher> <!--Blackout Start/End/Scheduled Time--> <styledText data:text="startTime" data:shortDesc="DATE@SDKBundle"/> <!--Blackout Duration--> <styledText data:text="duration" data:shortDesc="DURATION@SDKBundle"/> <!--Blackout Repeat Yes/No--> <styledText data:text="repeatDef" data:shortDesc="REPEAT_HEADER@SDKBundle"/> <!--Blackout Reason--> <styledText data:text="blkoutReason" data:shortDesc="REASON@blackoutBundle"/> <!--Blackout Created By--> <styledText data:text="createdBy" data:shortDesc="CREATED_BY@blackoutBundle" data:rendered="showCreatedBy@blackoutsData"/> <!--Blackout Last Updated By--> <styledText data:text="lastUpdatedBy" data:shortDesc="LAST_UPDATED_BY@blackoutBundle" data:rendered="showUpdatedBy@blackoutsData"/> <formValue name="name" data:value="blkoutID"/> <formValue name="repeat" data:value="repeat"/> <formValue name="targetName" data:value="blkoutTarget"/> <formValue name="targetType" data:value="targetType"/> <formValue name="fullBlackout" data:value="blkoutFull"/> </contents> </table> </case> </switcher> <spacer height="10" data:rendered="regularUser@blackoutsData"/> <tip data:rendered="regularUser@blackoutsData"> <contents> <styledText data:text="SHOW_BLKOUT_TIP@blackoutBundle"/> </contents> </tip> <spacer height="10"/> <tip> <boundAttribute name="rendered"> <if> <comparison type="notEquals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">history</fixed> </comparison> <fixed javaType="boolean">true</fixed> <fixed javaType="boolean">false</fixed> </if> </boundAttribute> <contents> <styledText data:text="BLKOUT_REP_MODIFY_TIP@blackoutBundle"/> </contents> </tip> <spacer height="10" data:rendered="showBlackMainNoOperTip@blackoutsData"/> <tip data:rendered="showBlackMainNoOperTip@blackoutsData"> <contents> <styledText data:text="FULL_NO_OPERATOR_VIEW_TIP@blackoutBundle"/> </contents> </tip> <spacer height="10"/> <tip> <boundAttribute name="rendered"> <if> <comparison type="equals"> <dataObject select="selView" source="blackoutsData"/> <fixed javaType="string">all</fixed> </comparison> <fixed javaType="boolean">true</fixed> <fixed javaType="boolean">false</fixed> </if> </boundAttribute> <contents> <styledText data:text="ALL_DATE_TIP@blackoutBundle"/> </contents> </tip> </contents> </stackLayout> </case> </switcher> </contents> </stackLayout> </contents> </form> <!-- related links --> <header data:text="RELATED_LINKS@SDKBundle" data:rendered="showRelLinkHeader@blackoutsData"> <contents> <tableLayout width="100%"> <contents data:childData="relatedLinks@blackoutsData"> <rowLayout> <contents> <cellFormat width="33%"> <contents> <styledText data:text="text0" data:destination="destination0"/> </contents> </cellFormat> <cellFormat width="33%"> <contents> <styledText data:text="text1" data:destination="destination1"/> </contents> </cellFormat> <cellFormat width="33%"> <contents> <styledText data:text="text2" data:destination="destination2"/> </contents> </cellFormat> </contents> </rowLayout> </contents> </tableLayout> </contents> </header> </contents> </header> </contents> </pageLayout> </contents> <!-- Data Providers --> <provider> <data name="blackoutsData"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutData" method="getBlackoutsList"/> </data> <data name="blackoutBundle"> <bundle class="oracle.sysman.eml.admin.rep.blackout.BlackoutResourceBundle"/> </data> <data name="adminBundle"> <bundle class="oracle.sysman.eml.admin.rep.AdminResourceBundle"/> </data> <data name="SDKBundle"> <bundle class="oracle.sysman.emSDK.eml.SDKUIMsg"/> </data> <data name="mntrResourceBundle"> <bundle class="oracle.sysman.resources.MntrResourceBundle"/> </data> <data name="commonBundle"> <bundle class="oracle.sysman.resources.CommonResourceBundle"/> </data> </provider> </dataScope> </contents></body> </baja:content> <baja:handlers> <event name="goto"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="handleGoto"/> </event> <event name="add"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doAdd"/> </event> <event name="edit"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doEdit"/> </event> <event name="createLike"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doCreateLike"/> </event> <event name="view"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doView"/> </event> <event name="delete"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doDelete"/> </event> <event name="stop"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doStop"/> </event> <event name="sort"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doSort"/> </event> <event name="changeView"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doChangeView"/> </event> <event name="searchBlackoutsByName"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doSearchBlackoutsByName"/> </event> <event name="changeViewBy"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doChangeViewBy"/> </event> <event name="toggleIncludedTargets"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doToggleIncludedTargets"/> </event> <event name="searchBlackoutsByTargets"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doSearchBlackoutsByTargets"/> </event> <event name="*"> <method class="oracle.sysman.eml.admin.rep.blackout.BlackoutEvents" method="doNull"/> </event> </baja:handlers> </page>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de