<?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.UserMntrMsg"/>
         </data>
        <data name="appHeader">
          <method class="oracle.sysman.eml.mntr.user.ResponseTimeDataObject" 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.ResponseTimeDataObject" method="getRows"/>
        </data>
        <data name="standalonePage">
            <method class="oracle.sysman.eml.mntr.user.ResponseTimeDataObject" method="getStandalonePage"/>
        </data>
        <data name="appHeader">
          <method class="oracle.sysman.eml.mntr.user.ResponseTimeDataObject" method="getAppHeader"/>
        </data>
        <!-- Used for dropdown refresh option -->
        <data name="timeData">
          <method class="oracle.sysman.eml.mntr.user.UserMntrUtil" method="getTimeData"/>
        </data>
        <!-- Used for dropdown refresh option -->
        <data name="refOptionList">
          <method class="oracle.sysman.eml.mntr.user.UserMntrUtil" 
                  method="getRefreshOptionList"/>
        </data>
         <data name="ResourceBundle">
           <bundle class="oracle.sysman.eml.mntr.user.UserMntrMsg"/>
         </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.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>
                        <!-- include baja:node="userRefreshIncl" /-->
                         <form name="perfByForm">
                          <contents>
                            <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_TARGETS@ResourceBundle"/>

                                <spacer width="8"/>
                                <choice name="websiteChoice" columns="15"

                                    data:text="targetChoiceLabel@standalonePage"
                                    data:selectedValue="targetChoiceDisplay@standalonePage"
                                    formSubmitted="true">
                                  <contents marlin:childData="targetChoiceList@standalonePage">
                                    <option marlin:text="typeName"
                                      marlin:value="id"/>
                                   </contents>
                                 </choice>

                                <spacer width="8"/>
                                <styledText data:text="SELECT_WEBSITE_TIMEPERIOD@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"/>
                           <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="websiteNameKey"/>
                                        <dataScope>
                                          <contents>
                                            <image data:source="urlAddressImage"
                                                   data:shortDesc="urlAddressText"
                                                   data:destination="urlAddressKey"
                                                   targetFrame="_blank"/>
                                            <spacer width="5"/>
                                            <link data:text="displayNameKey" 
                                            data:shortDesc="urlPerfDestText"
                                            />
                                          </contents>
                                        </dataScope>
                                        <styledText  data:text="urlAvgKey"/>
                                        <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"/>
                                            </contents>
                                        </dataScope>
                                        <styledText  data:text="urlHitsKey" hAlign="right"/>
                                        <!--styledText  data:text="urlMinKey"/>
                                        <styledText  data:text="urlMaxKey"/-->
                                        <styledText  data:text="urlTotalTimeKey"/>
                                        <!--styledText  data:text="urlStdDevKey"/-->
                                    </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="websiteNameKey"/>
                                        <dataScope>
                                          <contents>
                                            <image data:source="urlAddressImage"
                                                   data:shortDesc="urlAddressText"
                                                   data:destination="urlAddressKey"
                                                   targetFrame="_blank"/>
                                            <spacer width="5"/>
                                            <link data:text="displayNameKey" 
                                            data:shortDesc="urlPerfDestText"
                                            />
                                          </contents>
                                        </dataScope>
                                        <styledText  data:text="urlTotalTimeKey"/>
                                        <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"/>
                                            </contents>
                                        </dataScope>
                                        <styledText  data:text="urlAvgKey"/>
                                        <styledText  data:text="urlHitsKey" hAlign="right"/>
                                        <!--styledText  data:text="urlMinKey"/>
                                        <styledText  data:text="urlMaxKey">
                                        <styledText  data:text="urlStdDevKey"/ -->
                                    </contents>
                                  </table>
                                </contents>
                                </flowLayout>
                               </case>
                               <case name="showLoad">
                               <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="websiteNameKey"/>
                                      <dataScope>
                                        <contents>
                                          <image data:source="urlAddressImage"
                                                 data:destination="urlAddressKey" 
                                                 data:shortDesc="urlAddressText"
                                                 targetFrame="_blank"/>
                                          <spacer width="5"/>
                                          <link data:text="displayNameKey" 
                                          data:shortDesc="urlPerfDestText"
                                          />
                                        </contents>
                                      </dataScope>
                                      <styledText  data:text="urlHitsKey" hAlign="right"/>
                                      <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"/>
                                          </contents>
                                     </dataScope>
                                      <styledText  data:text="urlAvgKey"/>
                                      <!--styledText  data:text="urlMinKey"/>
                                      <styledText  data:text="urlMaxKey"/-->
                                      <styledText  data:text="urlTotalTimeKey"/>
                                      <!-- styledText  data:text="urlStdDevKey"/-->
                                  </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.ResponseTimeDataObject"
              method="doGoTo"/>
    </event>
    <!-- use this handler to enter this page -->
    <event name="doLoad">
      <method class="oracle.sysman.eml.mntr.user.ResponseTimeDataObject" 
              method="doLoad"/>
    </event>
    <!-- use this handler to change choice box selection -->
    <event name="changeStandaloneType">
      <method class="oracle.sysman.eml.mntr.user.ResponseTimeDataObject"
              method="changeStandaloneChoiceType"/>
    </event>
    <event name="changeType">
      <method class="oracle.sysman.eml.mntr.user.ResponseTimeDataObject"
              method="changeChoiceType"/>
    </event>

  </handlers>
</page>
