<page xmlns="http://bali.us.oracle.com/cabo/baja" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:marlin="http://bali.us.oracle.com/cabo/marlin" xmlns:uix="http://bali.us.oracle.com/cabo/marlin" xmlns:data="http://bali.us.oracle.com/cabo/marlin" xmlns:baja="http://bali.us.oracle.com/cabo/baja">
  <head>
  </head>
  <baja:content xmlns="http://bali.us.oracle.com/cabo/marlin" xmlns:marlin="http://bali.us.oracle.com/cabo/marlin">
   <body onLoad="loadIt();">
    <contents>
     <dataScope>
       <contents>
        <script>
         <contents>
          function loadIt()
          {
           document.add_real_server.realServerHostIP.focus();
          }
         </contents>
        </script>
        <html:title>
          <text>
            <boundAttribute name="text">
              <concat>
                <dataObject select="comm_win_title" source="win_title"/>
                <dataObject select="ADD_REAL_SERVER" source="text"/>:&nbsp;
                <dataObject select="RealServerPageTrainChooseServers" source="text"/>
              </concat>
            </boundAttribute>
          </text>
        </html:title>
        <form name="add_real_server" method="post">
          <contents>
    	  <switcher data:childName="hasMgmtPriv@user_target_priv">
           <case name="true">
            <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/>
              <!-- Train -->
              <location>
                <train selectedIndex="0">
                  <contents>
                    <link data:text="RealServerPageTrainChooseServers@text"/>
                    <link data:text="RealServerPageTrainChoosePools@text"/>
                    <link data:text="RealServerPageTrainSummary@text"/>
                  </contents>
                </train>
              </location>
              <!-- CONTENTS -->
              <contents>
                <tableLayout width="100%">
                  <contents>
                    <rowLayout hAlign="right">
                      <contents>
                        <cellFormat>
                          <contents>
                            <styledText text=""/>
                          </contents>
                        </cellFormat>
                        <cellFormat>
                          <contents>
                            <pageButtonBar>
                              <contents>
                                <submitButton unvalidated="true" data:text="Cancel@text" data:shortDesc="Cancel@text" name="event" value="cancel"/>
                                <navigationBar name="nav" value="1" maxValue="3" destination="addRealServerProperties" formName="add_real_server" formSubmitted="true"/>
                              </contents>
                            </pageButtonBar>
                          </contents>
                        </cellFormat>
                      </contents>
                    </rowLayout>
                  </contents>
                </tableLayout>
                <!-- Body Section -->
                <!-- header data:text="RealServerPageTrainChooseServers@text" -->
                <header>
                  <boundAttribute name="text">
                    <concat>
                      <dataObject select="ADD_REAL_SERVER" source="text"/>:&nbsp;<dataObject select="RealServerPageTrainChooseServers" source="text"/></concat>
                  </boundAttribute>

                  <contents>
                    <inlineMessage>
                      <boundMessage select="processingError"/>
                    </inlineMessage>
                  </contents>
                  <contents>
                    <styledText data:text="RealServerChooseServerTip@text"  styleClass="OraInstructionText"/>
                  </contents>
                  <!-- start add servers from monitored targets -->
                  <contents>
                    <header data:text="PoolPageEMTargetHeader@text">
                      <contents>
                        <styledText data:text="PoolPageEMTargetTip@text"  styleClass="OraInstructionText"/>
                        <shuttle name="selectTarget" leadingHeader="Available Targets" trailingHeader="Selected Targets" reorderable="false" size="1">
                          <filter>
                            <rowLayout>
                              <contents>
                                <styledText data:text="Type@text"/>
                                <spacer width="10"/>
                                <choice name="itemTypeChoice" columns="50">
                                  <contents marlin:childData="typerow@availableTargetTypes">
                                    <option marlin:text="available" marlin:value="availID" marlin:selected="selected"/>
                                  </contents>
                                </choice>
                                <spacer width="10"/>
                                <submitButton data:text="Go@text" data:shortDesc="Go@text" name="event" value="Go"/>
                              </contents>
                            </rowLayout>
                          </filter>
                          <leading>
                            <list multiple="true">
                              <contents marlin:childData="rowitem@availableTargetTypes">
                                <option marlin:text="available" marlin:value="availID"/>
                              </contents>
                            </list>
                          </leading>
                          <trailing>
                            <list multiple="true">
                              <contents marlin:childData="selectedrowitem@availableTargetTypes">
                                <option marlin:text="selected" marlin:value="selID"/>
                              </contents>
                            </list>
                          </trailing>
                        </shuttle>
                      </contents>
                    </header>
                  </contents>
                  <!-- end add existing targets -->
                  <!-- start add server manual -->
                  <contents>
                    <header data:text="RealServerPageManualServersHeader@text">
                      <contents>
                        <tableLayout width="30%" cellSpacing="5">
                          <contents>
                            <rowLayout vAlign="top" hAlign="left">
                              <contents>
                                <styledText styleClass="OraInstructionText">
                                  <contents>
                                    <data:boundText select="serverHostIPAddressLabel" source="text"/>
                                  </contents>
                                </styledText>
                                <cellFormat>
                                  <contents>
                                    <styledText styleClass="OraInstructionText">
                                      <contents>
                                        <data:boundText select="serverPortLabel" source="text"/>
                                      </contents>
                                    </styledText>
                                  </contents>
                                </cellFormat>
                              </contents>
                            </rowLayout>
                            <rowLayout>
                              <contents>
                                <messageTextInput tip="" prompt="" columns="25" maximumLength="25" name="realServerHostIP" data:text="realServerHostIP@input">
                                  <boundMessage select="realServerIPError"/>
                                </messageTextInput>
                                <messageTextInput prompt="" columns="5" maximumLength="5" name="realServerPort" data:text="realServerPort@input">
                                  <boundMessage select="realServerPortError"/>
                                </messageTextInput>
                                <include data:node="options1@manual_server_list"/>
                              </contents>
                            </rowLayout>
                          </contents>
                        </tableLayout>
                      </contents>
                    </header>
                  </contents>
                  <!-- end add server manually -->
                  <!-- start old real server properties
                    <contents>
                      <labeledFieldLayout width="50%" >
                        <contents>
                          <spacer height="10" />
                         <spacer height="2" />
                         <messageTextInput tip="" prompt="" columns="25"  maximumLength="25" name="realServerIP" data:text="realServerIP@input">
                            <boundMessage select="realServerIPError"/>
                         </messageTextInput>
                         <spacer height="2" />
                        <messageTextInput prompt=""  columns="5" maximumLength="5" name="realServerPort" data:text="realServerPort@input">
                            <boundMessage select="realServerPortError"/>
                        </messageTextInput>                        </contents>
                      </labeledFieldLayout>                    </contents> end old real server properties -->
                </header>
              </contents>
              <!-- Page Buttons Section -->
              <contentFooter>
                <pageButtonBar>
                  <contents>
                    <submitButton unvalidated="true" data:text="Cancel@text" data:shortDesc="Cancel@text" name="event" value="cancel"/>
                    <navigationBar name="nav" value="1" maxValue="3" destination="addRealServerProperties" formName="add_real_server" formSubmitted="true"/>
                  </contents>
                </pageButtonBar>
              </contentFooter>
            </pageLayout>
          </case>
          </switcher>
          </contents>
        </form>
      </contents>
      <provider>
        <data name="text">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="input">
          <method class="oracle.sysman.eml.target.slb.mgmt.AddRealServerPage" method="getInputValues"/>
        </data>
        <data name="availableTargetTypes">
          <method class="oracle.sysman.eml.target.slb.mgmt.TargetSelection" method="getTargetsListData"/>
        </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>
      </provider>
    </dataScope>
    </contents>
   </body>
  </baja:content>
  <handlers>
    <event name="goto">
      <method class="oracle.sysman.eml.target.slb.mgmt.AddRealServerPage" method="doNextPropertiesPage"/>
    </event>
    <event name="cancel">
      <method class="oracle.sysman.eml.target.slb.mgmt.AddRealServerPage" method="doCancel"/>
    </event>
    <event name="Go">
      <method class="oracle.sysman.eml.target.slb.mgmt.AddRealServerPage" method="handleTargetListPageEvents"/>
    </event>
  </handlers>
</page>

