<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="IndexList.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.IndexList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("id");
for(i=0;i<allcheck.length;i++)
{
allcheck[i].checked = obj.checked;
}
}
    </script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table class="tableBorder" border="0" cellpadding="3" cellspacing="1" id="demo_table">
    <tr>
      <th colspan="5"> 索引管理</th>
    </tr>
    <tr>
      <td colspan="5" class="date"><div class="dateinput">
        请输入关键词：
        <asp:TextBox ID="TextBox1" runat="server" CssClass="ym12_input3"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" UseSubmitBehavior="false" OnClick="btnSearch_Click" Text=" 搜 索 " CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" /></div></td>
    </tr>
    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
      <HeaderTemplate>
        <tr align="center">
          <td class="td1">&nbsp;</td>
          <td class="td1"> 标题 </td>
          <td width="100" class="td1"> 摘要 </td>
          <td width="18%" class="td1"> 更新时间 </td>
          <td width="10%" class="td1"> 相关操作 </td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr align="center">
          <td width="5%"><input id="Checkbox1" type="checkbox" name="id" value="<%#Eval("url2") %>" />
          </td>
          <td class="td4"><a href='<%#Eval("url") %>' target="_blank"><%#Eval("title")%></a> </td>
          <td class="td4"><%#Eval("content") %> </td>
          <td><%#Eval("date") %> </td>
          <td><asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Eval("url2") %>' CausesValidation="false" OnClientClick="return confirm('您将删除这条记录!!?删除后不可恢复');">删除</asp:LinkButton>
          </td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr>
      <td colspan="5" class="td2"><div id="tnt_pagination"> <%=PageStr%>共搜索出结果
          <asp:Label ID="lbCount" runat="server" Text=""></asp:Label>
          条</div></td>
    </tr>
    <tr>
      <td width="5%" class="td3"><input id="Checkbox1" type="checkbox" name="chkAll" onclick="CheckAll(this);" /></td>
      <td colspan="4" class="td5"><asp:Button ID="Button1" runat="server" Text="批量删除" OnClientClick="return confirm('您确定删除选中的记录么?删除后不可恢复');" OnClick="Button1_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" />
      </td>
    </tr>
     
  </table>
   <table class="tableBorder" border="0" cellpadding="3" cellspacing="1" id="Table1">
  <tr>
      <th colspan="6"> 按条件批量删除索引</th>
      
    </tr>
    <%--   <tr>
      <td class="td2" width="25%"> 按标题绝对关键词一键删除： </td>
      <td class="td1">
          <asp:TextBox ID="txtTitle" runat="server" CssClass="ym12_input2" 
              ></asp:TextBox>
      </td>
      <td colspan="4"  class="td5"><asp:Button ID="Button2" runat="server" Text="批量删除" 
              OnClientClick="return confirm('您确定删除选中的记录么?删除后不可恢复');"  CssClass="btn02" 
              onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" 
              onclick="Button2_Click1" />
    </td></tr>
      
       <tr>
      <td class="td2" width="25%"> 按内容绝对关键词一键删除： </td>
      <td class="td1"><asp:TextBox ID="txtContent" runat="server" 
              CssClass="ym12_input2"></asp:TextBox>
      </td>
      <td colspan="4"  class="td5"><asp:Button ID="Button3" runat="server" Text="批量删除" 
              OnClientClick="return confirm('您确定删除选中的记录么?删除后不可恢复');"  CssClass="btn02" 
              onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" 
              onclick="Button3_Click" /> </td>
    </tr>--%>
    
       <tr>
      <td class="td2" width="25%"> 按绝对域名一键删除： </td>
      <td class="td1" width="30%">
          <asp:TextBox ID="txtDemo" runat="server"  Text="http://"
              CssClass="ym12_input2"></asp:TextBox><br />例如:http://www.etongjin.com/
      </td>
      <td colspan="4"  class="td5"><asp:Button ID="Button4" runat="server" Text="批量删除" 
              OnClientClick="return confirm('您确定删除选中的记录么?删除后不可恢复');"  CssClass="btn02" 
              onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" 
              onclick="Button4_Click" /></td>
    </tr>
    <tr><td colspan="6"  class="td5">
    注意：<br />请在服务器cpu和内存资源不十分紧张的情况下执行该操作，如果操作执行时，服务器强制回收资源，可能导致索引损坏
    </td></tr>
    </table>
<script language="JavaScript">
	tigra_tables('demo_table', 3, 2, '#ecfbd4', '#ffffff', '#e5f1f4', '#bce774');
</script>
</asp:Content>
