<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sys_login.aspx.cs" Inherits="Admin_sys_login" %>

<%@ Register Src="../Controls/FormPaging.ascx" TagName="FormPaging" TagPrefix="uc1" %>

<!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 href="../Admin/skin/css.css" rel="stylesheet" type="text/css" />
    <link href="/images/css/inbox.css"rel="stylesheet" type="text/css" />
     <script language=javascript>
    function Check(che)
    {
        var gv=document.getElementById("GridView1");
        for(var i=0;i<gv.rows.length;i++)
        {
            gv.rows[i].cells[0].getElementsByTagName("input")[0].checked=che.checked;
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width: 98%" class="Ibx_gTable_Con">
            <tr>
                <td colspan="2">
                    <asp:Button ID="Button1" OnClientClick="return confirm('确认要删除所选信息?')" runat="server" Text="删除所选" OnClick="Button1_Click" />
                    <asp:Button ID="Button2" runat="server" OnClientClick="return confirm('清空数据,将不能恢复!确认清空吗?')" Text="清空所有数据" OnClick="Button2_Click" /></td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" DataKeyNames="lo_id" CellPadding="4" ForeColor="#333333" GridLines="None">
                        <Columns>
                            <asp:TemplateField>
                                <EditItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </EditItemTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </ItemTemplate>
                                <HeaderTemplate>
                                    <asp:CheckBox ID="CheckBox2" onclick="Check(this)" runat="server" Text="全选/反选" />
                                </HeaderTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="lo_user" HeaderText="登陆用户名">
                                <ItemStyle HorizontalAlign="Center" Wrap="True" />
                            </asp:BoundField>
                            <asp:BoundField DataField="lo_ip" HeaderText="登陆IP">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="lo_time" HeaderText="登陆时间">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <EditRowStyle BackColor="#2461BF" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="2" align=center>
                    <uc1:FormPaging ID="FormPaging1" runat="server" />
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
