<%@ page language="java" buffer="64kb" %>

<%@ taglib uri="struts-html"     prefix="html"  %>
<%@ taglib uri="struts-bean"     prefix="bean"  %>
<%@ taglib uri="struts-logic"    prefix="logic" %>
<%@ taglib uri="vkc-taglib"      prefix="vkc"   %>
<%@ page import="org.apache.struts.Globals" %>
<%@ page import="vkc.administration.form.SystemMaintenanceForm" %>

<vkc:init/>

<html:form action="/systemMaintenance" method="post">
<bean:define id="form" name="form" type="vkc.administration.form.SystemMaintenanceForm"/>

<html:hidden property="selectedContext"/>

<table align='left' width='100%' cellpadding='2' cellspacing='0' border='0'>


  <logic:present name="rebuild_succeeded">               
    <tr>
      <td bgcolor="#77D369" align="center">
        <font color="white"><b><vkc:message key="vkc.administration.systemmaintenance.searchClassifyIndex.rebuild.succeeded"/></b></font>
      </td>
    </tr>
    <tr>
     <td align="left" nowrap="nowrap" colspan="2">&nbsp;</td>
    </tr>
  </logic:present>  
  <tr>
    <td align="left" nowrap="nowrap" width="1%">
      <vkc:message key="sysparam.context.systempaths.searchindexdir"/>:&nbsp;        
    </td>
    <td align="left" nowrap="nowrap" width="99%">
      <vkc:write name="form" property="searchIndexDir"/>        
    </td>
  </tr>
  <tr>
    <td align="left" nowrap="nowrap" width="1%">
      <vkc:message key="sysparam.context.systempaths.classifyindexdir"/>:&nbsp;        
    </td>
    <td align="left" nowrap="nowrap" width="99%">
      <vkc:write name="form" property="classifyIndexDir"/>        
    </td>
  </tr>
  <tr>
    <td align="left" nowrap="nowrap" colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td align="left" nowrap="nowrap" colspan="2">
      <vkc:message key="vkc.administration.systemmaintenance.searchClassifyIndex.rebuild.hint"/>        
    </td>
  </tr>
  <tr>
     <td align="left" nowrap="nowrap" colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">
    <table>
     <tr>
      <td align="left" nowrap="nowrap" width="1%">
       <html:radio name="form" property="indexMethod" value="<%=SystemMaintenanceForm.INDEX_METHOD_REBUILD.toString()%>"/>&nbsp;
      </td>
      <td align="left" nowrap="nowrap" width="99%">
       <vkc:message key="vkc.administration.systemmaintenance.searchClassifyIndex.rebuild"/>        
      </td>
     </tr>
    <tr>
     <td align="left" nowrap="nowrap" width="1%">
      <html:radio name="form" property="indexMethod" value="<%=SystemMaintenanceForm.INDEX_METHOD_OPTIMIZE.toString()%>"/>                
     </td>
     <td align="left" nowrap="nowrap" width="99%">
      <vkc:message key="vkc.administration.systemmaintenance.searchClassifyIndex.optimize"/>        
     </td>
    </tr>
    <tr>
     <td align="left" nowrap colspan="2">
      <vkc:button property="action.start_rebuild" onclick="javascript:disableAllButtonsAndSubmit(this);"><vkc:message key="vkc.administration.systemmaintenance.searchClassifyIndex.rebuild.start"/></vkc:button>
     </td>
    </tr>
   </table> 
   </td>
  </tr>
</table>
</html:form>