<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:chart="http://emchart.us.oracle.com/ui"
      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_DISK_SUMMARY_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>

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

  <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_DISK_SUMMARY_TITLE@filerResourceBundle">
              <contents>
               <tableLayout width="100%">
                <contents>
                 <rowLayout>
                  <contents>
                   <cellFormat>
                    <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>

               <spacer height="10"/>
               <switcher data:childName="node@filerInfo">
                <case name="okNode">
                 <tableLayout widhth="100%">
                  <contents>
                   <rowLayout>
                    <contents>
                     <cellFormat width="30%">
                      <contents>
                       <labeledFieldLayout labelWidth="90%">
                        <contents>
                         <styledText data:text="FILER_DS_TOTAL_DISKS_COL@filerResourceBundle"/>
                         <styledText data:text="filerTotalDiskskey@filerInfo"
                                     styleClass="OraDataText"/>
                         <styledText data:text="FILER_DS_ACTIVE_DISKS_COL@filerResourceBundle"/>
                         <styledText data:text="filerActiveDisks@filerInfo"
                                     styleClass="OraDataText"/>
	                       <styledText data:text="FILER_DS_FAILED_DISKS_COL@filerResourceBundle"/>
                         <styledText data:text="filerFailedDisks@filerInfo"
                                     styleClass="OraDataText"/>
	                       <styledText data:text="FILER_DS_SPARE_DISKS_COL@filerResourceBundle"/>
                         <styledText data:text="filerSpareDisks@filerInfo"
                                     styleClass="OraDataText"/>
                         <styledText data:text="FILER_DS_RECONSTRUCTING_DISKS_COL@filerResourceBundle"/>
                         <styledText data:text="fileRresconsuructingDisks@filerInfo"
                                     styleClass="OraDataText"/>
                         <styledText data:text="FILER_DS_RECONSTRUCTING_PARITY_DISKS_COL@filerResourceBundle"/>
                         <styledText data:text="filerResconsuructingParityDisks@filerInfo"
                                     styleClass="OraDataText"/>
	                       <styledText data:text="FILER_DS_VERIFYING_PARITY_DISKS_COL@filerResourceBundle"/>
                         <styledText data:text="filerVerifyingParityDisks@filerInfo"
                                     styleClass="OraDataText"/>
                         <styledText data:text="FILER_DS_SCRUBBING_DISKS_COL@filerResourceBundle"/>
                         <styledText data:text="filerScrubbingDisks@filerInfo"
                                     styleClass="OraDataText"/>
      	                 <styledText data:text="FILER_FD_ADDING_SPARE_COL@filerResourceBundle"/>
                         <styledText data:text="filerAddingSpareDisks@filerInfo"
                                     styleClass="OraDataText"/>
                        </contents>
                       </labeledFieldLayout>
                      </contents>
                     </cellFormat>
                     <cellFormat width="30%" hAlign="right">
                      <contents>
                       <!-- Pie Chart -->
                       <chart:emChart data:title="FILER_DISK_SUMMARY_TITLE@filerResourceBundle"
                                      titleVisible="false"
                                      chartType="pieChart"
                                      width="480"
                                      height="175"
                                      pieValuesInLegend="percent"
                                      showSlicePercentLabels="false"
                                      data:pieSliceColors="pieSliceColors@filerInfo"
                                      hideZeroSlices="false"
                                      legendWidthFraction="0.75"
                                      data:shortDesc="FILER_DISK_SUMMARY_TITLE@filerResourceBundle">
                        <contents>
                         <chart:boundChartDataSource data:chartDataSource="chartDataSource@filerInfo"/>
                         <chart:chartColumn isKey="true"
                                            displayLabel=""
                                            sourceIndex="0"/>
                         <chart:chartColumn displayLabel=""
                                            sourceIndex="1"/>
                        </contents>
                       </chart:emChart>
                      </contents>
                     </cellFormat>
                    </contents>
                   </rowLayout>
                  </contents>
                 </tableLayout>
                </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="getFilerDiskSummaryInfo"/>
        </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>
      </provider>
    </dataScope>
  </baja:content>
</page>
