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

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

<HTML>

<title><searchadmin:text key="db.importagents"/></title>
<script language="javascript" src="../ps/searchadmin/js/searchadmin.js"></script>

<script language="JavaScript">
function runImport() {
    window.open('RunImport','_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.import"/>";
}
</script>

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


<console:form name="ImportAgents">


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

    <TR> 
      <TD class="help-text"><searchadmin:text key="db.importagent.desc.one"/> <LABEL for="del"><searchadmin:text key="db.importagent.desc.keywordone"/></LABEL> <searchadmin:text key="db.importagent.desc.two"/><a href="Schedule"><searchadmin:text key="schedule.title"/></a></TD>
    </TR>
    <TR> 
      <td> <!-- Table Title --> 
        <table border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td colspan="5" class="table-title-text"><searchadmin:text key="db.importagents"/></td>
          </tr>
          <tr> 
            <td colspan="5"><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="DeleteButton" onClick="return confirmDelete();" /></td>
            <td><img src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></td>
 	<jato:content name="EmptyList">
            <td><console:button name="RunButton" /></td>
	</jato:content>
	<jato:content name="ListTable">
            <td><console:button name="RunButton" onClick="javascript:runImport();return false;"/></td>
	</jato:content>
          </tr>
          <tr> 
            <td colspan="5"><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 -->
	
	
	<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('ImportAgents', 'ImportList', 'Delete', 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('ImportAgents', 'ImportList', 'Delete', 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="agent.header"/></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>
		    <td nowrap><div class="table-header-text"><searchadmin:text key="onoff.text" label="onoff"/></div></td>
		    <td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>
		</tr>
		
		<jato:tiledView name="ImportList">
		<TR> 
		    <td>&nbsp; </td>
		    <TD><jato:checkbox name="Delete" elementId="del" /></TD>
		    <td>&nbsp; </td>
		    <TD class="table-normal-text"><jato:image name="TypeImage" alt="" /><jato:text name="NameLabel"/></TD>
		    <td>&nbsp; </td>
		    <TD>&nbsp;<font color="#CC6600">
		    <jato:href name="ImportLink">
			<searchadmin:text key="edit.action"/>
		     </jato:href>
		    </font>&nbsp;
		    </TD>
		    <td>&nbsp; </td>
		    <TD><jato:radioButtons name="OnOffRButton" elementId="onoff" layout="horizontal"/></TD>
		    <td>&nbsp; </td>
                </TR>
		<tr> 
		    <td class="table-separator-row" colspan="9" ><img src="../ps/searchadmin/images/blank.gif" alt="" width="1" height="1" border="0"></td>
                </tr>

		</jato:tiledView>
		<jato:content name="EmptyList">
		<TR>
		<td><img alt="" border="0" height="1" width="10" src="../ps/searchadmin/images/blank.gif"></td>

		    <TD colspan="8" ><searchadmin:text key ="db.importagents.noagent"/></TD>
		</TR>
		</jato:content>
              </TABLE>
	    </TD>
          </TR>
        </TABLE>
      </TD>
    </TR>

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