<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="updateindex.aspx.cs" Inherits="SearchEasy.SiteSearch.admin.updateindex" %>

<!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">提示：更新索引</td>
</tr>
</table>
  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr>
      <td width="100" class="tdbg" colspan="2">
      <%
           if (this.Flag == "0")
           {
      %>
         
         <script language="javascript" type="text/javascript">
            document.write("<a href='updateindex.aspx?flag=1&usn=<%= USN %>&safecode=<%= SafeCode %>'>正在更新索引中，请稍后....(如长时间无反应，请点击此处)</a>") ;
            window.location.href = "updateindex.aspx?flag=1&usn=<%= USN %>&safecode=<%= SafeCode %>" ;
         </script>
      <%
           }
           else if (this.Flag == "2")
           {
               Response.Write("索引更新完毕！"); 
           } 
      %>
      </td>
   </tr>
  </table>

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