<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="rebuildindex.aspx.cs" Inherits="SearchEasy.SiteSearch.admin.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/style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body { padding:10px }
-->
</style>
</head>
<body>
<form id="Form1" runat="server">
<h3 class="boxtitle">后台管理 &gt;&gt; 初始化/重建索引</h3>
<table height="0" border="0" cellpadding="0" cellspacing="1" class="tabBgColor">
<tr>
  <td height="25" background="Images/Top.gif">提示：建立索引耗时较长(一般索引一万篇新闻资讯约30秒到1分钟，视机器性能而定)，点击开始后，请稍等5-10秒左右，会有进度提示。</td>
</tr>
</table>
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr>
      <td width="100" class="tdbg" colspan="2"><strong>参数设置：</strong></td>
   </tr>
   <tr class="tdbg">
      <td width="100" align="center" class="tdbg">每次索引：</td>
      <td  class="tdbg">
      <asp:TextBox runat="server" ID="txtIndexDataCount" CssClass="input" Width="100px" Text="2000" /> (机器配置高内存大建议设置6000，其他默认即可)
      </td>
   </tr>
   <tr class="tdbg">
    <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("索引完毕！<a href='sitelist.aspx'>点此返回类型管理</a>"); 
           } %>

    </td>
   </tr>
    <tr class="tdbg">
	  <td>&nbsp;</td>
      <td><asp:Button runat="server" Text="开始索引" ID="btnStartIndex" CssClass="bnt" onclick="btnStartIndex_Click" /> <asp:Literal runat="server" ID="ltlindextips"/></td>
    </tr>
  </table>

</form>
</body>
</html>
