<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_site.appPoolName.focus();
          }
         </contents>
        </script>
        <html:title>
          <text>
            <boundAttribute name="text">
              <concat>
                <dataObject select="comm_win_title" source="win_title"/>
                <dataObject select="ADD_SITE" source="text"/>:&nbsp;
                <dataObject select="AddSitePageTrainReview" source="text"/>
              </concat>
            </boundAttribute>
          </text>
        </html:title>
        <form name="add_site" 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="3">
                  <contents>
                    <link data:text="AddSitePageTrainCreationMethod@text"/>
                    <link data:text="AddSitePageTrainProperties@text"/>
                    <link data:text="AddSitePageTrainSelectResources@text"/>
                    <link data:text="AddSitePageTrainReview@text"/>
                    <link data:text="AddSitePageTrainSummary@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="4" maxValue="5" destination="addSiteMoreInfo" formName="add_site" formSubmitted="true"/>
                              </contents>
                            </pageButtonBar>
                          </contents>
                        </cellFormat>
                      </contents>
                    </rowLayout>
                  </contents>
                </tableLayout>
                <!-- header data:text="AddSitePageTrainReview@text" -->
                <header>
                  <boundAttribute name="text">
                    <concat>
                      <dataObject select="ADD_SITE" source="text"/>:&nbsp;<dataObject select="AddSitePageTrainReview" source="text"/></concat>
                  </boundAttribute>

                  <contents>
                    <styledText data:text="moreInfoTip@input"  styleClass="OraInstructionText"/>
                  </contents>
                  <!-- Body Section -->
                  <contents>
                   <tableLayout>

                  <!-- start app pool properties -->
                    <contents>
                     <rowLayout>
                      <contents>
                       <header data:text="AddSitePageAppServerPool@text">
                        <contents>
                         <labeledFieldLayout width="400">
                          <contents>
                            <messageTextInput data:prompt="AddSitePagePoolName@text" shortDesc="poolName" columns="40" maximumLength="40" name="appPoolName" data:text="appPoolName@input">
                              <boundMessage select="appPoolNameError"/>
                            </messageTextInput>
                            <switcher data:childName="slb_type@type">
                              <case name="slb_bigip">
                                <messageChoice name="appPoolLBP" data:prompt="AddSitePageLBP@text" data:selectedValue="appPoolLBP@input">
                                  <contents>
                                    <option data:text="BIGIP_LBP_RoundRobin@textLBP" value="0"/>
                                    <option data:text="BIGIP_LBP_RatioNodeAddress@textLBP" value="1"/>
                                    <option data:text="BIGIP_LBP_FastestNodeAddress@textLBP" value="2"/>
                                    <option data:text="BIGIP_LBP_LeastConnectionsNodeAddress@textLBP" value="3"/>
                                    <option data:text="BIGIP_LBP_RatioMember@textLBP" value="4"/>
                                    <option data:text="BIGIP_LBP_LeastConnectionsMember@textLBP" value="5"/>
                                    <option data:text="BIGIP_LBP_ObservedMember@textLBP" value="6"/>
                                    <option data:text="BIGIP_LBP_PredictiveMember@textLBP" value="7"/>
                                    <option data:text="BIGIP_LBP_ObservedNodeAddress@textLBP" value="8"/>
                                    <option data:text="BIGIP_LBP_PredictiveNodeAddress@textLBP" value="9"/>
                                    <option data:text="BIGIP_LBP_DynamicRatio@textLBP" value="10"/>
                                  </contents>
                                </messageChoice>
                              </case>
                              <case name="slb_nortel">
                                <messageChoice name="appPoolLBP" data:prompt="AddSitePageLBP@text" data:selectedValue="appPoolLBP@input">
                                  <contents>
                                    <option data:text="NORTEL_LBP_RoundRobin@textLBP" value="1"/>
                                    <option data:text="NORTEL_LBP_LeastConnection@textLBP" value="2"/>
                                    <option data:text="NORTEL_LBP_MinCacheMisses@textLBP" value="3"/>
                                    <option data:text="NORTEL_LBP_Hash@textLBP" value="4"/>
                                  </contents>
                                </messageChoice>
                              </case>
                            </switcher>
                            <!-- URL health check will be added later
                          <messageTextInput data:prompt="healthURL@text" shortDesc="healthCheckURL" columns="80" maximumLength="100"  name="healthCheckURL" data:text="healthCheckURL@input">
                          </messageTextInput>
                          -->
                          </contents>
                        </labeledFieldLayout>
                        <spacer height="10"/>
                        <rowLayout hAlign="left" width="400">
                          <contents>
                            <rowLayout hAlign="right" width="300">
                              <contents>
                                <table data:tableData="appServers@input" cellSpacing="20" name="Pool Members" data:text="AddSitePagePoolMembers@text" alternateText="No data" border="0" width="100%">
                                  <columnHeaderStamp>
                                    <boundText select="value"/>
                                  </columnHeaderStamp>
                                  <boundAttribute name="columnHeaderData">
                                    <dataObject select="column" source="input"/>
                                  </boundAttribute>
                                  <contents>
                                    <styledText data:text="ip"/>
                                    <styledText data:text="port"/>
                                  </contents>
                                </table>
                              </contents>
                            </rowLayout>
                          </contents>
                        </rowLayout>
                      </contents>
                     </header>
                    </contents>
                   </rowLayout>
                  </contents>
                  <!-- end app pool properties -->

                  <!-- start cache pool properties -->
                  <contents>
                   <rowLayout>
                    <contents>
                     <switcher data:childName="hasCacheServers@input">
                       <case name="true">
                        <header data:text="AddSitePageCacheServerPool@text">
                          <contents>
                            <labeledFieldLayout width="400">
                              <contents>
                                <messageTextInput data:prompt="AddSitePagePoolName@text" shortDesc="poolName" columns="40" maximumLength="40" name="cachePoolName" data:text="cachePoolName@input">
                                  <boundMessage select="cachePoolNameError"/>
                                </messageTextInput>
                                <switcher data:childName="slb_type@type">
                                  <case name="slb_bigip">
                                    <messageChoice name="cachePoolLBP" data:prompt="AddSitePageLBP@text" data:selectedValue="cachePoolLBP@input">
                                      <contents>
                                        <option data:text="BIGIP_LBP_RoundRobin@textLBP" value="0"/>
                                        <option data:text="BIGIP_LBP_RatioNodeAddress@textLBP" value="1"/>
                                        <option data:text="BIGIP_LBP_FastestNodeAddress@textLBP" value="2"/>
                                        <option data:text="BIGIP_LBP_LeastConnectionsNodeAddress@textLBP" value="3"/>
                                        <option data:text="BIGIP_LBP_RatioMember@textLBP" value="4"/>
                                        <option data:text="BIGIP_LBP_LeastConnectionsMember@textLBP" value="5"/>
                                        <option data:text="BIGIP_LBP_ObservedMember@textLBP" value="6"/>
                                        <option data:text="BIGIP_LBP_PredictiveMember@textLBP" value="7"/>
                                        <option data:text="BIGIP_LBP_ObservedNodeAddress@textLBP" value="8"/>
                                        <option data:text="BIGIP_LBP_PredictiveNodeAddress@textLBP" value="9"/>
                                        <option data:text="BIGIP_LBP_DynamicRatio@textLBP" value="10"/>
                                      </contents>
                                    </messageChoice>
                                  </case>
                                  <case name="slb_nortel">
                                    <messageChoice name="cachePoolLBP" data:prompt="AddSitePageLBP@text" data:selectedValue="cachePoolLBP@input">
                                      <contents>
                                        <option data:text="NORTEL_LBP_RoundRobin@textLBP" value="1"/>
                                        <option data:text="NORTEL_LBP_LeastConnection@textLBP" value="2"/>
                                        <option data:text="NORTEL_LBP_MinCacheMisses@textLBP" value="3"/>
                                        <option data:text="NORTEL_LBP_Hash@textLBP" value="4"/>
                                      </contents>
                                    </messageChoice>
                                  </case>
                                </switcher>
                              </contents>
                            </labeledFieldLayout>
                            <spacer height="10"/>
                            <rowLayout hAlign="left" width="400">
                              <contents>
                                <rowLayout hAlign="right" width="300">
                                  <contents>
                                    <table data:tableData="cacheServers@input" cellSpacing="20" name="Pool Member" data:text="AddSitePagePoolMembers@text" alternateText="No data" border="0" width="100%">
                                      <columnHeaderStamp>
                                        <boundText select="value"/>
                                      </columnHeaderStamp>
                                      <boundAttribute name="columnHeaderData">
                                        <dataObject select="column" source="input"/>
                                      </boundAttribute>
                                      <contents>
                                        <styledText data:text="ip"/>
                                        <styledText data:text="port"/>
                                      </contents>
                                    </table>
                                  </contents>
                                </rowLayout>
                              </contents>
                            </rowLayout>
                          </contents>
                        </header>
                       </case>
                      </switcher>
                    </contents>
                   </rowLayout>
                  </contents>
                  <!-- end cache pool properties -->

                  <!-- start cache rule/text properties -->
                  <contents>
                   <rowLayout>
                    <contents>
                     <switcher data:childName="slb_type@type">
                      <case name="slb_bigip">
                        <switcher data:childName="hasCacheServers@input">
                          <case name="true">
                            <header data:text="AddSitePageCacheRule@text">
                              <contents>
                                <labeledFieldLayout width="400">
                                  <contents>
                                    <messageTextInput data:prompt="AddSitePageRuleName@text" shortDesc="ruleName" columns="40" maximumLength="40" name="cacheRuleName" data:text="cacheRuleName@input">
                                      <boundMessage select="cacheRuleNameError"/>
                                    </messageTextInput>
                                    <messageTextInput data:prompt="AddSitePageRuleText@text" shortDesc="ruleText" rows="5" columns="40" maximumLength="4000"  wrap="soft" name="cacheRuleText" data:text="cacheRuleText@input">
                                      <boundMessage select="cacheRuleTextError"/>
                                    </messageTextInput>
                                  </contents>
                                </labeledFieldLayout>
                              </contents>
                            </header>
                          </case>
                        </switcher>
                       </case>
                     </switcher>
                    </contents>
                   </rowLayout>
                  </contents>
                  <!-- end cache rule/text properties -->

                 </tableLayout>
                </contents>
                <!-- end contents -->

               </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="4" maxValue="5" destination="addSiteMoreInfo" formName="add_site" 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="textLBP">
          <method class="oracle.sysman.eml.target.slb.common.SLB" method="getLoadBalancingPolicyStrings"/>
        </data>
        <data name="SLBBundle">
          <bundle class="oracle.sysman.eml.rsc.target.slb.SLBBundle"/>
        </data>
        <data name="input">
          <method class="oracle.sysman.eml.target.slb.mgmt.AddSitePage" method="getInputValuesMoreInfoPage"/>
        </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="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.AddSitePage" method="doNextMoreInfoPage"/>
    </event>
    <event name="Go">
      <method class="oracle.sysman.eml.target.slb.mgmt.AddSitePage" method="handleTargetListPageEvents"/>
    </event>
    <event name="cancel">
      <method class="oracle.sysman.eml.target.slb.mgmt.AddSitePage" method="doCancel"/>
    </event>
  </handlers>
</page>

