<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="rebuildindex.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.rebuildindex" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>初始化/重建索引-搜易站内搜索引擎系统</title>
<link href="images/sdcms.css" rel="stylesheet" type="text/css" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script language="javascript" src="images/sdcms.js" type="text/javascript"></script>
<script type="text/javascript" src="editor/xheditor/jquery.js"></script>
<script type="text/javascript" src="editor/xheditor/editor.js"></script>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>管理操作：</span>初始化/重建索引</div>
<div id="sdcms_right_b">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" id="tagContent0">
   <tr>
      <td width="100" class="tdbg" colspan="2"><strong>参数设置：</strong></td>
   </tr>
   <tr>
      <td width="100" align="center" class="tdbg">每次索引：</td>
      <td  class="tdbg">
      <asp:TextBox runat="server" ID="txtIndexDataCount" CssClass="input" Width="100px" Text="1000" /> (数字越大，速度越快，但需占用更多内存)
      </td>
   </tr>
   <tr>
    <td width="100" class="tdbg" colspan="2" style="height:30px;">
       <%
           if (this.Flag == "1")
           {
       %>
         <script language="javascript" type="text/javascript">
            document.getElementById("txtIndexDataCount").value = "<%= Count %>" ;
            document.write("<a href='rebuildindex.aspx?flag=<%= Flag %>&usn=<%= USN %>&step=<%= Step %>&count=<%= Count %>'>正在进行第 <b> <%= Step %> </b>批次的数据索引，如长时间未变化，请点击此处</a>") ;
            window.location.href = "rebuildindex.aspx?flag=<%= Flag %>&usn=<%= USN %>&step=<%= Step %>&count=<%= Count %>" ;
         </script>
       <%
           }
           else if (this.Flag == "2")
           {
               Response.Write("索引完毕！"); 
           } %>

    </td>
   </tr>
</table>  
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" >
    <tr class="tdbg">
	  <td width="100">&nbsp;</td>
      <td><asp:Button runat="server" CssClass="bnt" Text="开始索引" ID="btnStartIndex" 
              onclick="btnStartIndex_Click" /> </td>
	 </tr>
</table>
</div>
</form>
</body>
</html>

