<?xml version = '1.0' encoding = 'UTF-8'?>
<page xmlns="http://bali.us.oracle.com/cabo/baja"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:data="http://bali.us.oracle.com/cabo/marlin"
      xmlns:marlin="http://bali.us.oracle.com/cabo/marlin"
      xmlns:html="http://www.w3.org/TR/REC-html40">
  <baja:head xmlns="http://bali.us.oracle.com/cabo/marlin"
             xmlns:uix="http://bali.us.oracle.com/cabo/marlin"
             xmlns:html="http://www.w3.org/TR/REC-html40">
    <dataScope>
      <contents>
        <html:title>
          <text>
           <boundAttribute name="text">
            <concat>
             <dataObject select="EM_TITLE" source="resourceBundle"/>
             <dataObject select="WEBSITE_PERFORMANCE_TITLE" source="resourceBundle"/>
            </concat>
           </boundAttribute>
          </text> 
        </html:title>
       </contents>
       <provider>
         <data name="resourceBundle">
           <bundle class="oracle.sysman.eml.mntr.user.UserMntrOwnerMsg"/>
         </data>
        <data name="appHeader">
          <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject" method="getAppHeader"/>
        </data>
       </provider>
    </dataScope>
  </baja:head>
  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin">
    <dataScope>
      <provider>
        <data name="rowsTable">
            <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject" method="getRows"/>
        </data>
        <data name="standalonePage">
            <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject" method="getStandalonePage"/>
        </data>
        <data name="appHeader">
          <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject" method="getAppHeader"/>
        </data>
        <!-- Used for dropdown refresh option -->
        <data name="timeData">
          <method class="oracle.sysman.eml.mntr.user.UserMntrOwnerUtil" method="getTimeData"/>
        </data>
        <!-- Used for dropdown refresh option -->
        <data name="refOptionList">
          <method class="oracle.sysman.eml.mntr.util.CommonDataObject" 
                  method="getRefreshOptionList"/>
        </data>
         <data name="ResourceBundle">
           <bundle class="oracle.sysman.eml.mntr.user.UserMntrOwnerMsg"/>
         </data>
      </provider>
      <contents>
        <link name="#TOP"/>
        <pageLayout>
           <mediumAdvertisement>
            <dataScope xmlns="http://bali.us.oracle.com/cabo/marlin"
                      xmlns:data="http://bali.us.oracle.com/cabo/marlin">
             <contents>
                <image data:source="image@brandingData"
                       data:shortDesc="text@brandingData"
                       data:destination="destination@brandingData"/>
             </contents>
             <provider>
              <data name="brandingData">
                <method class="oracle.sysman.emSDK.eml.nav.NavData" 
                        method="getProductBranding"/>
              </data>
             </provider>
            </dataScope>
           </mediumAdvertisement>

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

          <marlin:contents>
            <stackLayout>
              <contents>
                <header  data:text="text@standalonePage">
                  <contents>
                    <stackLayout>
                      <contents>
                        <form name="perfByForm">
                          <contents>
                            <formValue baja:event="changeOwner"/>
                            <rowLayout>
                              <contents>
                                <messageTextInput 
                                  name="reportOwner"
                                  data:prompt="REPORT_FOR@ResourceBundle" 
                                  required="no"
                                  rows="1" 
                                  columns="20"
                                  data:text="reportOwner@standalonePage"> 
                                </messageTextInput>
                                <styledText data:text="AT_ORACLE_COM@ResourceBundle"/>
                              </contents>
                            </rowLayout>
                            <rowLayout>
                              <contents>
                                <styledText data:text="SHOW_TOP_URLS@ResourceBundle"/>
                                <spacer width="8"/>
                                <choice name="displayChoice" columns="15"
                                  data:text="choiceLabel@standalonePage"
                                  data:selectedValue="choiceDisplay@standalonePage"
                                  formSubmitted="true">
                                <contents marlin:childData="selTypeList@standalonePage">
                                <option marlin:text="typeName"
                                  marlin:value="id"/>
                              </contents>
                            </choice>

                            <spacer width="8"/>

                            <styledText data:text="SELECT_WEBSITE_TIMEPERIOD2@ResourceBundle"/>
                            <spacer width="8"/>
                            <choice name="timeChoice" columns="15"
                               data:text="timeChoiceLabel@standalonePage"
                               data:selectedValue="timeChoiceDisplay@standalonePage"
                               formSubmitted="true">
                               <contents marlin:childData="timeChoiceList@standalonePage">
                                 <option marlin:text="typeName"
                                   marlin:value="id"/>
                               </contents>
                             </choice>
                                
                             <spacer width="8"/>
                             <submitButton text="Go" name="event" value="changeStandaloneType" />

                           </contents>
                         </rowLayout>
                         <spacer height="5"/>
                         <tip>
                           <contents>
                             <styledText data:text="WEBSITE_TIP@ResourceBundle"/>
                           </contents>
                         </tip>
                         <tip>
                           <contents>
                             <styledText data:text="URL_TIP@ResourceBundle"/>
                           </contents>
                         </tip>
                         <tip>
                           <contents>
                             <link data:text="FAQ_TIP@ResourceBundle" 
                                   data:destination="faqLink@standalonePage"
                              />
                           </contents>
                         </tip>

                         <spacer height="15"/>

                         <styledText data:text="REPORT_UPDATED_TEXT@ResourceBundle"/>
                         <spacer width="10"/>
                         <styledText data:text="lastUpdatedKey@rowsTable"/>

                         <switcher data:childName="statType@rowsTable">
                           <case name="showPerf">
                           <flowLayout>
                             <contents>
                               <link data:name="anchor@rowsTable"/>
                               <table width="95%"
                                 data:tableData="row@rowsTable"
                                 data:columnHeaderData="column@rowsTable"
                                 data:value="value@rowsTable"
                                 data:minValue="minValue@rowsTable"
                                 data:blockSize="blockSize@rowsTable"
                                 data:maxValue="maxValue@rowsTable" 
                                 data:name="name@rowsTable"
                                 data:destination="tableDestination@rowsTable"
                                 data:alternateText="alternateText@rowsTable"
                                 data:columnFormats="columnFormats@rowsTable"
                                 >

                               <columnHeaderStamp>
                                 <data:boundText select="columnName"/>
                               </columnHeaderStamp>
                               <contents>
                                 <styledText  data:text="displayNameKey"
                                       data:destination="urlHomepageDestKey" />
                                 <dataScope>
                                   <contents>
                                     <image data:source="urlAddressImage"
                                            data:shortDesc="urlAddressText"
                                            data:destination="urlAddressKey"
                                            targetFrame="_blank"/>
                                     <spacer width="5"/>
                                     <link data:text="urlNameKey" 
                                           data:shortDesc="urlPerfDestText"
                                           data:destination="urlPerfDestKey"
                                      />
                                   </contents>
                                 </dataScope>
                                 <dataScope>
                                   <contents>
                                     <image data:source="img0Src0"
                                            data:width="img0Width0"
                                            data:height="img0Height0"/>
                                     <image data:source="img1Src0"
                                            data:width="img1Width0"
                                            data:height="img1Height0"/>
                                     <image data:source="img2Src0"
                                            data:width="img2Width0"
                                            data:height="img2Height0"/>
                                     <image data:source="img3Src0"
                                            data:width="img3Width0"
                                            data:height="img3Height0"/>
                                     <image data:source="img4Src0"
                                            data:width="img4Width0"
                                            data:height="img4Height0"/>
                                     <image data:source="img5Src0"
                                            data:width="img5Width0"
                                            data:height="img5Height0"/>
                                     <styledText  data:text="urlAvgKey" hAlign="right"/>
                                   </contents>
                                 </dataScope>
                                 <styledText  data:text="urlHitsKey" hAlign="right"/>
                                 <styledText  data:text="urlTotalTimeKey" hAlign="right"/>
                                 <styledText  data:text="employeeNameKey"/>
                                 <styledText  data:text="managerNameKey"/>
                                 <styledText  data:text="organizationNameKey"/>
                                 <switcher data:childName="ann">
                                 <case name="yes">
                                   <image data:source="annotationImage"
                                          data:shortDesc="annotationKey"
                                          data:destination="urlAnnotationDestKey"/>
                                 </case>
                                 <case name="no">
                                   <image data:source="annotationImage"
                                          data:shortDesc="annotationKey"/>
                                 </case>
                               </switcher>
                               </contents>
                               </table>
                             </contents>
                             </flowLayout>
                           </case>
                           <case name="showPerfTotalTime">
                             <flowLayout>
                               <contents>
                                 <link data:name="anchor@rowsTable"/>
                                 <table width="95%"
                                   data:tableData="row@rowsTable"
                                   data:columnHeaderData="column@rowsTable"
                                   data:value="value@rowsTable"
                                   data:minValue="minValue@rowsTable"
                                   data:blockSize="blockSize@rowsTable"
                                   data:maxValue="maxValue@rowsTable" 
                                   data:name="name@rowsTable"
                                   data:destination="tableDestination@rowsTable"
                                   data:alternateText="alternateText@rowsTable"
                                   data:columnFormats="columnFormats@rowsTable"
                                   >

                                 <columnHeaderStamp>
                                   <data:boundText select="columnName"/>
                                 </columnHeaderStamp>
                                   <contents>
                                     <styledText  data:text="displayNameKey"
                                           data:destination="urlHomepageDestKey" />
                                     <dataScope>
                                       <contents>
                                         <image data:source="urlAddressImage"
                                                data:shortDesc="urlAddressText"
                                                data:destination="urlAddressKey"
                                                targetFrame="_blank"/>
                                         <spacer width="5"/>
                                         <link data:text="urlNameKey" 
                                            data:shortDesc="urlPerfDestText"
                                            data:destination="urlPerfDestKey"
                                            />
                                       </contents>
                                     </dataScope>
                                     <dataScope>
                                       <contents>
                                         <image data:source="img0Src0"
                                                data:width="img0Width0"
                                                data:height="img0Height0"/>
                                         <image data:source="img1Src0"
                                                data:width="img1Width0"
                                                data:height="img1Height0"/>
                                         <image data:source="img2Src0"
                                                data:width="img2Width0"
                                                data:height="img2Height0"/>
                                         <image data:source="img3Src0"
                                                data:width="img3Width0"
                                                data:height="img3Height0"/>
                                         <image data:source="img4Src0"
                                                data:width="img4Width0"
                                                data:height="img4Height0"/>
                                         <image data:source="img5Src0"
                                                data:width="img5Width0"
                                                data:height="img5Height0"/>
                                         <styledText  data:text="urlTotalTimeKey" hAlign="right"/>
                                       </contents>
                                     </dataScope>
                                     <styledText  data:text="urlAvgKey" hAlign="right"/>
                                     <styledText  data:text="urlHitsKey" hAlign="right"/>
                                     <styledText  data:text="employeeNameKey"/>
                                     <styledText  data:text="managerNameKey"/>
                                     <styledText  data:text="organizationNameKey"/>
                                     <switcher data:childName="ann">
                                     <case name="yes">
                                       <image data:source="annotationImage"
                                              data:shortDesc="annotationKey"
                                              data:destination="urlAnnotationDestKey" />
                                     </case>
                                     <case name="no">
                                       <image data:source="annotationImage"
                                              data:shortDesc="annotationKey"/>
                                     </case>
                                   </switcher>
                                 </contents>
                                 </table>
                               </contents>
                               </flowLayout>
                              </case>
                            </switcher>
                          </contents>
                        </form>
                      </contents>
                    </stackLayout>
                  </contents>
                </header>
              </contents>
            </stackLayout>
          </marlin:contents>
        </pageLayout>
      </contents>
    </dataScope>
  </baja:content>
  <handlers>
    <event name="goto">
      <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject"
              method="doGoTo"/>
    </event>
    <!-- Used for dropdown refresh option -->
    <!--event name="refToOpt">
      <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject"
              method="doRefreshToOption"/>
    </event-->
    <!-- use this handler to enter this page -->
    <event name="doLoad">
      <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject" 
              method="doLoad"/>
    </event>
    <!-- use this handler to change choice box selection -->
    <event name="changeStandaloneType">
      <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject"
              method="changeStandaloneChoiceType"/>
    </event>
    <event name="changeOwner">
      <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject"
              method="changeStandaloneChoiceType"/>
    </event>
    <event name="changeType">
      <method class="oracle.sysman.eml.mntr.user.OwnerResponseTimeDataObject"
              method="changeChoiceType"/>
    </event>

  </handlers>
</page>
