<%@ page info="Navigator" language="java" %> 
<%@page contentType="text/html;charset=UTF-8"%>
<%--
 ******************************************************************************* 
 * $RCSfile: SearchParameter.jsp,v $
 *
 * Description: This file contains the left frame of the APOC Manager, the 
 *              navigation frame.
 *
 * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
 * Use of this product is subject to license terms.
 *
 *******************************************************************************
 --%>

<%@taglib uri="/WEB-INF/tld/com_iplanet_jato/jato.tld" prefix="jato"%> 
<%@taglib uri="/WEB-INF/tld/com_sun_web_ui/cc.tld" prefix="cc"%>

    <jato:useViewBean className="com.sun.apoc.manager.ProfilesSearchParameterViewBean">

    <cc:header pageTitle="APOC.navigation.search" copyrightYear="2003"
        baseName="com.sun.apoc.manager.resource.apoc_manager"
        bundleID="apocBundle"
        isPopup="true"
        onLoad="javascript:handleLoad(); return true">

        <script type="text/javascript" src="/apoc/js/MainWindow.js"></script>

        <script type="text/javascript">
        <!--
            var m_sOldFindString = "";
            var m_OpenerTop;
            
            function handleLoad() {
                document.forms[0]['ProfilesSearchParameter.SearchText'].focus();
                m_sOldFindString = document.forms[0]['ProfilesSearchParameter.SearchText'].value;
                m_OpenerTop=top.opener.top;
            }
            
            function handleSubmit() {
                document.forms[0]['ProfilesSearchParameter.SearchButton'].className='Btn1Dis';
                document.forms[0]['ProfilesSearchParameter.SearchButton'].disabled='true';

                var resultsForm = top.results.document.forms[0];
                var newDoc      = top.results.document.open("text/html", "replace");
                var sMarkup     = '<html><head><title>empty</title></head><body>';
                sMarkup += '<form name="ResultForm" method="post" action="../manager/ProfilesSearchResult">';
                sMarkup += '<input type="hidden" name="ProfilesSearchResult.SearchString" value="*" />';
                sMarkup += '<input type="hidden" name="jato.defaultCommand" value="SearchButton" />';
                sMarkup += '<input type="hidden" name="com_sun_web_ui_popup" value="true" />';
                sMarkup += '</form></body></html>';
                newDoc.write(sMarkup);
                newDoc.close();
  
                resultsForm = top.results.document.forms[0];
                resultsForm['ProfilesSearchResult.SearchString'].value=document.forms[0]['ProfilesSearchParameter.SearchText'].value;
                resultsForm.submit();
            }
            
            function handlePressedKey() {
                var sNewFindString =document.forms[0]['ProfilesSearchParameter.SearchText'].value;
                if (sNewFindString!=m_sOldFindString) {
                    m_sOldFindString=sNewFindString;
                    document.forms[0]['ProfilesSearchParameter.SearchButton'].disabled='';
                    document.forms[0]['ProfilesSearchParameter.SearchButton'].className='Btn1Def';
                }
            }
        // -->
        </script> 

        <cc:form name="ParameterForm"
            method="post"
            onSubmit="javascript: handleSubmit(); return false"
            defaultCommandChild="SearchButton" >

            <cc:secondarymasthead name="Masthead"
                src="/apoc/images/popuptitle.gif"
                alt="APOC.masthead.altText"
                bundleID="apocBundle"/> 
            
                <cc:propertysheet name="SearchParams" 
                    bundleID="apocBundle" 
                    showJumpLinks="false"/>

        </cc:form>

    </cc:header>

</jato:useViewBean> 
