<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RoleList.aspx.cs" Inherits="KstCMS.KstCMS_Manager.SystemSet.Users.role.RoleList" %>
<html>
<head  runat="server">
    <title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">



<asp:Panel ID="Panel1" runat="server" CssClass="MainBox">
<table class="PageTitle" width="98%"><tr><td><img src="<%=SysRootUrl %>/KstCMS_Manager/images/menu/system.gif" align="absmiddle" /> 角色管理</td></tr></table>
    <asp:ScriptManager ID="ScriptManager1" runat="server" AllowCustomErrorsRedirect="false">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    

<asp:Repeater ID="repMain" runat="server">
<HeaderTemplate><table width="98%" border="0" cellpadding="5" cellspacing="1" class="Table_Gray">
  <tr>
    <td colspan="2" class="TableTd_Gray"><input type="button" class="bigButton" value="新建角色" onclick="parent.document.getElementById('main').src='RoleEdit.aspx';" /></td>
  </tr>
</HeaderTemplate>
<ItemTemplate>
  <tr class="TableTd_Gray">
    <td nowrap>
    <%#DataBinder.Eval(Container.DataItem,"RoleName") %>
    </td>
    <td nowrap>
    
    <a href="RoleEdit.aspx?RoleId=<%#DataBinder.Eval(Container.DataItem,"RoleId") %>&RoleName=<%#Server.UrlEncode(DataBinder.Eval(Container.DataItem,"RoleName").ToString()) %>" target="main">修改</a>
    
    <a href="SetRole.aspx?RoleId=<%#DataBinder.Eval(Container.DataItem,"RoleId") %>&RoleName=<%#Server.UrlEncode(DataBinder.Eval(Container.DataItem,"RoleName").ToString()) %>" target="main">权限</a>
    
    <a href="RoleCopy.aspx?RoleId=<%#DataBinder.Eval(Container.DataItem,"RoleId") %>&RoleName=<%#Server.UrlEncode(DataBinder.Eval(Container.DataItem,"RoleName").ToString()) %>" target="main">克隆</a>
    
    <asp:Literal ID="litDel" runat="server"></asp:Literal>
    <asp:LinkButton ID="DelBtn" runat="server" CommandName=<%#DataBinder.Eval(Container.DataItem,"RoleId") %>  OnClientClick="return confirm('真的删除此角色吗');">删除</asp:LinkButton>
    </td>
  </tr>
</ItemTemplate>
<AlternatingItemTemplate>
  <tr class="TableTd_Gray1">
    <td nowrap>
    <%#DataBinder.Eval(Container.DataItem,"RoleName") %>
    </td>
    <td nowrap>
       
    <a href="RoleEdit.aspx?RoleId=<%#DataBinder.Eval(Container.DataItem,"RoleId") %>&RoleName=<%# Server.UrlEncode(DataBinder.Eval(Container.DataItem,"RoleName").ToString()) %>" target="main">修改</a>
    
    <a href="SetRole.aspx?RoleId=<%#DataBinder.Eval(Container.DataItem,"RoleId") %>&RoleName=<%#Server.UrlEncode(DataBinder.Eval(Container.DataItem,"RoleName").ToString()) %>" target="main">权限</a>
    
     <a href="RoleCopy.aspx?RoleId=<%#DataBinder.Eval(Container.DataItem,"RoleId") %>&RoleName=<%#Server.UrlEncode(DataBinder.Eval(Container.DataItem,"RoleName").ToString()) %>" target="main">克隆</a>
     <asp:LinkButton ID="DelBtn" runat="server" CommandName=<%#DataBinder.Eval(Container.DataItem,"RoleId") %>  OnClientClick="return confirm('真的删除此角色吗');">删除</asp:LinkButton>
    <asp:Literal ID="litDel" runat="server"></asp:Literal>
    
    </td>
  </tr>
</AlternatingItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
    </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
    <ProgressTemplate>正在删除，请稍候...</ProgressTemplate>
    </asp:UpdateProgress>
</asp:Panel>
    </form>
</body>
</html>
