<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@installData" />
        </html:title>
        <html:noScript>
        "This page uses JavaScript to perform the list of values lookup. Your browser either does not support JavaScript, or it is disabled.  Please enable JavaScript, or upgrade your browser."
        </html:noScript>

        <form name="installation" method="POST">
          <contents>
            <pageLayout xmlns="http://bali.us.oracle.com/cabo/marlin" >
              <mediumAdvertisement>
                <include baja:node="../../../oemBanner" />
              </mediumAdvertisement>
              <globalButtons>
                <include baja:node="../../../globalButtonBar" />
              </globalButtons>
              <data:tabs>
                <include baja:node="../../../globalTabs" />
              </data:tabs>
              <data:pageHeader>
                <include baja:node="../../../globalHeader" />
              </data:pageHeader>
              <data:location>
                <include baja:node="../../../breadCrumbs" /> 
              </data:location>
              <copyright>
                <include baja:node="../../../copyright" />
              </copyright>

              <data:contents>

                  <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>                    
                    <link data:text="ADMINISTRATION@hostResourceBundle"
                               data:destination="hostAdminDest@folderInfo"/> 
                    <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>


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

            <header data:text="REQUIRED_INSTALLATIONS@hostResourceBundle">            
           
              <contents>
                 
              <tableLayout width="100%">
                 <contents>
                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="left">
                       <contents>
                          <styledText data:text="INSTALLATION_INSTRUCTION@hostResourceBundle" styleClass="OraPromptText"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat> 
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="right">
                       <contents>
                         <submitButton data:text="FINISH@commonResourceBundle"
                                 name="event" value="finish"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat>                    
                   </contents>
                  </rowLayout>

                 </contents>
                </tableLayout>     
                <spacer height="10"/>
                
              <tableLayout cellSpacing="8">
                 <contents>

            <switcher childName="no" data:childName="scriptsInstallation@installData">
             <case name="no">                  
                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="left">
                       <contents>
                        <styledText data:text="STEP@hostResourceBundle" styleClass="OraPromptText"/>
                        <spacer width="2"/>
                        <styledText text="1" styleClass="OraPromptText"/>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat> 
                    <cellFormat wrappingDisabled="true">
                     <contents>

                        <spacer width="8"/>
                        <styledText data:text="SCRIPT_INSTALLATION@hostResourceBundle" styleClass="OraInstructionTextStrong"/>
                        <spacer width="5"/>
                        <link text="http://oss.oracle.com/projects/yast" destination="http://oss.oracle.com/projects/yast" targetFrame="_blank"/>

                     </contents>
                    </cellFormat>                    
                   </contents>
                  </rowLayout>
               </case>
              </switcher>

            <switcher childName="no" data:childName="patchInstallation@installData">
             <case name="no">                  
                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="left">
                       <contents>
                        <styledText data:text="STEP@hostResourceBundle" styleClass="OraPromptText"/>
                        <spacer width="2"/>
                        <switcher childName="no" data:childName="scriptsInstallation@installData">
                         <case name="no"> 
                          <styledText text="2" styleClass="OraPromptText"/>
                         </case>
                         <case name="yes">
                          <styledText text="1" styleClass="OraPromptText"/>
                         </case>
                        </switcher>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat> 
                    <cellFormat wrappingDisabled="true">
                     <contents>

                        <spacer width="8"/>
                        <styledText data:text="PATCH_INSTALLATION@hostResourceBundle" styleClass="OraInstructionTextStrong"/>
                        <spacer width="5"/>
                        <link text="http://oss.oracle.com/projects/yast" destination="http://oss.oracle.com/projects/yast" targetFrame="_blank"/>                        

                     </contents>
                    </cellFormat>                    
                   </contents>
                  </rowLayout>
               </case>
              </switcher>

            <switcher childName="no" data:childName="yastInstallation@installData">
             <case name="no">                  
                  <rowLayout>
                   <contents>
                    <cellFormat>
                     <contents>
                      <rowLayout hAlign="left">
                       <contents>
                        <styledText data:text="STEP@hostResourceBundle" styleClass="OraPromptText"/>
                        <spacer width="2"/>
                        <switcher childName="no" data:childName="scriptsInstallation@installData">
                         <case name="no"> 
                          <styledText text="2" styleClass="OraPromptText"/>
                         </case>
                         <case name="yes">
                          <styledText text="1" styleClass="OraPromptText"/>
                         </case>
                        </switcher>
                       </contents>
                      </rowLayout>
                     </contents>
                    </cellFormat> 
                    <cellFormat wrappingDisabled="true">
                     <contents>

                        <spacer width="8"/>
                        <styledText data:text="YAST_INSTALLATION@hostResourceBundle" styleClass="OraInstructionTextStrong"/>
                        <spacer width="5"/>
                        <link text="http://oss.oracle.com/projects/yast" destination="http://oss.oracle.com/projects/yast" targetFrame="_blank"/>                        

                     </contents>
                    </cellFormat>                    
                   </contents>
                  </rowLayout>
               </case>
              </switcher>

                 </contents>
                </tableLayout>                 
              
            </contents>        
    
            </header>              
             <spacer height="20"/> 
                  </contents>
                </stackLayout>
               </case>
               
                <case name="naNode">
                  <stackLayout>
                   <contents>                  
                  

                     <messageBox data:message="notAvailableMsg@installData"
                                 messageType="info"
                                 longDescURL="">
                     </messageBox>
                     <spacer height="20"/>               
                  

                   </contents>
                  </stackLayout>
                </case>               
               
                <case name="errNode">
                  <stackLayout>
                   <contents>

                     <messageBox data:message="errMsg@installData"
                                 messageType="error"
                                 longDescURL="unimpl"
                                 data:text="ERR_OCCUR@mntrResourceBundle">
                     </messageBox>

                   </contents>
                  </stackLayout>
                </case>
            
              </switcher>

                  <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>
                      <link data:text="ADMINISTRATION@hostResourceBundle"
                          data:destination="hostAdminDest@folderInfo"/>                   
                    <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>

              </data:contents>
            </pageLayout>
          </contents>
        </form>        
      </contents>

      <provider>

        <data name="installData">
            <method class="oracle.sysman.eml.host.admin.HostAdminPageHandler" 
                    method="getInstallationData"/>
        </data>      
        
        <data name="timeData">
         <method class="oracle.sysman.eml.mntr.user.UserMntrUtil"
                 method="getTimeData"/>
        </data>        
        
        <data name="TrackResourceBundle">
          <bundle class="oracle.sysman.eml.ecm.resources.TrackResourceBundle"/>
        </data>

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

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

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

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


      </provider>
      
    </dataScope>
  </baja:content>

  <handlers>
    <event name="finish">
      <method class="oracle.sysman.eml.host.admin.HostAdminPageHandler"
              method="doCommand"/>
    </event>
    
    <event name="cancel">
      <method class="oracle.sysman.eml.host.admin.HostAdminPageHandler"
              method="doCommand"/>
    </event>    
  </handlers>

</page>
