<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: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.virtualHostIP.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="AddSitePageTrainProperties" 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>
              <!--  <include baja:node="branding" /> -->
              <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="1">
                  <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="2" maxValue="5" destination="addSiteProperties" formName="add_site" formSubmitted="true"/>
                              </contents>
                            </pageButtonBar>
                          </contents>
                        </cellFormat>
                      </contents>
                    </rowLayout>
                  </contents>
                </tableLayout>
                <!-- Body Section -->
                <!-- header data:text="AddSitePageTrainProperties@text" -->
                <header>
                  <boundAttribute name="text">
                    <concat>
                      <dataObject select="ADD_SITE" source="text"/>:&nbsp;<dataObject select="AddSitePageTrainProperties" source="text"/></concat>
                  </boundAttribute>
                  <contents>
                    <rowLayout width="60%">
                      <contents>
                        <stackLayout>
                          <contents>
                            <styledText data:text="siteInstruction@text"  styleClass="OraInstructionText"/>
                            <spacer height="8"/>
                            <labeledFieldLayout>
                              <contents>
                                <spacer height="2"/>
                                <messageTextInput data:prompt="VirtualServerHostIP@text" columns="25" maximumLength="25" required="yes" name="virtualHostIP" data:text="virtualHostIP@input">
                                  <boundMessage select="switchIPError"/>
                                </messageTextInput>
                                <spacer height="2"/>
                                <messageTextInput data:prompt="VirtualServerPort@text" required="yes" columns="5" maximumLength="5" name="listeningPort" data:text="listeningPort@input">
                                  <boundMessage select="portError"/>
                                </messageTextInput>
                                <spacer height="2"/>                            <switcher data:childName="creationUsingNewServers@input">                              <case name="true">
<!-- for 401, remove traffic type intelligence                                
				<messageChoice name="serviceType" data:prompt="serviceType@text" data:selectedValue="serviceType@input" required="yes">
                                  <contents>
                                    <option data:text="appServerType@text" value="1"/>
                                    <option data:text="httpsServerType@text" value="2"/>
                                    <option data:text="ftpServerType@text" value="3"/>
                                    <option data:text="smtpServerType@text" value="4"/>
                                    <option data:text="ldapServerType@text" value="5"/>
                                    <option data:text="dnsServerType@text" value="6"/>
                                    <option data:text="imapServerType@text" value="7"/>
                                    <option data:text="oracleFormServerType@text" value="8"/>
                                    <option data:text="oracleReportServerType@text" value="9"/>
                                    <option data:text="otherServerType2@text" value="10"/>
                                  </contents>
                                </messageChoice>
-->
				<html:input type="hidden" name="serviceType" value="10"/>
                              </case>
                            </switcher>

                                <spacer height="2"/>
                              </contents>
                            </labeledFieldLayout>
                          </contents>                        </stackLayout>
                      </contents>
                    </rowLayout>
                  </contents>
                </header>
              </contents>
              <!-- Footer Section -->
              <!-- 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="2" maxValue="5" destination="addSiteProperties" 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="input">
          <method class="oracle.sysman.eml.target.slb.mgmt.AddSitePage" method="getInputValuesPropertiesPage"/>
        </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="doNextPropertiesPage"/>
    </event>
    <event name="cancel">
      <method class="oracle.sysman.eml.target.slb.mgmt.AddSitePage" method="doCancel"/>
    </event>
  </handlers>
</page>

