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

<%@page info="DatabaseManage" 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.DatabaseManageViewBean"> 
<jsp:useBean id="viewBean" type="com.sun.portal.search.admin.DatabaseManageViewBean" />

<HTML>

<title><searchadmin:text key="db.manage"/></title>
<script language="javascript" src="../ps/searchadmin/js/searchadmin.js"></script>
<script language="JavaScript">
function runAction() {
    window.open('RunDatabaseAction?<jato:text name="SelectDBPara" escape="false"/>','_blank', 'width=800,height=300,toolbar=no,scrollbars=yes,resizable=yes');
}
</script>

<%@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.management"/>";
}
</script>

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


<jato:content name="EditDBSection">
<console:form name="DatabaseManage" defaultCommandChild="UpdateDBButton">

  <TABLE border="0" cellpadding="0" cellspacing="10" width="100%">
    <TR> 
      <TD class="help-text"><searchadmin:text key="db.manage.editdb.desc"/></TD>
    </TR>
    <TR>
	<TD align="center" height="2">
	 <console:messagebox name="MessageBox" fireDisplayEvents="true" imageURI="../console/images"/>
	 </TD>
    </TR>

    <TR>
	<TD>
	<TABLE class="table-content" border="0" cellspacing="5" cellpadding="5">
	<TR>
	    <TD><STRONG><searchadmin:text key="db.name" label="db.name"/>&nbsp;:&nbsp;</STRONG></TD>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
	    <TD><jato:textField name="DBName" disabled="true" elementId="db.name"/>
		<jato:hidden name="HiddenDBName"/></TD>
	    </TD>
	</TR>
	<TR>
	    <TD><STRONG><searchadmin:text key="db.title" label="db.title"/>&nbsp;:&nbsp;</STRONG></TD>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
	    <TD><jato:textField name="DBTitle" size="40" elementId="db.title"/>
	    </TD>
	</TR>
	<TR>
	    <TD><STRONG><searchadmin:text key="db.desc" label="db.desc"/>&nbsp;:&nbsp;</STRONG></TD>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
	    <TD><jato:textField name="DBDesc" size="60"  elementId="db.desc"/>
	    </TD>
	</TR>
	</TABLE>
    </TR>
    <TR>
	<TD>
	<TABLE class="table-content" border="0" cellspacing="0" cellpadding="0">
	<TR>
	<TD> 
	    <console:button name="UpdateDBButton" />
	</TD>
            <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
	<TD>
	    <console:button name="CancelButton" />
	</TD>
	</TR>
	</TABLE>
    </TR>
  </TABLE>
</console:form>
</jato:content> <!-- name="EditDBSection" -->
	
<jato:content name="NewDBSection">
<console:form name="DatabaseManage" defaultCommandChild="CreateDBButton">

  <TABLE border="0" cellpadding="0" cellspacing="10" width="100%">
    <TR> 
      <TD class="help-text"><searchadmin:text key="db.manage.newdb.desc"/></TD>
    </TR>
    <TR>
	<TD align="center" height="2">
	 <console:messagebox name="MessageBox" fireDisplayEvents="true" imageURI="../console/images"/>
	 </TD>
    </TR>

    <TR>
	<TD>
	<TABLE class="table-content" border="0" cellspacing="5" cellpadding="5">
	<TR>
	    <TD><STRONG><searchadmin:text key="db.name" label="db.name"/></STRONG></TD>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
	    <TD><jato:textField name="DBName"  elementId="db.name"/>
	    </TD>
	</TR>
	<TR>
	    <TD><STRONG><searchadmin:text key="db.title" label="db.title"/></STRONG></TD>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
	    <TD><jato:textField name="DBTitle" size="40" elementId="db.title"/>
	    </TD>
	</TR>
	<TR>
	    <TD><STRONG><searchadmin:text key="db.desc" label="db.desc"/></STRONG></TD>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
	    <TD><jato:textField name="DBDesc" size="60"  elementId="db.desc"/>
	    </TD>
	</TR>
	</TABLE>
    </TR>
    <TR>
	<TD>
	<TABLE class="table-content" border="0" cellspacing="0" cellpadding="0">
	<TR>
	<TD> 
	    <console:button name="CreateDBButton" />
	</TD>
            <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
	<TD>
	    <console:button name="CancelButton" />
	</TD>
	</TR>
	</TABLE>
    </TR>
  </TABLE>
</console:form>
</jato:content> <!-- name="NewDBSection" -->



<jato:content name="ConfirmationSection">
<console:form name="DatabaseManage" defaultCommandChild="OKButton">
  <TABLE border="0" cellpadding="0" cellspacing="10" width="100%">
    <TR>
	<TD align="center" height="2">
	 <console:messagebox name="MessageBox" fireDisplayEvents="true" imageURI="../console/images"/>
	 </TD>
    </TR>
    <TR> 
      <TD align="right" height="2"> 
        <TABLE border="0" cellpadding="0" cellspacing="0">
          <TR> 
            <TD>
		<console:button name="OkButton" onClick="javascript:runAction(); return true;"/>
            </TD>
            <TD><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD>
		<console:button name="CancelButton" />
            </TD>
            <TD><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
          </TR>
        </TABLE>
      </TD>
    </TR>

  </TABLE>
</console:form>
</jato:content> <!-- name="ConfirmationSection" -->




<jato:content name="DBListSection">
<console:form name="DatabaseManage" defaultCommandChild="ResetButton">
  <TABLE border="0" cellpadding="0" cellspacing="10" width="100%">
    <TR> 
      <TD class="help-text"><searchadmin:text key="db.manage.desc.one"/> <LABEL for="select"><searchadmin:text key="db.manage.desc.keywordone"/></LABEL> <searchadmin:text key="db.manage.desc.two"/></TD>
    </TR>
    <TR>
	<TD align="center" height="2">
	 <console:messagebox name="MessageBox" fireDisplayEvents="true" imageURI="../console/images"/>
	 </TD>
    </TR>

    <TR> 
      <td> <!-- Table Title --> 
        <table border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td colspan="7" class="table-title-text"><searchadmin:text key="db.list"/></td>
          </tr>
          <tr> 
            <td colspan="7"><img alt="" border="0" height="5" width="1" src="../ps/searchadmin/images/blank.gif"></td>
          </tr>
          <tr> 
            <td><console:button name="NewButton" /></td>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
            <td><console:button name="ReindexButton" /></td>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
            <td><console:button name="PurgeButton" /></td>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
            <td><console:button name="ExpireButton" /></td>
          </tr>
          <tr> 
            <td colspan="7"><img alt="" border="0" height="5" width="1" src="../ps/searchadmin/images/blank.gif"></td>
          </tr>
        </table>
        <!-- End table containing Save and Cancel Buttons --> <!-- Begin outer table -->
	
	<jato:content name="EmptyList">
        <table border="0" cellspacing="0" cellpadding="0">
	<TR>
	    <TD><searchadmin:text key ="db.manage.nodb"/></TD>
	</TR>
	</TABLE>
	</jato:content>
	

	<jato:content name="ListTable">
	
	<TABLE class="table-frame" border="0" cellspacing="0" cellpadding="1">
          <TR> 
            <TD> 
		<TABLE class="table-content" border="0" cellspacing="0" cellpadding="0">
		<!-- Top row containing the column headers --> 
                <TR class="table-header-row">
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		    <td align="center"> 
			<table width="100%" border="0" cellspacing="3" cellpadding="0">
			<tr> 
			    <td><a href="javascript:SelectAll('DatabaseManage', 'DatabaseList', 'Select', true);"><img src="../ps/searchadmin/images/select-all-small.gif" width="11" height="13" alt="<searchadmin:text key='select.all'/>" border="0"></a></td>
			    <td><a href="javascript:SelectAll('DatabaseManage', 'DatabaseList', 'Select', false);"><img src="../ps/searchadmin/images/deselect-all-small.gif" width="11" height="13" alt="<searchadmin:text key='deselect.all'/>" border="0"></a></td>
			</tr>
			</table>
		    </td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		    <td><div class="table-header-text"><searchadmin:text key="db.name"/></div></td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		    <td><div class="table-header-text"><searchadmin:text key="db.title"/></div></td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		    <td><div class="table-header-text">&nbsp;<searchadmin:text key="db.desc"/></div></td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		    <td><div class="table-header-text">&nbsp;<searchadmin:text key="action.text"/></div></td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		</tr>
		
		<jato:tiledView name="DatabaseList">
		<TR> 
		    <td>&nbsp; </td>
		    <TD><jato:checkbox name="Select" elementId="select" /></TD>
		    <td>&nbsp; </td>
		    <TD class="table-normal-text"><jato:text name="DatabaseName"/><jato:hidden name="HiddenDatabaseName"/></TD>
		    <td>&nbsp; </td>
		    <TD class="table-normal-text"><jato:text name="DatabaseTitle"/></TD>
<td>&nbsp; </td>
		    <TD class="table-normal-text"><jato:text name="DatabaseDesc"/></TD>
		    <td>&nbsp; </td>
		    <TD>&nbsp;<font color="#CC6600">
		    <jato:href name="DatabaseEdit">
			<searchadmin:text key="edit.action"/>
		     </jato:href>
		    </font>&nbsp;
		    </TD>

		    <td>&nbsp; </td>
                </TR>
		<tr> 
		    <td class="table-separator-row" colspan="11" ><img src="../ps/searchadmin/images/blank.gif" alt="" width="1" height="1" border="0"></td>
                </tr>

		</jato:tiledView>
              </TABLE>
	    </TD>
          </TR>
        </TABLE>
	</jato:content>
      </TD>
    </TR>

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

  </TABLE>
</console:form>
</jato:content>



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

</HTML>
</jato:useViewBean>
