<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="Statistics2.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.Statistics2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <link type="text/css" href="/Scripts/Utility/jquery-ui.css" rel="stylesheet" />
  <script type="text/javascript" src="/Scripts/Utility/jquery-ui-datepicker.js"></script>
  <script type="text/javascript">
$(document).ready(function() {
	$('#<%=txtBegin.ClientID %>').datepicker({
		showButtonPanel: true
	});
	$('#<%=txtEnd.ClientID %>').datepicker({
		showButtonPanel: true
	});
});
    
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="3"> 聚合搜索统计 </th>
    </tr>
    <tr>
      <td colspan="3" class="date"><div class="dateinput"><a href="Statistics2.aspx">今天</a><a href="Statistics2.aspx?t=1">昨天</a><a href="Statistics2.aspx?t=2">最近7天</a><a href="Statistics2.aspx?t=3">最近30天</a>&nbsp;从
          <asp:TextBox ID="txtBegin" runat="server" CssClass="ym12_input2" Width="80px"></asp:TextBox>
          到
          <asp:TextBox ID="txtEnd" runat="server" CssClass="ym12_input2" Width="80px"></asp:TextBox>
          搜索次数
          <asp:TextBox ID="txtHitBegin" runat="server" CssClass="ym12_input2" Width="40px">1</asp:TextBox>
          到
          <asp:TextBox ID="txtHitEnd" runat="server" CssClass="ym12_input2" Width="40px">任意</asp:TextBox>
          次
          <asp:Button ID="btnSearch" runat="server" Text="查询" onclick="btnSearch_Click" CssClass="btn02" onmouseover="this.className='btn04'" onmouseout="this.className='btn02'" /></div></td>
    </tr>
    <tr>
      <td colspan="3" class="td2">相关关键词：
        <input style="display:none" />
        <asp:TextBox ID="txtKeyWords" runat="server" 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'" /></td>
    </tr>
    <asp:Repeater ID="Repeater1" runat="server">
      <HeaderTemplate>
        <tr align="center">
          <td width="4%" class="td1">&nbsp;</td>
          <td class="td1"> 关键词 </td>
          <td width="8%" class="td1"> 搜索次数 </td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr align="center">
          <td><input id="Checkbox1" type="checkbox" name="id" value="<%#Eval("keyword") %>" /></td>
          <td class="td4"><a href="/ju/?wd=<%#Eval("keyword") %>" target="_blank"> <%#Eval("keyword")%></a></td>
          <td><%#Eval("num") %> </td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr>
      <td class="td3"><input id="Checkbox1" type="checkbox" name="chkAll" onclick="CheckAll(this);" /></td>
      <td colspan="2" 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>
<script language="JavaScript">
	tigra_tables('demo_table', 4, 1, '#ffffff', '#F1F3F5', '#D5DDDE', '#71ADDA');
</script>
</asp:Content>
