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

<%@ 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 Return_txt()
    {
        if(document.getElementById("txt_rname").value=="")
        {
             alert("用户组名称不能为空");
             return false;
        }
        else
        {
             return true;
        }
    }
    </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 align="center">
                    用户组名称:<asp:TextBox ID="txt_rname" runat="server"></asp:TextBox>&nbsp;
                    <asp:DropDownList ID="DropDownList1" runat="server">
                    </asp:DropDownList>
                    <input id="Radio1" name="rad" runat=server type="radio" value="1" />添加&nbsp;
                    <input id="Radio2" name="rad" runat=server type="radio" value="2" />修改&nbsp;&nbsp;
                    <asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="return Return_txt()" ImageUrl="~/admin/skin/images/button_save.gif" OnClick="ImageButton1_Click" />
                    <asp:HiddenField ID="hiddle_rid" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    用户组管理</td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" CellPadding="4" ForeColor="#333333" GridLines="None" DataKeyNames="r_id" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing">
                        <Columns>
                            <asp:TemplateField HeaderText="序号">
                                <ItemStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                <%#Container.DataItemIndex+1 %>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="r_id" HeaderText="用户组ID">
                                <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>
