<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="manageUsers.aspx.cs" Inherits="WebApp.Wpdcc.manageUsers" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>用户管理</title>
    <meta name="description" content="用户管理" />
    <!--#include file = "../assets/head.htm" -->
</head>
<body class="no-skin">
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try { ace.settings.check('breadcrumbs', 'fixed') } catch (e) { }
            </script>

            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa fa-home home-icon"></i>
                    主页
                </li>
                <li>系统操作</li>
                <li class="active">用户管理</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->

        <div class="page-content">
            <!-- PAGE CONTENT BEGINS -->

            <form id="form1" runat="server">
                <div class="page-header">
                    <asp:DropDownList ID="ddlUserType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlUserType_SelectedIndexChanged">
                        <asp:ListItem Text="全部用户" Value="0"></asp:ListItem>
                        <asp:ListItem Text="网站用户" Value="1"></asp:ListItem>
                        <asp:ListItem Text="同步用户" Value="2"></asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                    <input type="button" runat="server" id="FancyBox_reg" class="btn btn-sm btn-primary" value="添 加" />
                </div>

                <div class="row">
                    <div class="col-xs-12">
                        <asp:GridView ID="GridView1" class="table table-striped table-bordered table-hover" runat="server" AutoGenerateColumns="False" AllowPaging="True" OnRowCommand="GridView1_RowCommand" OnRowDataBound="GridView1_RowDataBound">
                            <Columns>
                                <asp:BoundField DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundField>
                                <asp:BoundField DataField="adminName" HeaderText="用户帐号" HeaderStyle-CssClass="title"></asp:BoundField>
                                <asp:BoundField DataField="fullName" HeaderText="用户名称" HeaderStyle-CssClass="title"></asp:BoundField>
                                <asp:TemplateField HeaderText="执行" HeaderStyle-CssClass="title">
                                    <ItemTemplate>
                                        <div class="action-buttons">
                                            <asp:LinkButton ID="del1" runat="server" CommandName="delRow" CommandArgument='<%#Eval("pkid") %>' data-toggle="tooltip" data-placement="bottom" title="删除"><i class="ace-icon fa fa-trash-o bigger-120 red"></i></asp:LinkButton>
                                            <asp:LinkButton ID="del2" runat="server" data-toggle="tooltip" data-placement="bottom" title="您不能删除自己的账号！" Visible="false" Enabled="false"><i class="ace-icon fa fa-trash-o bigger-120 grey" ></i></asp:LinkButton>
                                        </div>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <div class="clearfix">
                            <div class="col-xs-12">
                                <asp:Label ID="lblPage" runat="server"></asp:Label>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--#include file = "../assets/foot.htm" -->
    <script lang="javascript" type="text/javascript">
        jQuery(function ($) {

            $("#FancyBox_reg").click().fancybox({
                'width': 700,
                'height': 390,
                autoSize: false,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'elastic',
                'type': 'iframe',
                'padding': 0,
                'href': 'regUser.aspx'
            });

        });
    </script>
</body>
</html>
