<%--
  Copyright 2003 Sun Microsystems, Inc. All rights reserved 
  Use is subject to license terms.
 --%>

<%@page info="SchemaEditor" language="java"%>
<%@taglib uri="/WEB-INF/jato.tld" prefix="jato"%>
<%@taglib uri="/WEB-INF/console.tld" prefix="console"%>
<%@taglib uri="/WEB-INF/searchadmin.tld" prefix="searchadmin"%>

<jato:useViewBean className="com.sun.portal.search.admin.SchemaEditorViewBean">
<jsp:useBean id="viewBean" type="com.sun.portal.search.admin.SchemaEditorViewBean"/>
<HTML>


<%@include file="/ps/searchadmin/CSHeader.jsp"%>
<script language="javascript">
if (parent.headerFrame) {
    parent.headerFrame.helpDocURL = "<jato:text name="helpDocURL"/>";
    parent.headerFrame.helpPage = "<searchadmin:text key="help.database.schema"/>";
}
</script>

<searchadmin:AdminMenu selected="SchemaList" images="../ps/searchadmin/images"/>

<console:form name="SchemaEditor" defaultCommandChild="/Submit">

  <TABLE border="0" cellpadding="0" cellspacing="10" width="100%">
    <TR>
	<TD>
	<DIV class="help-text"><searchadmin:text key="schema.editor.desc"/></DIV>
	</TD>
    </TR>
  </TABLE>
  
  <table border="0" align="center">
    <tr>
      <td align="center" valign="top">
        <console:messagebox name="errorMsgBox" imageURI="../console/images"/>
      </td>
    </tr>
  </table>

  <TABLE border="0" cellpadding="0" cellspacing="10">
	    <TR>
	    <TD nowrap>
		<DIV class="properties-level3-label-text">
                  <searchadmin:text key="name.text" label="name"/>&nbsp;:&nbsp;
                </DIV>
	    </TD>
	    <TD nowrap>
		<jato:textField name="name" elementId="name"/>
		<jato:hidden name="oldname"/>
	    </TD>
	    </TR>

	    <TR>
	    <TD nowrap>
		<DIV class="properties-level3-label-text">
                    <searchadmin:text key="schema.description" label="desc"/>&nbsp;:&nbsp;
                </DIV>
	    </TD>
	    <TD nowrap>
		<jato:textField name="description" elementId="desc"/>
	    </TD>
	    </TR>
	    
	    <TR>
	    <TD nowrap>
		<DIV class="properties-level3-label-text">
                    <searchadmin:text key="schema.aliases" label="aliases"/>&nbsp;:&nbsp;
                </DIV>
	    </TD>
	    <TD nowrap>
		<jato:textField name="aliases" elementId="aliases"/>
	    </TD>
	    </TR>
	    
	    <TR>
	    <TD nowrap>
		<DIV class="properties-level3-label-text">
                    <searchadmin:text key="schema.datatype" label="datatype"/>&nbsp;:&nbsp;
                </DIV>
	    </TD>
	    <TD nowrap>
		<jato:combobox name="datatype" elementId="datatype"/>
	    </TD>
	    </TR>
	    
	    <TR>
	    <TD nowrap>
		<DIV class="properties-level3-label-text">
                    <searchadmin:text key="schema.editable" label="editable"/>&nbsp;:&nbsp;
                </DIV>
	    </TD>
	    <TD nowrap>
		<jato:checkbox name="editable" elementId="editable"/>
	    </TD>
	    </TR>
	    
	    <TR>
	    <TD nowrap>
		<DIV class="properties-level3-label-text">
                    <searchadmin:text key="schema.indexable" label="indexable"/>&nbsp;:&nbsp;
                </DIV>
	    </TD>
	    <TD nowrap>
		<jato:checkbox name="indexable" elementId="indexable" onClick="this.form.elements['jato.defaultCommand'].value='/BTNChangeIndexable';this.form.submit();"/>
	    </TD>
	    </TR>
	    <jato:content name="MultiplierSection">
	    <TR>
	    <TD nowrap>
		<DIV class="properties-level3-label-text">
                    <searchadmin:text key="schema.multiplier" label="multiplier"/>&nbsp;:&nbsp;
                </DIV>
	    </TD>
	    <TD nowrap>
		<jato:textField name="multiplier" elementId="multiplier"/>
	    </TD>
	    </TR>
	    </jato:content> <!-- name="MultiplierSection"-->

  </TABLE>

  <TABLE border=0 cellspacing=1 cellpadding=10 width="100%">
    <TR> 
      <TD width="50%" height="2"> </TD>
      <TD align="right" width="50%" height="2"> 
        <TABLE border="0" cellpadding="0" cellspacing="0">
          <TR> 
            <TD> 
		   <console:button name="Submit" />
            </TD>
            <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD> 
		   <console:button name="Cancel" />
            </TD>
            <TD><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD>  </TD>
          </TR>
        </TABLE>
      </TD>
    </TR>
  </TABLE>




</console:form>
</body>
<script language="javascript">
pageLoaded = 1;
</script>

</html>
</jato:useViewBean>
