<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="robots.aspx.cs" Inherits="Kcms.UI.admin.robots" %>
<%@ Register assembly="PageNavigator" namespace="KcNavigator" tagprefix="Kc" %>
<!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>
    <title></title>
    <link href="skins/work-style.css" rel="stylesheet" type="text/css" />
    <script src="/inc/artDialog/artDialog.min.js" type="text/javascript"></script>
<script type="text/javascript">
    function CheckAll(form) {
        for (var i = 0; i < form.elements.length; i++) {
            var e = form.elements[i];
            if (e.name.indexOf('chkbox') != -1)
                e.checked = form.chkall.checked;
        }
    }
</script>
</head>
<body>
    <form id="form2" runat="server">
<div class="container">
 <div class="path clearfix"><div class="l"><h4><img src="skins/icon/aliblog_summ.gif" align="absmiddle" />蜘蛛记录</h4></div><div class="r"><asp:Literal ID="litAdv" runat="server"></asp:Literal></div></div>
 <div class="mbox clearfix">
  <div class="left">
    <a href="?" class="on">蜘蛛记录</a>
  </div>
  <div class="right">
<table class="rtable" width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
  <td colspan="5">
                <div style="float:left; width:69%">
                <asp:Literal ID="litMsg" runat="server"></asp:Literal>
                选择蜘蛛：<asp:DropDownList 
                        ID="DropDownList1" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                <asp:ListItem Value="all">全部</asp:ListItem>
                <asp:ListItem>baidu</asp:ListItem>
                <asp:ListItem>google</asp:ListItem>
                <asp:ListItem>yahoo</asp:ListItem>
                <asp:ListItem>soso</asp:ListItem>
                <asp:ListItem>sogou</asp:ListItem>
                <asp:ListItem Value="">其他</asp:ListItem>
                </asp:DropDownList>选这里不包含时间，选时间包含这里的选择
                    <br />
                    <br />
                    <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                        <asp:Repeater ID="rptCount" runat="server">
                        <HeaderTemplate>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="RcountList">
                          <tr>
                            <td>时间</td>
                            <td width="13%">baidu</td>
                            <td width="13%">google</td>
                            <td width="13%">yahoo</td>
                            <td width="13%">soso</td>
                            <td width="13%">sogou</td>
                            <td width="13%">other</td>
                          </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                          <tr onmouseover="this.className='ctr'" onmouseout="this.className=''">
                            <td><%#Eval("sj") %></td>
                            <td><%#Eval("baidu") %></td>
                            <td><%#Eval("google") %></td>
                            <td><%#Eval("yahoo") %></td>
                            <td><%#Eval("soso") %></td>
                            <td><%#Eval("sogou") %></td>
                            <td><%#Eval("other") %></td>
                          </tr>
                      </ItemTemplate>
                      <FooterTemplate>
                      </table>  
                      </FooterTemplate>
                        </asp:Repeater>

                </div>
                <div style="float:right; width:30%">
                <asp:Calendar ID="Calendar1" runat="server" 
                        onselectionchanged="Calendar1_SelectionChanged" BackColor="White" 
                        BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" 
                        Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" 
                        Width="200px" CssClass="calendar">
                    <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                    <NextPrevStyle VerticalAlign="Bottom" />
                    <OtherMonthDayStyle ForeColor="#808080" />
                    <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                    <SelectorStyle BackColor="#CCCCCC" />
                    <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                    <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <WeekendDayStyle BackColor="#FFFFCC" />
                    </asp:Calendar>
                </div>
  </td>
</tr> 
<tr>
  <td align="center" width="5%">选择</td>
  <td align="center">时间</td>
  <td align="center">IP</td>
  <td align="center">访问</td>
  <td align="center">Agent</td>
</tr> 
    <asp:Repeater ID="rptList" runat="server">
    <ItemTemplate>
<tr>
  <asp:HiddenField ID="hidId" runat="server" Value='<%#Eval("id") %>'/>
  <td align="center"><asp:CheckBox ID="chkbox" runat="server"/></td>
  <td align="center"><%#Eval("addtime") %></td>
  <td align="center"><%#Eval("ip") %></td>
  <td align="center"><%#Eval("pathinfo") %></td>
  <td align="center"><%#Eval("agent") %></td>
</tr>    
    </ItemTemplate>
    </asp:Repeater>
<tr>
  <td colspan="5">
      <label>&nbsp; <input id="chkall" onclick="CheckAll(form)" type="checkbox" />全选/全不选</label>
       <asp:Button ID="Btndel" runat="server" Text="删除所选?" onclick="Btndel_Click" 
          onclientclick="return confirm('确认删除么？')" CssClass="btn0" />
          　<asp:Button ID="Button1" runat="server" Text="删除10天前记录?" onclick="Button1_Click" 
          onclientclick="return confirm('确认删除么？')" CssClass="btn0" />
</td>

</tr>
</table>
<Kc:PageNavigator ID="PageNavigator1" runat="server" CssClass="pager" onchangepageclick="PageNavigator1_ChangePageClick" />
  </div>
 </div>
</div>
</form>
</body>
</html>