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

  <!-- Title bar -->
  <baja:head xmlns="http://bali.us.oracle.com/cabo/marlin"
             xmlns:html="http://www.w3.org/TR/REC-html40">
      <dataScope>
        <contents>
          <html:title> 
            <text data:text="FILER_SPARE_DISKS_PAGE_TITLE@filerPageTitles"/>
          </html:title> 
        <html:noScript> "JavaScript is not supported by your browser. Oracle requires JavaScript support in order to completely render this page." </html:noScript>
        </contents>
        <provider>
          <data name="filerPageTitles">
            <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
                    method="getFilerPageTitles"/>
          </data>
        </provider>
      </dataScope>
  </baja:head>

  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <dataScope>
      <contents>
        <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>
            <header data:text="FILER_SPARE_DISKS_TITLE@filerResourceBundle">
              <contents>
               <tableLayout width="100%">
                <contents>
                 <rowLayout>
                  <contents>
                   <cellFormat>
                    <contents>
                     <styledText styleClass="OraInstructionText"
                                 data:text="FILER_FD_SPARE_INSTRUCTION@filerResourceBundle"/>
                    </contents>
                   </cellFormat>
                   <cellFormat vAlign="top">
                    <contents>
                     <switcher data:childName="showtime@filerInfo">
                      <case name="true">
                       <rowLayout hAlign="right">
                        <contents>
                        <styledText styleClass="OraTipText"
                                    vAlign="middle"
                                    data:text="PAGE_REFRESHED@mntrResourceBundle" />
                        <spacer  width="5"/>
                         <styledText styleClass="OraTipLabel" data:text="timestamp@filerInfo"/>
                         <spacer  width="5"/>
                         <image data:source="refreshIcon@filerInfo"
                                data:destination="refreshUrl@filerInfo"
                                data:shortDesc="REFRESH_DATA@commonResourceBundle"/>
                        </contents>
                       </rowLayout>
                      </case>
                     </switcher>
                    </contents>
                   </cellFormat>
                  </contents>
                 </rowLayout>
                </contents>
               </tableLayout>

               <switcher data:childName="node@filerInfo">
                <case name="okNode">
                 <table data:tableData="row@filerInfo"
                        width="80%"
                        partialRenderMode="self"
                        showAll="yes"
                        id="spare_disks"
                        data:value="value@filerInfo"
                        data:blockSize="blockSize@filerInfo"
                        data:minValue="1"
                        data:maxValue="maxValue@filerInfo"
                        data:columnHeaderData="column@filerInfo"
                        data:columnFormats="colformat@columnData"
                        data:alternateText="FILER_SPARE_DISKS_ALT@filerResourceBundle"
                        data:summary="FILER_SPARE_DISKS_TITLE@filerResourceBundle">
                  <tableFormat tableBanding="rowBanding"/>

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

                  <contents>
                    <styledText data:text="filerSDSrno"/>
		                <styledText data:text="filerSDDiskName"/>
                    <styledText data:text="filerSDSpareStatus"/>
                    <styledText data:text="filerSDTotalGB"/>
                    <styledText data:text="filerSDSpareShelf"/>
                    <styledText data:text="filerSDSpareBay"/>
		              </contents>
                 </table>
                </case>

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

          </contents>
        </pageLayout>
      </contents>

      <provider>
        <data name="filerInfo">
          <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
                  method="getFilerSpareDisksInfo"/>
        </data>

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

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

        <data name="filerResourceBundle">
            <bundle class="oracle.sysman.eml.rsc.target.filer.FilerResourceBundle"/>
        </data>

        <data name="columnData">
         <inline>
          <colformat columnDataFormat="numberFormat"/>
          <colformat/>
          <colformat/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
          <colformat columnDataFormat="numberFormat"/>
         </inline>
        </data>
      </provider>

    </dataScope>
  </baja:content>

  <handlers>
    <!-- use this handler to enter this page -->
    <event name="doLoad">
      <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject" 
              method="doLoad"/>
    </event>

    <event name="goto">
      <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
              method="doGoto"/>
    </event>

    <event name="sort">
      <method class="oracle.sysman.eml.target.filer.FilerCurDetailDataObject"
              method="doSort"/>
    </event>
  </handlers>
</page>
