<%@ page language="C#" autoeventwireup="true" inherits="admin_other_pagelogger, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!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 runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> 用户访问日志列表
            </td>
        </tr>
    </table>
    <table align="center" cellpadding="2" cellspacing="1" width="99%" class="border">
        <tr class="title">
            <td nowrap  class="t1">
                SessionID
            </td>
            <td nowrap>
                Ip地址
            </td>
            <td>
                访问URL
            </td>
            <td nowrap>
                浏览器类型
            </td>
            <td nowrap>
                访问时间
            </td>
        </tr>
        <asp:Repeater ID="RepPageLogger" runat="server">
            <ItemTemplate>
                <tr class="tdMoveTr" onmouseover="this.className='tdMoveTrBg'" onmouseout="this.className='tdMoveTr'">
                    <td align="center" class="t1">
                        <%#Eval("SessionID")%>
                    </td>
                    <td align="center">
                        <%#Eval("UserHostAddress", "{0}")%>
                    </td>
                    <td align="center">
                        <%# Eval("Url")%>
                    </td>
                    <td align="center">
                        <%#Eval("BrowserType", "{0}")%>
                    </td>
                    <td align="center" nowrap>
                        <%# Eval("AddTime")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
    </table>
    <table cellpadding="0" cellspacing="1" class="dh2" align="center">
        <tr>
            <td>
                <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" FirstPageText="首页"
                    LastPageText="尾页" NextPageText="下一页" PageSize="20" HorizontalAlign="Right" PrevPageText="上一页"
                    showinputbox="Never" UrlPageIndexName="p" UrlPaging="True" ShowCustomInfoSection="Left"
                    Width="99%">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    <table cellpadding="0" cellspacing="1" class="dh2" align="center">
        <tr>
            <td height="30">
                <asp:Button ID="Button1" runat="server" Text="导出最近一个月日志" CssClass="btn" Style="margin-left: 10px"
                    OnClick="Button1_Click"></asp:Button>
                <asp:Button ID="Button2" 
                    runat="server" Text="导出最近三个月日志"
                        CssClass="btn" Style="margin-left: 10px" onclick="Button2_Click" />
                <asp:Button ID="Button3" runat="server"
                            Text="导出所有日志" CssClass="btn" Style="margin-left: 10px" 
                    onclick="Button3_Click" />
                <asp:Button ID="Button4"
                                runat="server" Text="清空日志" CssClass="btn" 
                    Style="margin-left: 10px" onclick="Button4_Click" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
