<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GrantPrivileges.aspx.cs" Inherits="Chaokers.CN.SysMembership.Web.GrantPrivileges" %>
<%@ Register assembly="Chaokers.CN.SysMembership.Components" namespace="Chaokers.CN.SysMembership.Components.Controls" tagprefix="cc1" %>

<!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">
<asp:Literal runat="server">角色管理</asp:Literal>    
<script type="text/javascript" src="../Js/role.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div id="wrapper">        

    <cc1:CurrLocation ID="CurrLocation1" runat="server">
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
        <td align="left"><p>当前位置：角色与权限/角色赋权</p></td>
        <td align="right">            
            <a href="RoleEditList.aspx"><% = base.AttachImage("back.gif") %> 返回</a>
        </td>
        </tr>
        </table>
    </cc1:CurrLocation>
    
    <div id="mainContainer"> 
    
 <%--   <div class="note">
    <p>操作说明：1）点击模块名称；2）勾选所需的权限；3）点击保存按钮。</p>
    </div>
    --%>
<%--    <br />    --%>

    <table cellspacing="0" cellpadding="0" class="editTable" border="1" bordercolor="<% = base.AppTheme.MainBorderColor %>" style="border-collapse:collapse;">
    <thead>
    <td height="23" colspan="2">
        <b><asp:Label ID="lblOperation" runat="server">角色赋权</asp:Label></b>  
    </td>
    </thead>
    <tr>
    <th height="22">角色名称</th>
    <td>        
        &nbsp;<asp:Label ID="lblRoleName" runat="server"></asp:Label>
    </td>     
    </tr>
    <tr style="display:none;">
    <th height="22">角色描述</th>
    <td>
        &nbsp;<asp:Label ID="lblRoleDesc" runat="server"></asp:Label>
    </td>    
    </tr>
    <tr>
    <th>操作菜单权限</th>
    <td>
        <table width="100%" class="editTable" border="1" bordercolor="<% = base.AppTheme.MainBorderColor %>" style="border-collapse:collapse;margin:-1px;" cellspacing="0" cellpadding="0">
        <thead height="23">
        <td align="center" style="display:none;">        
            系统功能模块
        </td>
        <td align="left" style="display:none;">                
           <p style="margin:5px;">       
           <asp:Label ID="lblModuleInfo" runat="server" Text="节点权限" />
           </p>
        </td>
        </thead>
        <tr>
        <td valign="top" style="width:120px;display:none;">        
            <div style="padding:3px;font-size:14px;">
            <asp:Repeater ID="rpModules" runat="server">
            <HeaderTemplate>
            <table border="0" cellpadding="3" width="100%">
            </HeaderTemplate>
            <ItemTemplate>        
            <tr>
            <td>　<%# FormatModuleName((int)Eval("ModuleID"), Eval("ModuleName").ToString())%>
            </td>
            </tr>            
            </ItemTemplate>
            <FooterTemplate>
            </table>
            </FooterTemplate>
            </asp:Repeater>
            <asp:Label ID="lblNote_Module" runat="server"></asp:Label>
        </div>        
        </td>
        <td height="350" valign="top">        
            <div style="height:350px;overflow:scroll;overflow-x:hidden;">        
            <asp:Label ID="lblNote" runat="server"></asp:Label>
            <asp:TreeView ID="TreeView1" runat="server" ShowCheckBoxes="All" 
                ShowLines="True">
            </asp:TreeView> 
            </div>
            
            
        </td>
        </tr>
        </table>
    </td>    
    </tr>
    <tr>
    <th height="22">全局数据权限</th>
    <td>        
        <asp:CheckBox ID="ckbDataPriv" runat="server"
             Text="可以管理全局数据（如：全局商品字典、礼品字典、营销策略等）" />
    </td>     
    </tr>
    <tr>
    <th height="22"></th>
    <td>        
        <table cellpadding="5" cellspacing="0" border="0" style="width:100%;border-top:solid 1px #dddddd;">
            <tr>
            <td align="center">
                <asp:Button ID="btnSubmit" runat="server"
                     Text=" 保存 "
                     CssClass="btn"
                     OnClick="btnSubmit_Click" />
                <asp:Label ID="lblResult" runat="server" />
            </td>
            <td width="10"></td>
            </tr>
            </table>
    </td>     
    </tr>
    </table>

    </div><!--"mainContainer.END"-->

</div><!--"wrapper.END"-->
</form> 

</body>
</html>

