<%@ 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/adminCss.htm" -->
    <script type="text/javascript" language="javascript">
        $(document).ready(function(){        
            
            $(".FancyBox").click().fancybox({
                'width'		: 500,
				'height'	: 450,
				'hideOnOverlayClick': false,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'elastic',
				'type': 'iframe',
                'padding':'0'
            });
            /*列表高度*/
            $('.function-bd').height($(window).innerHeight() - 100);

            $(window).resize(function () {
                $('.function-bd').height($(window).innerHeight() - 100);
            });
        });
    </script>
</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="list-func-box func-box">
        <div class="hd">
            您的位置：用户管理设置 &gt; 普通用户分组管理</div>
        <div class="bd">
            <div class="function-hd">
                <div class="action-field">
                    用户组名称：
                    <asp:TextBox ID="groupName" runat="server" CssClass="input-txt" MaxLength="30"></asp:TextBox>
                    &nbsp;说明：
                    <asp:TextBox ID="explain" runat="server" CssClass="input-txt"></asp:TextBox>
                    &nbsp;
                    <asp:HiddenField ID="HiddenField1" runat="server" />
                    <asp:Button ID="add" runat="server" Text="添 加" OnClick="add_Click" CssClass="btn"></asp:Button>
                    &nbsp;
                    <asp:Button ID="cancel" runat="server" Text="取 消" OnClick="cancel_Click" CssClass="btn"></asp:Button>
                </div>
            </div>
            <div class="function-bd" style="overflow: auto;">
            <asp:GridView ID="GroupGridView" runat="server" CssClass="list-table" AutoGenerateColumns="False" onrowdeleting="GroupGridView_RowDeleting" onrowediting="GroupGridView_RowEditing">
                <Columns>
                    <asp:BoundField DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundField>
                    <asp:BoundField DataField="groupName" HeaderText="用户组名称" HeaderStyle-CssClass="title"></asp:BoundField>
                    <asp:BoundField DataField="explain" HeaderText="说明" HeaderStyle-CssClass="title"></asp:BoundField>
                    <asp:TemplateField HeaderText="执行" HeaderStyle-CssClass="title">
                        <ItemTemplate>
                            <asp:LinkButton ID="edit" runat="server" CssClass="blue" CommandName="edit">编辑</asp:LinkButton>&nbsp;&nbsp;
                            <asp:LinkButton ID="del" runat="server" CssClass="blue" CommandName="Delete" OnClientClick="return confirm('您确定要删除吗？');">删除</asp:LinkButton>&nbsp;&nbsp;
                            <a class="FancyBox blue" href='groupAccredit.aspx?pkId=<%#Eval("pkid") %>&name=<%#Eval("groupName") %>' title="设置用户组权限">授权设置</a> 
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
                </div>
        </div>
    </div>
    </form>
</body>
</html>
