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

<%@ 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 align="center">
                    会员管理</td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="Button1" runat="server" OnClientClick="return confirm('确认删除所选记录吗?')" OnClick="Button1_Click" Text="删除所选" />
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    <asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem Value="1">按用户名</asp:ListItem>
                        <asp:ListItem Value="2">按用户组</asp:ListItem>
                        <asp:ListItem Value="3">按级别</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="Button2" runat="server" Text="查询" OnClick="Button2_Click" />
                    <asp:Button ID="Button3" runat="server" Text="查询全部" OnClick="Button3_Click" />
                    按用户组:
                    <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
                    </asp:DropDownList>
                    按级别:
                    <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" DataKeyNames="u_id" CellPadding="4" ForeColor="#333333" GridLines="None">
                        <Columns>
                            <asp:TemplateField HeaderText="选择">
                                <HeaderTemplate>
                                    <asp:CheckBox ID="CheckBox2" onclick="Check(this)" runat="server" Text="全选/反选" />
                                </HeaderTemplate>
                                <ItemStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:CheckBox ID="CheckBox1" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="u_name" HeaderText="用户名">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="u_nc" HeaderText="用户呢称">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="u_mail" HeaderText="电子邮箱">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="r_name" HeaderText="所属用户组">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="g_name" HeaderText="所属级别">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:CommandField HeaderText="编辑" ShowEditButton="True">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:CommandField>
                            <asp:CommandField DeleteText="&lt;div onclick=&quot;return confirm('确实删除该记录吗?')&quot;&gt;删除&lt;/div&gt;"
                                HeaderText="删除" ShowDeleteButton="True">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:CommandField>
                        </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 align="center">
                    <uc1:FormPaging ID="FormPaging1" runat="server" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
