<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="AdClick.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.AdClick" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("userid");
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="7"> 广告点击记录 </th>
    </tr>
    <tr>
      <td colspan="7" class="date"><div class="dateinput">搜索：<asp:DropDownList 
              ID="ddlSearchType" runat="server" 
              onselectedindexchanged="ddlSearchType_SelectedIndexChanged">
            <asp:ListItem Text="关键词" Value="0"></asp:ListItem>
            <asp:ListItem Text="广告主ID" Value="1"></asp:ListItem>
          </asp:DropDownList><input style="display:none" />
          <asp:TextBox ID="txtKeyWords" runat="server" Text="关键字" onfocus="if(this.value=='关键字')this.value='';" CssClass="ym12_input2"></asp:TextBox>
          <asp:Button ID="Button4" runat="server" Text=" 提交 " OnClick="Button4_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" /></div></td>
    </tr>
    <tr align="center">
      <td width="5%" class="td2"> 选中 </td>
      <td width="20%" class="td2"> 搜索关键词 </td>
      <td class="td2"> 来路 </td>
      <td width="8%" class="td2"> 广告主ID </td>
      <td width="14%" class="td2"> 点击IP </td>
      <td width="18%" class="td2"> 点击时间 </td>
      <td width="7%" class="td2"> 操作 </td>
    </tr>
    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
      <ItemTemplate>
        <tr align="center">
          <td><input name='userid' type='checkbox' value='<%#Eval("id") %>' style="border:none" /></td>
          <td class="td4"><asp:HyperLink ID="HyperLink1" Target="_blank" Text='<%#Eval("word") %>' runat="server"></asp:HyperLink></td>
          <td class="td4"><%#Eval("add1") %>， <%#Eval("add2")%> </td>
          <td><asp:HyperLink ID="HyperLink2" NavigateUrl='<%#"Edit.aspx?i="+Eval("userid") %>' runat="server"><%#Eval("userid") %></asp:HyperLink></td>
          <td><%#Eval("IP") %> </td>
          <td><%#Eval("addTime") %> </td>
          <td><asp:LinkButton ID="btnDel" runat="server" OnClick="btnDel_Click" CommandArgument='<%# Eval("id")%>' OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');">删除</asp:LinkButton>
          </td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr>
      <td colspan="7" class="td2"><div id="tnt_pagination"> <%= PageStr%></div></td>
    </tr>
    <tr>
      <td class="td3"><input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this)' value='checkbox' /></td>
      <td colspan="7" class="td5"><asp:Button ID="Button7" runat="server" Text="批量删除" OnClick="ButtonClick" CommandArgument="2" OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" />
        <asp:Button ID="BtnDelAllRec" runat="server" Text="删除全部" OnClick="ButtonClick" CommandArgument="delAll" OnClientClick="return confirm('删除后无法恢复，您是否确定删除？');" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" /></td>
    </tr>
  </table>
<script language="JavaScript">
	tigra_tables('demo_table', 3, 2, '#ffffff', '#F8F8F8', '#F1F3F5', '#71ADDA');
</script>
</asp:Content>
