<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/admin.master" AutoEventWireup="true" CodeBehind="Editroles.aspx.cs" Inherits="Book.Admin.Editroles" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


<div id=sm>
角色配置允许您自定义角色
</div>



  <div class="ManagerForm" style=" width:800px">
 
<fieldset>
		    <legend style="background:url(App_Themes/admin/gif_46_106.gif) no-repeat 6px 50%;">添加角色</legend>
 



<asp:gridview  id="RoleList" Width="700px" DataKeyNames="id"
 
 
 AutoGenerateColumns="False" BorderColor="#999999" BorderStyle="None" 
        BorderWidth="1px" BackColor="White" CellPadding="5" GridLines="Horizontal"   
        Runat="Server" 
        onrowdatabound="RoleList_RowDataBound" 
        onrowediting="RoleList_EditCommand"
        onrowdeleting="RoleList_RowDeleting" 
        onrowupdating="RoleList_RowUpdating" 
        onrowcancelingedit="RoleList_RowCancelingEdit">
<HeaderStyle Font-Bold="True" BackColor="#DCDDDE"></HeaderStyle>
<AlternatingRowStyle BackColor="#eeeeee" />
 
<columns>
 <asp:BoundField DataField="id" ReadOnly="true"   HeaderText="系统编号"   />
<asp:BoundField DataField="RoleName" HeaderText="角色名称" />
<asp:BoundField DataField="IsSystem" ReadOnly="True" HeaderText="系统内置" />
<asp:CommandField ShowEditButton="True"    />
<asp:CommandField  ShowDeleteButton="true"  />

 
</columns>
</asp:gridview>

  </fieldset>
 
 </div> 
 
  <asp:Panel id="pnlAddRole" Runat="Server">
  <br /><br />
  
 
 
 
 
   <div class="ManagerForm" style=" width:700px">
 
<fieldset>
		    <legend style="background:url(App_Themes/admin/addrole.gif) no-repeat 6px 50%;">添加角色</legend>
 
<table class="Form">
<tr>
<td colSpan="2">&nbsp;</td>
<tr>
<td>角色名称:</td>
<td>
<asp:TextBox id="txtNewRole" Runat="Server" ValidationGroup="Add"></asp:TextBox>
<asp:RequiredFieldValidator ValidationGroup="Add" id="RequiredFieldValidator1" Runat="server" Text="*" ControlToValidate="txtNewRole"></asp:RequiredFieldValidator></TD>
</tr>
 
<tr>
<td colSpan="2">
<asp:Button id="btnAdd" ValidationGroup="Add" OnClick="btnAdd_Click" Runat="Server" class="btn" Text="添加角色"></asp:Button></td>
</tr>
</table>

 </fieldset>
 
 </div>
</asp:Panel>


</asp:Content>
