<%@page contentType="text/html;charset=UTF-8"%>
<%--
 ******************************************************************************* 
 * $RCSfile: Wizard10.jsp,v $
 *
 * Description: 
 *
 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
 * Use of this product is subject to license terms.
 *
 *******************************************************************************
 * Source Code Control System - Header
 *
 * $Header: /sgnome/cvsroots/jds/apoc/web/manager/jsp/contexts/Wizard10.jsp,v 1.7 2006/01/20 11:46:46 slewis Exp $
 *******************************************************************************
--%> 
<%@ page language="java" %> 
<%@ page import="com.iplanet.jato.view.ViewBean" %>
<%@taglib uri="/jato.tld" prefix="jato"%> 
<%@taglib uri="/cc.tld" prefix="cc"%>

<!--
  // The wizard framework provides a javascript object instance
  // called WizardWindow_Wizard. This object has methods that
  // allow the pagelet to disable/enable buttons and set the
  // page's initial focus.
  //
  // References to the methods of WizardWindow_Wizard if not conditional
  // during runtime, that must result in effects when the page is displayed
  // must be placed in a Javascript function and that function name
  // must be assigned to WizardWindow_Wizard.pageInit.
  // The framework will call WizardWindow_Wizard.pageInit() after the
  // wizard tag has been rendered.
  //
  // script statements must appear within at least the first
  // <td> element since HTML validation objects to the appearance
  // of <script> betwee the <table> element and the first <tr>
  // element.
-->
<jato:pagelet>

<cc:i18nbundle id="apocBundle"
 baseName="com.sun.apoc.manager.resource" />

<%-- For now assume we're still presenting the components in a table
     which is output by the framework and components are
     in rows and cells
--%>

<tr>
    <td valign="top" align="left" rowspan="1" colspan="1">
    <script type="text/javascript">
      function wizardPageInit() {
          WizardWindow_Wizard.setFocusElementName(
            "WizardWindow.Wizard.nextButton");
      }
      WizardWindow_Wizard.pageInit = wizardPageInit;
      document.onkeypress = onKeyPress;
      function onKeyPress(event){
          if (event.keyCode==13) {
              var f=document.wizWinForm;
              f.elements['WizardWindow.Wizard.finishButton'].click() ;
          }
      }

    var m_OpenerTop = top.opener;
    while (m_OpenerTop.top.opener!=null) {
        m_OpenerTop = m_OpenerTop.top.opener;
    }
    m_OpenerTop = m_OpenerTop.top;

    setInterval("setWindowHandle()", 1000);
    function setWindowHandle() {
        m_OpenerTop.m_ContextWizardWindow= top;
    }      
    </script>
    <cc:label name="NameLabel" styleLevel="2"
            elementName="NameLabel"
            bundleID="apocBundle"/>
    </td>
    <td valign="top" align="left" rowspan="1" colspan="1">
    <cc:label name="NameValue" styleLevel="3"
            elementName="NameValue"
            bundleID="apocBundle"/>
    </td>
</tr>
<tr>
    <td valign="top" align="left" rowspan="1" colspan="1">

    <cc:label name="TypeLabel" styleLevel="2"
            elementName="TypeLabel"
            bundleID="apocBundle"/>
    </td>
    <td valign="top" align="left" rowspan="1" colspan="1">
    <cc:label name="TypeValue" styleLevel="3"
            elementName="TypeValue"
            bundleID="apocBundle"/>
    </td>
</tr>
<jato:content name="DisplayLDAPInfo">
    <tr>
        <td valign="top" align="left" rowspan="1" colspan="1">

        <cc:label name="HostLabel" styleLevel="2"
                elementName="HostLabel"
                bundleID="apocBundle"/>
        </td>
        <td valign="top" align="left" rowspan="1" colspan="1">
        <cc:label name="HostValue" styleLevel="3"
                elementName="HostValue"
                bundleID="apocBundle"/>
        </td>
    </tr>
    <tr>
        <td valign="top" align="left" rowspan="1" colspan="1">

        <cc:label name="PortLabel" styleLevel="2"
                elementName="PortLabel"
                bundleID="apocBundle"/>
        </td>
        <td valign="top" align="left" rowspan="1" colspan="1">
        <cc:label name="PortValue" styleLevel="3"
                elementName="PortValue"
                bundleID="apocBundle"/>
        </td>
    </tr>
    <tr>
        <td valign="top" align="left" rowspan="1" colspan="1">

        <cc:label name="BaseDnLabel" styleLevel="2"
                elementName="BaseDnLabel"
                bundleID="apocBundle"/>
        </td>
        <td valign="top" align="left" rowspan="1" colspan="1">
        <cc:label name="BaseDnValue" styleLevel="3"
                elementName="BaseDnValue"
                bundleID="apocBundle"/>
        </td>
    </tr>
    <tr>
        <td valign="top" align="left" rowspan="1" colspan="1">

        <cc:label name="UserDnLabel" styleLevel="2"
                elementName="UserDnLabel"
                bundleID="apocBundle"/>
        </td>
        <td valign="top" align="left" rowspan="1" colspan="1">
        <cc:label name="UserDnValue" styleLevel="3"
                elementName="UserDnValue"
                bundleID="apocBundle"/>
        </td>
    </tr>
    <tr>
        <td valign="top" align="left" rowspan="1" colspan="1">

        <cc:label name="VendorLabel" styleLevel="2"
                elementName="VendorLabel"
                bundleID="apocBundle"/>
        </td>
        <td valign="top" align="left" rowspan="1" colspan="1">
        <cc:label name="VendorValue" styleLevel="3"
                elementName="VendorValue"
                bundleID="apocBundle"/>
        </td>
    </tr>
    <jato:content name="DisplayMigrateProfs">
        <tr>
            <td valign="top" align="left" rowspan="1" colspan="1">
            <cc:label name="MigrateProfsLabel" styleLevel="2"
                    elementName="MigrateProfsLabel"
                    bundleID="apocBundle"/>
            </td>
            <td valign="top" align="left" rowspan="1" colspan="1">
            <cc:label name="MigrateProfsValue" styleLevel="3"
                    elementName="MigrateProfsValue"
                    bundleID="apocBundle"/>
            </td>
        </tr>
    </jato:content>
    <jato:content name="DisplayMetaConfig">
        <tr>
            <td valign="top" align="left" rowspan="1" colspan="1">

            <cc:label name="MetaConfigurationLabel" styleLevel="2"
                    elementName="MetaConfigurationLabel"
                    bundleID="apocBundle"/>
            </td>
            <td valign="top" align="left" rowspan="1" colspan="1">
                 <cc:textarea name="MetaConfigurationValue" rows="5" cols="40" bundleID="apocBundle"/>
            </td>
        </tr>
    </jato:content>
</jato:content>
<jato:content name="DisplayFileBasedInfo">
    <tr>
        <td valign="top" align="left" rowspan="1" colspan="1">

        <cc:label name="FilepathLabel" styleLevel="2"
                elementName="FilepathLabel"
                bundleID="apocBundle"/>
        </td>
        <td valign="top" align="left" rowspan="1" colspan="1">
        <cc:label name="FilepathValue" styleLevel="3"
                elementName="FilepathValue"
                bundleID="apocBundle"/>
        </td>
    </tr>
</jato:content>
    <table width="99%" border="0" cellspacing="10" cellpadding="0">   
        <tr>
            <td><br>
            </td>
        </tr>
        <tr>
            <td >
                <i><cc:label name="NoActionLabel" styleLevel="3"
                    elementName="NoActionLabel"
                    bundleID="apocBundle"/></i>

            </td>
        </tr>
    </table>
</jato:pagelet>
