<!--
 * Copyright (c) 2001, 2003, Oracle Corporation.  All rights reserved.  
 *
 *      NAME
 *       patchStageResults.uix
 *
 *      NOTES
 *       Introduction page for the Patch Wizard
 *
 * MODIFIED (MM/DD/YY)  VERSION
 *  kchiasso 07/14/03 - 
 *  kchiasso 07/10/03 - bugfix 2966548
 *  kchiasso 12/09/02 - bugfix 2694584; remove form
 *  kchiasso 06/17/02 - dyn headers
 *  kchiasso 03/05/02 - jobs table
 *  kchiasso 02/27/02 - uiReq
 *  kchiasso 02/08/02 - hostName;cleanup
 *  kchiasso 02/04/02 - config;stageResults;
 *
 *  @author  kChiasson
 *
-->

<dataScope  xmlns="http://bali.us.oracle.com/cabo/marlin"
            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">

  <provider>
      <data name="targetList">
        <method class="oracle.sysman.eml.ecm.patch.PatchStageResultsData"
           method="populateStageResultsTable"/>
      </data>

      <data name="getPageTitle">
          <method class="oracle.sysman.eml.ecm.patch.PatchStageResultsData" method="getPageTitle"/>
      </data>

      <data name="ResourceBundle">
       <bundle class = "oracle.sysman.eml.ecm.patch.util.PatchResourceBundle"/>
      </data>
  </provider>

  <contents>

          <formValue name="jobName" value="jobName@getPageTitle"/>

           <!-- make sure valid summary data -->
          <switcher uix:childName="status@targetList" childName="success">
            <case name="failure">
                <messageBox automatic="false"
                    uix:text="errHdr@targetList"
                    uix:message="errMsg@targetList"
                    messageType="error" />
          </case>
          <case name="success">

                  <tableLayout>
                  <contents>

                    <rowLayout>
                    <contents>

                      <table name="stageResultsTable"
                            width="100%"
                            formSubmitted="true"
                            uix:text="tableHdr@targetList"
                            uix:alternateText="SUM_TBLALT@ResourceBundle"
                            uix:summary="TBLSUM_RESULTSTABLE@ResourceBundle"                           
                            uix:tableData="tableResultsData@targetList">
                          <tableFormat tableBanding="rowBanding"/>
                          <columnHeaderStamp>
                            <sortableHeader uix:text="columnHeaderText"
                                            sortable="no"
                                            uix:value="value"/>
                          </columnHeaderStamp>

                          <columnFormats>
                            <columnFormat width="30%" />
                            <columnFormat width="10%" />
                            <columnFormat width="20%" />
                            <columnFormat width="20%" />
                            <columnFormat width="15%" />
                            <columnFormat width="5%" columnDataFormat="iconButtonFormat"/>
                          </columnFormats>


                          <columnHeaderData>
                                <column id="stageloc" value="STAGELOC"    uix:columnHeaderText="SUM_STAGELOC@ResourceBundle"/>
                                <column id="hostname" value="HOSTNAME"    uix:columnHeaderText="SUM_HOSTNAME@ResourceBundle"/>
                                <column id="targets"  value="TARGETS"     uix:columnHeaderText="targetHdr@targetList"/>
                                <column id="listeners" value="LISTENERS"  uix:columnHeaderText="listenerHdr@targetList"/>
                                <column id="status"   value="STATUS"      uix:columnHeaderText="SUM_STATUS@ResourceBundle"/>
                                <column id="telnet"   value="TELNET"      uix:columnHeaderText="SUM_TELNET@ResourceBundle"/>
                           </columnHeaderData>

                          <contents>
                           <styledText headers="stageloc" uix:text="stageLoc"/>
                           <styledText headers="hostname" uix:text="hostName"/>

                           <dataScope uix:rendered="renderDBTargets@targetList">
                            <contents>
<!--
                              <image uix:source="databaseImage"/>
                              <spacer width="3"/>
-->
                              <styledText headers="targets" uix:text="addTargets"/>
                            </contents>
                           </dataScope>

                           <dataScope uix:rendered="renderListeners@targetList">
                            <contents>
<!--
                              <image uix:source="listenerImage"/>
                              <spacer width="3"/>
 -->
                              <styledText  headers="listeners" uix:text="addListeners"/>
                            </contents>
                           </dataScope>


                           <dataScope rendered="true">
                            <contents>
                              <image uix:source="severityImage" uix:alt="ALT_SEVERITY_IMAGE@ResourceBundle"/>
                              <spacer width="3"/>
                              <styledText  headers="status" uix:text="sevStatus"/>
                            </contents>
                           </dataScope>

                           <image headers="telnet" uix:source="telnetImage" uix:destination="telnetDest"  uix:alt="ALT_TELNET_IMAGE@ResourceBundle/>
                           </contents>

                       </table>

                    </contents>
                    </rowLayout>

                   <spacer height="20"/>

                  </contents>
                  </tableLayout>

            </case>
            </switcher>

   </contents>
</dataScope>



