<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="updateindex.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.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/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" 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>  
</div>
</form>
</body>
</html>
