<%@ Page Language="c#" Inherits="Web.Wpdcc.manageUsersGroup" CodeBehind="manageUsersGroup.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>manageUsersGroup</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/head.htm" -->
</head>
<body>
    <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-desktop"></i>
                    <a href="welcome.aspx">主页</a>
                </li>
                <li>用户管理
                </li>
                <li class="active">用户组</li>
            </ul>
            <!-- /.breadcrumb -->

            <!-- /section:basics/content.searchbox -->
        </div>
        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <form id="Form1" method="post" runat="server">
                        <div class="list-func-box func-box">
                            <div class="bd">
                                <div class="page-header clearfix">
                                    <div class="action-field">
                                        用户组名称：
                    <asp:TextBox ID="groupName" runat="server" CssClass="input-md" MaxLength="30"></asp:TextBox>
                                        &nbsp;说明：
                    <asp:TextBox ID="explain" runat="server" CssClass="input-md"></asp:TextBox>
                                        &nbsp;
                    <asp:HiddenField ID="HiddenField1" runat="server" />
                                        <asp:Button ID="add" runat="server" Text="添 加" OnClick="add_Click" CssClass="btn btn-sm btn-primary"></asp:Button>
                                        &nbsp;
                    <asp:Button ID="cancel" runat="server" Text="取 消" OnClick="cancel_Click" CssClass="btn btn-sm btn-primary"></asp:Button>
                                    </div>
                                </div>
                                <div class="function-bd">
                                    <asp:GridView ID="GroupGridView" runat="server" CssClass="table table-striped table-bordered table-hover" AutoGenerateColumns="False" OnRowDeleting="GroupGridView_RowDeleting" OnRowEditing="GroupGridView_RowEditing">
                                        <Columns>
                                            <asp:BoundField DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundField>
                                            <asp:TemplateField HeaderStyle-CssClass="title" HeaderText="用户组名称">
                                                <ItemTemplate>
                                                    <a rel="Index" href="userGroupInfo.aspx?pkId=<%#Eval("pkId") %>" class="FancyBox">
                                                        <%#Eval("groupName")%></a>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="explain" HeaderText="说明" HeaderStyle-CssClass="title"></asp:BoundField>
                                            <asp:TemplateField HeaderText="执行" HeaderStyle-CssClass="title">
                                                <ItemTemplate>
                                                    <div class="action-buttons">
                                                        <asp:LinkButton ID="edit" runat="server" CommandName="edit" data-toggle="tooltip" data-placement="bottom" title="编辑"><i class="ace-icon fa fa-pencil bigger-120 blue"></i></asp:LinkButton>
                                                        <a class="FancyBox " href='groupAccredit.aspx?pkId=<%#Eval("pkid") %>&name=<%#Eval("groupName") %>' data-toggle="tooltip" data-placement="bottom" title="授权：设置用户组权限"><i class="ace-icon fa fa-cogs bigger-120 purple"></i></a>
                                                        <asp:LinkButton ID="del" runat="server" CommandName="Delete" OnClientClick="return confirm('您确定要删除吗？');" data-toggle="tooltip" data-placement="bottom" title="删除"><i class="ace-icon fa fa-trash-o bigger-120 red" ></i></asp:LinkButton>
                                                    </div>
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                        </Columns>
                                    </asp:GridView>
                                </div>
                            </div>
                        </div>
                    </form>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
        <!-- /.page-content -->
    </div>
    <!--#include file = "../Css/foot.htm" -->
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {

            $(".FancyBox").click().fancybox({
                'width': 600,
                'height': 450,
                autoSize: false,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'elastic',
                'type': 'iframe',
                'padding': '0'
            });
        });
    </script>
</body>
</html>
