<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:ui="http://xmlns.oracle.com/uix/ui"
      xmlns:baja="http://bali.us.oracle.com/cabo/baja"
      xmlns:data="http://xmlns.oracle.com/uix/ui"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
      xmlns:uix="http://bali.us.oracle.com/cabo/marlin">
  <baja:head xmlns="http://www.w3.org/TR/REC-html40">
  </baja:head>
  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin" xmlns:marlin="http://bali.us.oracle.com/cabo/marlin">
    <dataScope xmlns="http://bali.us.oracle.com/cabo/marlin"
           xmlns:data="http://bali.us.oracle.com/cabo/marlin"
           xmlns:uix="http://bali.us.oracle.com/cabo/marlin"
           xmlns:baja="http://bali.us.oracle.com/cabo/baja">
      <contents>
            <html:title>
          <text>
            <boundAttribute name="text">
              <concat>
                <dataObject select="comm_win_title" source="win_title"/>
                <dataObject select="sites" source="SLBBundle"/>
              </concat>
            </boundAttribute>
          </text>
        </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>
          <mediumAdvertisement>
            <include baja:node="../../../oemBanner"/>
          </mediumAdvertisement>
          <globalButtons>
            <include baja:node="../../../globalButtonBar"/>
          </globalButtons>
          <tabs>
            <include baja:node="../../../globalTabs"/>
          </tabs>
          <pageHeader>
            <include baja:node="../../../globalHeader"/>
          </pageHeader>
          <copyright>
            <include baja:node="../../../copyright"/>
          </copyright>
          <privacy/>
          <location>
            <include baja:node="../../../breadCrumbs"/>
          </location>
          <contents>
            <header data:text="sites@SLBBundle">
              <contents>
                        <tableLayout width="100%">
                          <contents>
                            <rowLayout>
                              <contents>
                                <cellFormat>
                                  <contents>
                                    <rowLayout hAlign="right">
                                      <contents>
                                        <include baja:node="timestamp"/>
                                        <spacer width="8"/>
                                        <image data:source="refreshIcon@refreshButtonData"
                                               data:destination="refreshUrl@refreshButtonData"
                                               data:shortDesc="REFRESH_ICON_BUBBLE@SLBBundle"/>
                                        <spacer width="8"/>
                                        <button data:text="showButtonText@site_list"
                                                      baja:event="show"
                                                      data:rendered="rendered@site_list"/>
                                      </contents>
                                    </rowLayout>
                                  </contents>
                                </cellFormat>
                              </contents>
                            </rowLayout>
                          </contents>
                        </tableLayout>

                        <tableLayout width="100%">
                          <contents>
                            <rowLayout hAlign="right">
                              <contents>
                                <switcher data:childName="hasMgmtPriv@user_target_priv">
                                   <case name="true">
                                     <button data:text="Create@SLBBundle" baja:event="create"/>
                                   </case>
                                 </switcher>
                              </contents>
                            </rowLayout>
                          </contents>
                        </tableLayout>
                    <form name="tableform" method="post">
                      <contents>
                        <table data:summary="Site_VirtualSer_Table_Summary@SLBBundle" name="sitelist" data:blockSize="blockSize@site_list"
                          partialRenderMode="self" id="siteList_tableID"
                          data:maxValue="maxValue@site_list" data:value="value@site_list"
                          data:columnHeaderData="column@site_list" width="100%"
                          data:tableData="row@site_list"
                          data:columnFormats="colformat@columnFormatData">
                        <tableFormat tableBanding="rowBanding" bandingInterval="1"/>
                          <columnHeaderStamp>
                            <sortableHeader data:text="text" data:sortable="sortable"/>
                          </columnHeaderStamp>
                          <tableSelection>
                            <multipleSelection data:rendered="hasMgmtPriv@user_target_priv">
                              <contents>
                                <!--<button data:text="Start@SLBBundle" destination="unimpl" />-->
                                <!--<button data:text="Stop@SLBBundle" destination="unimpl" />-->
                                <switcher data:childName="hasMgmtPriv@user_target_priv">
                                   <case name="true">
                                    <flowLayout>
                                      <contents>
                                      <submitButton data:text="Enable@SLBBundle" baja:event="enable" />
                                      <submitButton data:text="Disable@SLBBundle" baja:event="disable" />
                                      <submitButton data:text="Delete@SLBBundle" baja:event="delete"/>
                                      </contents>
                                    </flowLayout>
                                   </case>
                                 </switcher>
                              </contents>
                            </multipleSelection>
                          </tableSelection>
                          <contents>
                            <link uix:text="site_name" uix:destination="admin"/>
                            <styledText uix:text="site_host"/>
                            <image uix:source="site_status"/>
                            <styledText uix:text="site_state"/>
                            <link uix:text="site_bits_in_sec" uix:destination="bisGraphLink"/>
                            <link data:rendered="bigip_render@type" uix:text="site_bits_out_sec" uix:destination="bosGraphLink"/>
                            <link uix:text="service_current_sessions" uix:destination="csGraphLink"/>
                            <link uix:text="connection_sec" uix:destination="connsGraphLink"/>
                            <link uix:text="service_highest_sessions" uix:destination="hsGraphLink"/>
                            <link uix:text="service_total_sessions" uix:destination="tsGraphLink"/>
                            <formValue name="site_name" data:value="site_name"/>
<!--
                            <formValue name="site_ipaddress" data:value="site_ipaddress"/>
                            <formValue name="service_port" data:value="service_port"/>
-->
                          </contents>
                        </table>
                      </contents>
                    </form>
                  </contents>
                </header>
              </contents>
            </pageLayout>
      </contents>
      <provider>
        <data name="site_list">
          <method class="oracle.sysman.eml.target.slb.mgmt.SlbSitePage" method="getSiteList"/>
        </data>
        <data name="SLBBundle">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="columnFormatData">
          <inline>
            <colformat/>
            <colformat/>
            <colformat columnDataFormat="iconButtonFormat"/>
            <colformat/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
          </inline>
        </data>
        <data name="user_target_priv">
          <method class="oracle.sysman.eml.target.slb.mgmt.RoleBasedMgmt" method="getUserTargetPriv"/>
        </data>
        <data name="win_title">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getCommonWinTitle"/>
        </data>
        <data name="refreshButtonData">
          <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="getRefreshButtonData"/>
        </data>
        <data name="type">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getUixSlbType"/>
        </data>
      </provider>
    </dataScope>
  </baja:content>
  <handlers>
    <!-- site operation -->
    <event name="start">
      <method class="oracle.sysman.eml.target.slb.mgmt.SlbSitePage" method="startSite"/>
    </event>
    <event name="stop">
      <method class="oracle.sysman.eml.target.slb.mgmt.SlbSitePage" method="stopSite"/>
    </event>
    <event name="create">
      <method class="oracle.sysman.eml.target.slb.mgmt.AddSitePage" method="createSite"/>
    </event>
    <event name="delete">
      <method class="oracle.sysman.eml.target.slb.mgmt.DeleteServicePage" method="deleteSite"/>
    </event>
    <event name="enable">
      <method class="oracle.sysman.eml.target.slb.mgmt.EnableServicePage" method="enableSite"/>
    </event>
    <event name="disable">
      <method class="oracle.sysman.eml.target.slb.mgmt.DisableServicePage" method="disableSite"/>
    </event>
    <event name="sort">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doSort"/>
    </event>
    <event name="goto">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doGoto"/>
    </event>
    <event name="refresh">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doRefresh"/>
    </event>
    <event name="show">
      <method class="oracle.sysman.eml.target.slb.common.SLBCommonUIX" method="doShow"/>
    </event>
    <event name="null">
      <method class="oracle.sysman.eml.target.slb.common.SLBOnlineHelp" method="setHelpPage"/>
    </event>
    <event name="null">
      <method class="oracle.sysman.eml.target.slb.common.SLBOnlineHelp" method="setHelpPage"/>
    </event>
  </handlers>

</page>
