<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="indexmanager.aspx.cs" Inherits="SearchEasy.SiteSearch.backend.indexmanager" %>
<%@Register TagPrefix="Webdiyer" Namespace="Wuqi.Webdiyer" Assembly="aspnetpager"%>
<!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>
</head>
<body>
<form id="Form1" runat="server">
<div class="sdcms_notice"><span>管理操作：<asp:DropDownList ID="ddlSites" runat="server" DataTextField="SiteName" DataValueField="UniqueSiteName"></asp:DropDownList>
    &nbsp;&nbsp;<asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
    &nbsp;<asp:Button ID="btnSearch" runat="server" Text="搜 索" 
        onclick="btnSearch_Click" />
    </span></div>
<div class="sdcms_notice">
<span style="color:Red">提示：索引管理主要用于删除索引里的记录信息，搜索后可见信息列表。有问题请咨询<a href="http://www.searcheasy.net" target="_blank">搜易官方</a></span>
</div>
<br />
<ul id="sdcms_sub_title">
	<li class="sub"><a>索引管理</a></li>
</ul>
<div id="sdcms_right_b">
  <asp:DataGrid runat="server" ID="dgIndexManager" AutoGenerateColumns="false" 
            BorderWidth="0" HorizontalAlign="Center" CellPadding="3" CellSpacing="1" 
            CssClass="table_b" HeaderStyle-CssClass="title_bg" 
            FooterStyle-BackColor="#ffffff" FooterStyle-HorizontalAlign="Center" FooterStyle-Height="33"
            UseAccessibleHeader="true" ShowFooter="false" ShowHeader="true" 
            DataKeyField="InfoId" onitemcommand="dgIndexManager_ItemCommand" 
        onitemcreated="dgIndexManager_ItemCreated">
     <Columns>
        <asp:TemplateColumn HeaderText="ID" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "InfoId")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="标题" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <a href="<%# DataBinder.Eval(Container.DataItem, "Url")%>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "Title")%></a>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="时间" ItemStyle-Height="33" ItemStyle-HorizontalAlign="Center">
           <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "PublishDate")%>
           </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="操作" ItemStyle-HorizontalAlign="Center">
             <ItemTemplate>
                <asp:LinkButton runat="server" ID="lnkDelete" CommandArgument="DeleteInfo" Text="删除" />
             </ItemTemplate>
        </asp:TemplateColumn>
     </Columns>
  </asp:DataGrid> 
  <table border="0" align="center" cellpadding="3" cellspacing="1" class="table_b">
   <tr>
     <td colspan="9" class="tdbg">
     <webdiyer:AspNetPager id="pager" runat="server" AlwaysShow="True" 
             ShowCustomInfoSection="Left" Width="80%"  ShowSelectBox="Never" 
             onpagechanged="pager_PageChanged"></webdiyer:AspNetPager>
     </td>
   </tr>
  </table>
</div>
</form>
</body>
</html>