<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="slbRealServers" 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="slbRealServers@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@appserver_list"
                                                      baja:event="show"
                                                      data:rendered="rendered@appserver_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="Add@SLBBundle" baja:event="addAppReal"/>
                                       </case>
                                     </switcher>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </tableLayout>
                        <form name="appserver_form">
                          <contents>
                            <table data:summary="PoolApps_AppSer_Table_Summary@SLBBundle" name="appserver_list" data:blockSize="blockSize@appserver_list"
                          partialRenderMode="self" id="appserverList_tableID"
                          data:maxValue="maxValue@appserver_list" data:value="value@appserver_list"
                          data:columnHeaderData="column@appserver_list" width="100%"
                          data:tableData="row@appserver_list"
                          data:columnFormats="colformat@columnFormatData">
                          <columnHeaderStamp>
                            <sortableHeader data:text="text" data:sortable="sortable"/>
                          </columnHeaderStamp>
                              <boundAttribute name="columnHeaderData">
                                <dataObject select="column" source="appserver_list"/>
                              </boundAttribute>
                              <tableSelection>
                                <singleSelection data:disabled="disKey" data:rendered="hasMgmtPriv@user_target_priv">
                                  <contents>
                                    <switcher data:childName="hasMgmtPriv@user_target_priv">
                                       <case name="true">
                                          <submitButton data:text="Remove@SLBBundle" baja:event="deleteApp"/>
                                       </case>
                                     </switcher>
                                  </contents>
                                </singleSelection>
                              </tableSelection>
                              <contents>
                                <styledText uix:text="server_name" uix:destination="server_link"/>
                                <image uix:source="server_status"/>
                                <styledText uix:text="server_weight"/>
                                <link uix:text="server_bits_in_sec" uix:destination="serverBisGraphLink"/>
                                <link data:rendered="bigip_render@type" uix:text="server_bits_out_sec" uix:destination="serverBosGraphLink"/>
                               <!--
                                <styledText uix:text="server_cpu_usage"/>
                                <styledText uix:text="server_memory_usage"/>
                               -->
                                <link uix:text="server_curconns" uix:destination="serverCurConnGraphLink"/>
                                <link uix:text="server_consec" uix:destination="serverConSecGraphLink"/>
                                <link uix:text="server_maxconns" uix:destination="serverMaxConnGraphLink"/>
                                <link uix:text="server_totconns" uix:destination="serverTotConnGraphLink"/>
                                <styledText uix:text="server_conntimeout"/>
                                <formValue name="server_ipaddress" data:value="server_ipaddress"/>
				<switcher data:childName="slb_type@type">
                              	 <case name="slb_bigip">
                                    <formValue name="server_port" data:value="server_port"/>
				 </case>
				</switcher>
                              </contents>
                            </table>
                          </contents>
                        </form>
                      </contents>
                    </header>
                  </contents>
                </pageLayout>
      </contents>
      <provider>
        <data name="appserver_list">
          <method class="oracle.sysman.eml.target.slb.mgmt.PoolAppsPage" method="getAppServerList"/>
        </data>
        <data name="SLBBundle">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="win_title">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getCommonWinTitle"/>
        </data>
        <data name="type">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getUixSlbType"/>
        </data>
        <data name="user_target_priv">
          <method class="oracle.sysman.eml.target.slb.mgmt.RoleBasedMgmt" method="getUserTargetPriv"/>
        </data>
        <data name="columnFormatData">
          <inline>
            <colformat/>
            <colformat columnDataFormat="iconButtonFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat columnDataFormat="numberFormat"/>
            <colformat/>
          </inline>
        </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>
  <!-- Event Handlers -->
  <handlers>
    <event name="addAppReal">
      <method class="oracle.sysman.eml.target.slb.mgmt.ModifyPoolPropertyPage" method="getModifyPoolPage"/>
    </event>
    <event name="modifyApp">
      <method class="oracle.sysman.eml.target.slb.mgmt.PoolAppsPage" method="modifyAppServer"/>
    </event>
    <event name="deleteApp">
      <method class="oracle.sysman.eml.target.slb.mgmt.PoolAppsPage" method="deleteAppServer"/>
    </event>
    <event name="startApp">
      <method class="oracle.sysman.eml.target.slb.mgmt.PoolAppsPage" method="startAppServer"/>
    </event>
    <event name="stopApp">
      <method class="oracle.sysman.eml.target.slb.mgmt.PoolAppsPage" method="stopAppServer"/>
    </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>
    </handlers>
  <!-- End of Event Handlers -->
</page>
