<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">
  <form name="hostLookupTableConfigAdd" method="POST">  
  <contents>
    <dataScope>

      <contents>
        <html:title>
         <text data:text="title@hostServiceDetails"/>
        </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>         

	     <pageButtons>
	      <pageButtonBar>                    
		<contents>
		 <tableLayout>
		  <contents>
		   <rowLayout>
		    <contents>
		     <submitButton data:text="CANCEL@commonResourceBundle" 
			  name="event"
			  value="cancelEdit"/>

		       <spacer width="8"/>
		     <submitButton data:text="SAVE_BUTTON@mntrResourceBundle"	                          
			  name="event"
			  value="save"/> 
		    </contents>
		   </rowLayout>
		  </contents>
		 </tableLayout>
		</contents>
	       </pageButtonBar>
	      </pageButtons>              
          <contents>
            <switcher childName="okNode" data:childName="node@hostServiceDetails">
             <case name="okNode">
              <stackLayout>
               <contents>
                  <messageBox messageType="info"
                           data:messageType="inlineMessageType@hostServiceDetails"
                           data:message="inlineConfirm@hostServiceDetails"
                           rendered="false"
                           data:rendered="showConfirm@hostServiceDetails" /> 

            <spacer height="10"/>
            <header data:text="HOST_OSSERVICE@hostResourceBundle">           
              <contents>                          

               <spacer height="10"/>
                            <tableLayout cellSpacing="3">
                             <contents>
                             
                              <rowLayout>
                               <contents>
                                      <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                         <spacer height="8"/>
                         <styledText data:text="HOST_OSSERVICE@hostResourceBundle" styleClass="OraPromptText"/>
                        
			 <spacer height="8"/>
			 
                                   </contents>                                   
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                         <spacer height="8"/>
                         <styledText data:text="serviceName@hostServiceDetails" styleClass="OraDataText"/>
                        
			 <spacer height="8"/>
			 
                                   </contents>                                   
                                  </cellFormat>                                  
                                 </contents>
                               </rowLayout>       
                               
                              <rowLayout>
                               <contents>
                                  <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                         <styledText data:text="DESCRIPTION@hostResourceBundle" styleClass="OraPromptText"/>
			 <spacer height="8"/>
			 
                                   </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                         <spacer height="8"/>
                         <styledText data:text="description@hostServiceDetails" styleClass="OraDataText"/>
                        
			 <spacer height="8"/>
			 
                                   </contents>                                   
                                  </cellFormat>                                     
                                 </contents>
                               </rowLayout>    
                               
                              <rowLayout>
                               <contents>
                                  <spacer width="8"/>
                                  <cellFormat hAlign="right">
                                    <contents>
                               
                         <styledText data:text="RUNSTATUS@hostResourceBundle" styleClass="OraPromptText"/>
			 <spacer height="8"/>
			   

                                   </contents>
                                  </cellFormat>
                                  <cellFormat hAlign="left">
                                    <contents>
                         <spacer height="8"/>
                         <styledText data:text="runStatus@hostServiceDetails" styleClass="OraDataText"/>
                        
			 <spacer height="8"/>
			 
                                   </contents>                                   
                                  </cellFormat>             
                                  
                                  
                          <switcher childName="yes" data:childName="runStatus@hostServiceDetails">
                          <case name="yes">
                                  <cellFormat hAlign="left">
                                    <contents>
                                      <spacer height="8"/>
                                        <submitButton data:text="STOP@hostResourceBundle" 
                                                      name="event" 
                                                      value="doStop"/>     
                                        <spacer width="8"/>
                                        <submitButton data:text="RESTART@hostResourceBundle" 
                                                      name="event" 
                                                      value="doRestart"/>                      
			              <spacer height="8"/>			 
                                    </contents>                                   
                                  </cellFormat>                                
                          </case>
                          <case name="no">
                                  <cellFormat hAlign="left">
                                    <contents>
                                      <spacer height="8"/>
                                        <submitButton data:text="START@hostResourceBundle" 
                                                      name="event" 
                                                      value="doStart"/>                  
			              <spacer height="8"/>			 
                                    </contents>                                   
                                  </cellFormat>                             
                          </case>
                          </switcher>
                                  
                                 </contents>
                               </rowLayout>                                   
                               
                              </contents>
                             </tableLayout>                               
              
              </contents>              
              <contents>
               <header data:text="RUNLEVEL@hostResourceBundle">           
                       <contents>
                       <tableLayout width="100%">
                       <contents>                       
                       <rowLayout>
                         <contents>
                         <spacer height="10"/>
                            <styledText data:text="HOST_OSSERVICES_DETAILS_INSTRUCTION@hostResourceBundle" styleClass="OraInstructionTextStrong"/>
                            <spacer width="10" height="10"/>                            
                         </contents>                          
                       </rowLayout>
                    <spacer height="10"/>   
                    <rowLayout>
                    <contents>
                    <spacer height="10"/>
                    </contents>
                    </rowLayout>
              <rowLayout>                  
              <contents>
              <spacer height="10"/>
                                <table name="runLevel" 
                                        partialRenderMode="self" 
                                        data:tableData="row@hostServiceDetails" 
                                        data:columnHeaderData="column@hostServiceDetails" 
                                        data:columnFormats="colformat@columnFormatData"
                                        data:value="value@hostServiceDetails" 
                                        data:minValue="minValue@hostServiceDetails" 
                                        data:blockSize="blockSize@hostServiceDetails" 
                                        data:maxValue="maxValue@hostServiceDetails" 
                                        formSubmitted="true" 
                                        summary="runLevel" 
                                        id="runLevel" 
                                        showAll="yes" 
                                        width="70%" 
                                        data:alternateText="Run Levels">
                                  <tableFormat tableBanding="rowBanding"/>
                                  <columnHeaderStamp>
                                    <sortableHeader data:text="text" data:sortable="no"/>
                                  </columnHeaderStamp>
                                  <tableSelection>
                                    <multipleSelection data:selection="row@hostServiceDetails"
                                                   data:selected="selected"
                                                   data:disabled="disabled">
                                    </multipleSelection>
                                    
                                  </tableSelection>
                                   <contents> 
                                    <styledText data:text="RunLevel" data:shortDesc="Run Level" />                        
                                    <styledText data:text="Description" data:shortDesc="Description" />                                    
                                   </contents>
                                </table>
              
              </contents>              
              </rowLayout>              
              </contents>
              </tableLayout>
              </contents>
            </header>              
              </contents>
              </header>
              </contents>
             </stackLayout>
            </case>
            <case name="errNode">
             <messageBox data:message="errMsg@hostServiceDetails"
                         messageType="error"
                         longDescURL="unimpl"
                         data:text="ERR_OCCUR@mntrResourceBundle">
             </messageBox>
            </case>
           </switcher>

           <spacer height="15"/>
          </contents>

        </pageLayout>
      </contents>

      <provider>

        <data name="hostServiceDetails">
          <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler" method="getServiceDetailsData"/>
        </data>

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

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

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

        <data name="columnFormatData">
          <inline>
           <colformat/>
           <colformat/>           
          </inline>
        </data>

        
      </provider>

    </dataScope>
    </contents>
   </form>    
  </baja:content>

 <handlers>

    <event name="cancelEdit">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>

    <event name="save">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>

    <event name="doStart">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>
    
    <event name="doRestart">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>

    <event name="doStop">
      <method class="oracle.sysman.eml.host.admin.HostOSServicesPageHandler"
              method="doCommand"/>
    </event>

  </handlers>

</page>
