<page xmlns="http://bali.us.oracle.com/cabo/baja"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja" 
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:oem="http://xmlns.oracle.com/oem/ui/beans"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin">

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <dataScope>

      <contents>
        <html:title>
         <text data:text="title@hostInfo"/>
        </html:title>

        <html:noScript>"JavaScript is not supported by your browser. Oracle requires JavaScript support in order to completely render this page."</html:noScript>

        <pageLayout xmlns="http://bali.us.oracle.com/cabo/marlin">
          <mediumAdvertisement>
            <include baja:node="../oemBanner" />
          </mediumAdvertisement>
          <marlin:globalButtons>
            <include baja:node="../globalButtonBar" />
          </marlin:globalButtons>
          <marlin:tabs>
            <include baja:node="../globalTabs" />
          </marlin:tabs>
          <marlin:pageHeader>
            <include baja:node="../globalHeader" />
          </marlin:pageHeader>

          <marlin:location>
            <include baja:node="../breadCrumbs"/>
          </marlin:location>

          <copyright>
           <include baja:node="../copyright"/>
          </copyright>

          <contents>
            <switcher childName="okNode" data:childName="node@hostInfo">
             <case name="okNode">
              <stackLayout>
               <contents>

            <messageBox messageType="confirmation"
                        data:message="inlineConfirm@hostInfo"
                        rendered="false"
                        data:rendered="showDeleteConfirm@hostInfo" />
                        
            <header data:text="header@hostInfo">
              <contents>
                <form name="hostTgtList" method="POST">
                 <contents>
                 <tableLayout width="100%">
                 <contents>
                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="right">
                       <contents>
                        <styledText styleClass="OraTipText"
                                    vAlign="middle"
                                    data:text="PAGE_REFRESHED_TIME@sdkBundle" />
                        <spacer  width="5"/>
                        <styledText styleClass="OraTipLabel"
                                    vAlign="middle"
                                    data:text="timestamp@timeData" />

                         <spacer width="10"/>
                          <image data:source="refreshIcon@hostInfo"
                                 destination="?event=refresh"
                                 data:shortDesc="REFRESH_BUTTON@mntrResourceBundle"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>
                   </contents>
                  </rowLayout>
                 </contents>
                </tableLayout>

                  <subTabBar orientation="top"
                             data:selectedIndex="selectedTab@folderInfo">
                   <contents>
                    <link data:text="HOME@mntrResourceBundle"
                          data:destination="targetDest@folderInfo"/>
                    <oem:license>
                      <contents>
                    <link data:text="PERFORMANCE@hostResourceBundle"  
                          data:destination="perfOverviewDest@folderInfo"/>
                      </contents>
                    </oem:license>
                    <oem:license>
                      <contents>
                    <link data:text="ADMINISTRATION@hostResourceBundle"
                          data:destination="hostAdminDest@folderInfo"/>
                     </contents>
                    </oem:license>
                    <link data:text="HOST_TARGET_LIST@hostResourceBundle"  
                          data:destination="targetListDest@folderInfo"/>
                    <oem:license>
                      <contents>
                     <link data:text="CONFIGURATION@TrackResourceBundle"
                          data:destination="viewSnapshot@hostSnapshot"/>
                      </contents>
                    </oem:license>
                   </contents>
                  </subTabBar>

                <spacer height="10"/>

                <table name="hostTargets" 
                       partialRenderMode="self"
                       data:tableData="row@hostInfo"
                       data:columnHeaderData="column@hostInfo"
                       data:columnFormats="colformat@columnFormatData"
                       data:value="value@hostInfo"
                       data:minValue="minValue@hostInfo"
                       data:blockSize="blockSize@hostInfo"
                       data:maxValue="maxValue@hostInfo"
                       formSubmitted="true"
                       summary="hostTargets"
                       id="hostTargets"
                       showAll="yes"
                       width="100%" data:alternateText="TARGETS_ALT@hostResourceBundle">

                  <tableFormat tableBanding="rowBanding"/>

                  <columnHeaderStamp>
                    <sortableHeader data:text="text"
                            data:sortable="sortable"/>
                  </columnHeaderStamp>

                  <tableSelection>
                    <multipleSelection data:disabled="msDisabled"
                                       data:selected="msSelected"
                                       data:shortDesc="SELECT@commonResourceBundle"
                                       rendered="false" data:rendered="showSelection@hostInfo">
                      <contents>
                        <submitButton data:text="REMOVE@commonResourceBundle"
                                      name="event" value="remove"/>
                      </contents>
                    </multipleSelection>
                  </tableSelection>

                  <contents>
                    <styledText data:text="targetName"
                                data:shortDesc="targetName"
                                data:destination="targetDest"/>
                    <dataScope>
                      <contents>
                        <oem:license>
                          <contents>
                        <styledText data:text="targetOracleHome"
                                data:shortDesc="targetOracleHome"
                                data:destination="targetOracleHomeDest"/>
                          </contents>
                        </oem:license>
                        <spacer width="4"/>
                        <image data:source="patchadvwarning" data:shortDesc="warningdesc"/>
                      </contents>
                    </dataScope>

                    <switcher data:childName="isValidStatus">
                     <case name="true">
                     <dataScope>
                       <contents>
                         <oem:license>
                           <contents>
                             <image data:source="currentStatusSrc"
                                    data:shortDesc="statusDesc"
                                    data:destination="availDest"/>
                           </contents>
                         </oem:license>
                       </contents>
                     </dataScope>
                    </case>
                    <case name="false">
                     <styledText data:text="NOT_APPLICABLE_SHORT@sdkBundle" styleClass="OraPromptText"/>
                    </case>
                    </switcher>

                    <dataScope>
                      <contents>
                        <oem:license>
                         <contents>
                           <styledText data:text="criticalCountName"
                                       data:destination="criticalDest"
                                       data:shortDesc="criticalDesc">
                           <inlineStyle>
                              <property name="color">#ff0000</property>
                            </inlineStyle>
                          </styledText>
                          </contents>
                        </oem:license>
                        <spacer width="10"/>
 
                        <oem:license>
                         <contents>

                           <styledText data:text="warningCountName"
                                       data:destination="warningDest"
                                       data:shortDesc="warningDesc">
                           <inlineStyle>
                              <property name="color">#ff9900</property>
                            </inlineStyle>
                         </styledText>
                         </contents>
                        </oem:license>
                       </contents>
                    </dataScope>

                    <dataScope>
                      <contents>


                        <oem:license>
                          <contents>
                           <styledText data:text="policyCriticalCountName"
                                       data:destination="policyCriticalDest"
                                       data:shortDesc="policyCriticalDesc">
                           <inlineStyle>
                              <property name="color">#ff0000</property>
                            </inlineStyle>
                         </styledText>
                         </contents>                        
                        </oem:license>
                        <spacer width="10"/>                        

                        <oem:license>
                         <contents>
                           <styledText data:text="policyWarningCountName"
                                       data:destination="policyWarningDest"
                                       data:shortDesc="policyWarningDesc">
                           <inlineStyle>
                              <property name="color">#ff9900</property>
                            </inlineStyle>
                         </styledText>
                         </contents>
                        </oem:license>
                        <spacer width="10"/>
 
                        <oem:license>
                         <contents>
                           <styledText data:text="policyInformationCountName"
                                       data:destination="policyInformationDest"
                                       data:shortDesc="policyInformationDesc">
                           <inlineStyle>
                              <property name="color">#6699cc</property>
                            </inlineStyle>
                         </styledText>
                         </contents>
                        </oem:license>

                      </contents>
                    </dataScope>
                    
                    <styledText data:text="policyComplianceScore" data:shortDesc="policyComplianceScore" />                        
                    <styledText data:text="typeName" data:shortDesc="typeName" />
                    <styledText data:text="lastLoadTime" data:shortDesc="lastLoadTime" />
                    <formValue name="targetGuid" data:value="targetGuid"/>
                    <formValue name="type" data:value="type"/>
                    <formValue name="target" data:value="targetName"/>
                    <formValue name="emdUrl" data:value="emdUrl"/>
                    <formValue name="agent" data:value="agent"/>

                  </contents>

                </table>
                <spacer height="10"/>
                <include baja:node="../availLegend"/>
                </contents>
                </form>
              </contents>
            </header>


              </contents>
             </stackLayout>
            </case>
            <case name="errNode">
             <messageBox data:message="errMsg@hostInfo"
                         messageType="error"
                         longDescURL="unimpl"
                         data:text="ERR_OCCUR@mntrResourceBundle">
             </messageBox>
            </case>
           </switcher>

           <spacer height="15"/>

           <subTabBar orientation="bottom"
                   data:selectedIndex="selectedTab@folderInfo">
             <contents>
               <link data:text="HOME@mntrResourceBundle"
                          data:destination="targetDest@folderInfo"/>
               <oem:license>
                 <contents>
                <link data:text="PERFORMANCE@hostResourceBundle"  
                           data:destination="perfOverviewDest@folderInfo"/>
                 </contents>
               </oem:license>
               <oem:license>
                 <contents>
                  <link data:text="ADMINISTRATION@hostResourceBundle"
                        data:destination="hostAdminDest@folderInfo"/>
                 </contents>
               </oem:license>                    
               <link data:text="HOST_TARGET_LIST@hostResourceBundle"  
                          data:destination="targetListDest@folderInfo"/>
               <oem:license>
                 <contents>
               <link data:text="CONFIGURATION@TrackResourceBundle"
                          data:destination="viewSnapshot@hostSnapshot"/>
                 </contents>
               </oem:license>
             </contents>
         </subTabBar>


          </contents>

        </pageLayout>
      </contents>

      <provider>
        <data name="columnFormatData">
          <inline>
            <colformat/>
            <colformat/>
            <colformat columnDataFormat="iconButtonFormat"/>
            <colformat columnDataFormat="numberFormat" width="10%"/>
            <colformat columnDataFormat="numberFormat" width="10%"/>
            <colformat columnDataFormat="numberFormat" width="10%"/>
            <colformat/>
            <colformat/>
          </inline>
        </data>

        <data name="TrackResourceBundle">
          <bundle class="oracle.sysman.eml.ecm.resources.TrackResourceBundle"/>
        </data>

        <data name="hostInfo">
          <method class="oracle.sysman.eml.mntr.host.HostOverviewDataObject"
                  method="getTargetListInfo"/>
        </data>

        <data name="timeData">
         <method class="oracle.sysman.eml.mntr.user.UserMntrUtil"
                 method="getTimeData"/>
        </data>

        <data name="mntrResourceBundle">
            <bundle class="oracle.sysman.resources.MntrResourceBundle"/>
        </data>

        <data name="commonResourceBundle">
            <bundle class="oracle.sysman.resources.CommonResourceBundle"/>
        </data>

        <data name="sdkBundle">
            <bundle class="oracle.sysman.emSDK.eml.SDKUIMsg"/>
        </data>

        <data name="hostResourceBundle">
            <bundle class="oracle.sysman.eml.host.HostResourceBundle"/>
        </data>

        <data name="folderInfo">
          <method class="oracle.sysman.eml.mntr.host.HostOverviewDataObject"
                  method="getFoldersInfo"/>
        </data>

        <data name="hostSnapshot">
          <method class="oracle.sysman.eml.ecm.track.DBOHomeData" 
                  method="createHostECMLinks"/>
        </data>


        <!-- END Change Tracking Data Providers -->
      </provider>

    </dataScope>
  </baja:content>

 <handlers>
    <event name="sort">
      <method class="oracle.sysman.eml.mntr.host.HostOverviewDataObject"
              method="doSort"/>
    </event>

    <event name="goto">
      <method class="oracle.sysman.eml.mntr.host.HostOverviewDataObject"
              method="doGoto"/>
    </event>

    <event name="remove">
      <method class="oracle.sysman.eml.mntr.host.HostOverviewDataObject"
              method="doRemove"/>
    </event>

    <event name="refresh">
      <method class="oracle.sysman.eml.mntr.host.HostOverviewDataObject"
              method="doRefresh"/>
    </event>

    <event name="*">
      <method class="oracle.sysman.eml.mntr.host.HostOverviewDataObject"
              method="doLoad"/>
    </event>

  </handlers>


</page>
