<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true"
    CodeBehind="SearchRecord.aspx.cs" Inherits="ETongJin.YM.Web.Admin.SearchRecord"  %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="tableBorder" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <th colspan="6" class="ym12_bti">
                搜索日志
            </th>
        </tr>
        <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
            <HeaderTemplate>
                <tr style="text-align: center;">
                    <td width="100" class="td2">
                        关键词
                    </td>
                    <td width="100" class="td2">
                        用户名称
                    </td>
                    <td width="100" class="td2">
                        IP
                    </td>
                    <td width="100" class="td2">
                        添加时间
                    </td>
                    <td width="100" class="td2">
                        状态
                    </td>
                    <td class="td2" style="text-align: left">
                        相关操作
                    </td>
                </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr style="text-align: center;">
                    <td class="td1">
                        <a href="/Search.aspx?k=<%#Eval("keyword") %>" target="_blank">
                            <%#Eval("keyword")%></a>
                        <input id="Hidden1" type="hidden" runat="server" value='<%#Eval("id") %>' />
                    </td>
                    <td class="td1">
                       <%#Eval("UserName") %>
                    </td>
                    <td class="td1">
                        <%#Eval("IP") %>
                    </td>
                    <td class="td1">
                        <%#Eval("addtime") %>
                    </td>
                    <td class="td1">
                         <%# (Eval("status").ToString()=="1")?"推荐":"一般"%>
                    </td>
                    <td class="td1" style="text-align: left">
                        <asp:LinkButton ID="LinkButton2" CommandArgument="1" runat="server" CausesValidation="false"
                            OnClientClick="return confirm('您将删除这个标签!!?删除后不可回复');">删除</asp:LinkButton>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td1" style="padding-left: 100px;">
                    </td>
                </tr>
            </ItemTemplate>
           
        </asp:Repeater>
        <tr>
            <th colspan="8" style="text-align: center;">
                <div id="tnt_pagination">
                    <%= PageStr%></div>
            </th>
        </tr>
    
    </table>
</asp:Content>
