<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" CodeBehind="Statistics.aspx.cs"
    Inherits="ETongJin.Search.Web.Admin.Statistics" %>
<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="4"> 行业搜索统计 </th>
    </tr>
    <tr>
      <td colspan="4" class="date"><div class="dateinput"><a href="Statistics.aspx">今天</a><a href="Statistics.aspx?t=1">昨天</a><a href="Statistics.aspx?t=2">最近7天</a><a href="Statistics.aspx?t=3">最近30天</a>&nbsp;&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="50px">任意</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="4" class="td2">(最多显示前100条记录)&nbsp;&nbsp;&nbsp;&nbsp;关键词： <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 style="text-align:center;">
          <td width="5%" class="td1">&nbsp;</td>
          <td class="td1"> 关键词 </td>
          <td width="10%" class="td1"> 搜索次数 </td>
          <td width="15%" class="td1"> 相关操作 </td>
        </tr>
      </HeaderTemplate>
      <ItemTemplate>
        <tr style="text-align:center;">
          <td><input id="Checkbox1" type="checkbox" name="id" value="<%#Eval("keyword") %>" /></td>
          <td class="td4"><a href="/s/?wd=<%#Eval("keyword") %>" target="_blank"> <%#Eval("keyword")%></a> </td>
          <td><%#Eval("num") %> </td>
          <td style="text-align: left"></td>
        </tr>
      </ItemTemplate>
    </asp:Repeater>
    <tr>
      <td class="td3"><input id="Checkbox1" type="checkbox" name="chkAll" onclick="CheckAll(this);" /></td>
      <td colspan="3" 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, '#ecfbd4', '#ffffff', '#e5f1f4', '#bce774');
</script>
</asp:Content>
