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

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


<HTML>
<script>
function browserStatus(key) { // Database RD Editor
  switch (key) {
    case 1:
      self.status='<searchadmin:text key="robot.browser_status.starting_points"/>';
      break;
    case 2:
      self.status='<searchadmin:text key="robot.browser_status.url_pool"/>';
      break;
    case 3:
      self.status='<searchadmin:text key="robot.browser_status.manage_sites"/>';
      break;
    case 4:
      self.status='<searchadmin:text key="robot.browser_status.excluded_urls"/>';
      break;
    case 5:
      self.status='<searchadmin:text key="robot.browser_status.extraction_settings"/>';
      break;
    case 6:
      self.status='<searchadmin:text key="robot.browser_status.indexing_settings"/>';
      break;
    case 7:
      self.status='<searchadmin:text key="robot.browser_status.database_rd_editor"/>';
      break;
    case 8:
      self.status='<searchadmin:text key="robot.browser_status.robot_status_reports"/>';
      break;
    default:
      self.status='';
  }
}

function confirmFresh() {
    return confirm('<searchadmin:text key="robot.warning.refresh"/>');
}
</script>


<jato:text name="RefreshScript" escape="false"/>

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

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

<console:form name="Control">

  <TABLE border="0" cellpadding="0" cellspacing="10" width="100%">
    <TR> 
      <TD align="right" width="50%" height="2"> 
        <TABLE border="0" cellpadding="0" cellspacing="0">
          <TR> 
            <TD> 
		<console:button name="start" fireDisplayEvents="true" />
		<console:button name="stop" fireDisplayEvents="true" />
               </TD>
            <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD> 
		<console:button name="fresh" onClick="return confirmFresh()" fireDisplayEvents="true" />
		<console:button name="pause" fireDisplayEvents="true" />
		<console:button name="resume" fireDisplayEvents="true" />
            </TD>
            <TD><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD>  </TD>
          </TR>
        </TABLE>
      </TD>
    </TR>
    <TR> 
      <TD  colspan="2" class="help-text"><searchadmin:text key="robot.overview.desc"/><a href="Schedule"><searchadmin:text key="schedule.title"/></a></TD>
    </TR>
    <TR>
	<TD colspan="2" align="center" height="2">
	 <console:messagebox name="MessageBox" fireDisplayEvents="true" imageURI="../console/images"/>
	 </TD>
    </TR>    
    <TR> 
      <TD class="table-normal-text"><searchadmin:text key="robot.is"/>: <B><jato:text name="RobotStatus"/></B>
      </TD>
    </TR>
    <TR> 
      <TD class="table-normal-text"> <searchadmin:text key="robot.updatedat"/> <jato:text name="UpdateTime"/>
      </TD>
    </TR>
  </TABLE>
  <table BORDER=0 CELLSPACING=0 CELLPADDING=0 >
    <tr ALIGN=LEFT VALIGN=CENTER>
    <td><a href="javascript:window.location='StartPoints';"><image src="../ps/searchadmin/images/r_diagram_01.gif" alt='<searchadmin:text key="robot.browser_status.starting_points"/>' border="0"></a></td>
    <td><b><searchadmin:text key="robot.diag.startingpoint"/>&nbsp;:&nbsp;</b></td>
    <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
    <td><jato:text name="StartingPoints"/> <searchadmin:text key="robot.defined"/></td>
    </tr>
    <tr ALIGN=LEFT VALIGN=CENTER>
    <td><a href="javascript:window.location='RobotAdvancedReport?reportSelected=query%3Ffn%3Denum-pool';"><image src="../ps/searchadmin/images/r_diagram_02.gif" alt='<searchadmin:text key="robot.browser_status.url_pool"/>' border=0></a></td>
    <td><b><searchadmin:text key="robot.diag.urlpool"/>&nbsp;:&nbsp;</b></td>
    <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
    <td><jato:text name="URLsWaiting"/></td>
    </tr>
    
    <tr ALIGN=LEFT VALIGN=CENTER>
    <td><a href="javascript:window.location='Crawling#extract';"><image src="../ps/searchadmin/images/r_diagram_03.gif" alt='<searchadmin:text key="robot.browser_status.extraction_settings"/>' border=0></a></td>
    <td><b><searchadmin:text key="robot.diag.extracting"/>&nbsp;:&nbsp;</b></td>
    <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
    <td><jato:text name="Extracting" /></td>
    </tr>
    
    <tr ALIGN=LEFT VALIGN=CENTER>
    <td><a href="javascript:window.location='Sites';"><image src="../ps/searchadmin/images/r_diagram_04.gif" alt='<searchadmin:text key="robot.browser_status.manage_sites"/>' border=0></a></td>
    <td><b><searchadmin:text key="robot.diag.filtering"/>&nbsp;:&nbsp;</b></td>
    <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
    <td><jato:text name="Filtering" /></td>
    </tr>
    
    <tr ALIGN=LEFT VALIGN=CENTER>
    <td><a href="javascript:window.location='Indexing';"><image src="../ps/searchadmin/images/r_diagram_05.gif" alt='<searchadmin:text key="robot.browser_status.indexing_settings"/>' border=0></a></td>
    <td><b><searchadmin:text key="robot.diag.indexing"/>&nbsp;:&nbsp;</b></td>
    <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
    <td><jato:text name="Indexing" /></td>
    </tr>

    <tr ALIGN=LEFT VALIGN=CENTER>
    <td><a href="javascript:window.location='ExcludedURLs';"><image src="../ps/searchadmin/images/r_diagram_06.gif" alt='<searchadmin:text key="robot.browser_status.excluded_urls"/>' border=0></a></td>
    <td><b><searchadmin:text key="robot.diag.excludedurls"/>&nbsp;:&nbsp;</b></td>
    <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
    <td><jato:text name="ExcludeByFilter" /><br><jato:text name="ExcludeByError" /></td>
    </tr>

    <tr ALIGN=LEFT VALIGN=CENTER>
    <td><a href="javascript:window.location='RDEditor';"><image src="../ps/searchadmin/images/r_diagram_07.gif" alt='<searchadmin:text key="robot.browser_status.database_rd_editor"/>' border=0></a></td>
    <td><b><searchadmin:text key="robot.diag.rds"/>&nbsp;:&nbsp;</b></td>
    <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
    <td>
        <jato:text name="RDNumber"/>
        <br>
        <jato:text name="RDSize" />
    </td>
    </tr>
    
    <tr ALIGN=LEFT VALIGN=CENTER>
    <td><br></td>
    <td><b><searchadmin:text key="robot.diag.stats"/>&nbsp;:&nbsp;</b></TD>
    <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
    <td><br>
	<jato:text name="URLRetrieved" /><br>
	<jato:text name ="RDAverageSize" />
        <br>
	<jato:text name="RunningTime"/>
    </TD>
    </TR>
  </TABLE>
    <TABLE border="0" cellpadding="0" cellspacing="10" width="100%">
    <TR>
      <TD align="right" width="50%" height="2">
        <TABLE border="0" cellpadding="0" cellspacing="0">
          <TR> 
            <TD> 
		<console:button name="start" fireDisplayEvents="true" />
		<console:button name="stop" fireDisplayEvents="true" />
            </TD>
            <TD width="5"><IMG src="../ps/searchadmin/images/blank.gif" width="10" height="1" alt=""></TD>
            <TD> 
		<console:button name="fresh" onClick="return confirmFresh()" fireDisplayEvents="true" />
		<console:button name="pause" fireDisplayEvents="true" />
		<console:button name="resume" fireDisplayEvents="true" />
            </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>
