<%@ page language="C#" autoeventwireup="true" inherits="Admin_UserManagement_AddRole, ShopWe" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<!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="../css/my.css" rel="stylesheet" type="text/css" />
    <link href="../JS/TableSort/tablesort.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
       function GetCheckbox(action)
    {
      var checkBoxs = document.form1.getElementsByTagName('INPUT');  
        for(var i=0;i <checkBoxs.length;i++)  
        {  
        if(checkBoxs[i].type=='checkbox'&&action.indexOf(checkBoxs[i].value)!=-1)  
        {
        checkBoxs[i].checked="checked";
        }
        }  
    }
    
    
//CheckBod反选

function checkAll(title) {
    var el = document.getElementsByTagName('input');
    var len = el.length;
    for (var i = 0; i < len; i++) {
        if ((el[i].type == "checkbox") && (el[i].title == title)) {
            if (el[i].checked == false) 
            {
                el[i].checked = true;
            }
            else 
            {
                el[i].checked = false;
            }
        }
    }
}
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div class="all">
            <div class="validate">
                <asp:ValidationSummary ID="ValidationSummaryPage" CssClass="val_ys" runat="server"
                    DisplayMode="List" ForeColor="#FF6600" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidatorName" runat="server" ErrorMessage="配送方式名称不能为空"
                    ControlToValidate="RoleName" Display="None"></asp:RequiredFieldValidator>
            </div>
            <div class="come_title">
                <h2>
                    设置权限名称</h2>
                <div class="title_help">
                    <a href="http://www.shopwe.cn/bbs/" target="_blank">
                        <img src="../Themes/Default/Images/help_1.jpg" alt="shopwe论坛" width="50" height="20" /></a>
                    <a href="http://help.shopwe.cn/help/Show.asp?id=14" target="_blank">
                        <img src="../Themes/Default/Images/help.jpg" alt="shopwe帮助中心" width="50" height="20" /></a></div>
            </div>
            <div class="k_all6">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="bg_1" style="text-align: right; width: 100px; height: 36px;">
                            添加权限名称：</td>
                        <td>
                            <input class="input" id="RoleName" runat="server" style="width: 220px" /><h4>
                                <img src="../css/images/help.png" />
                                <span style="color: #999999">权限组的标示名称</span></h4>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="come_title_bai">
                <h2>
                    分配权限</h2>
            </div>
            <div class="k_all6">
                <asp:Literal ID="LiteralRole" runat="server"></asp:Literal>
            </div>
        </div>
        <div class="sub">
            <asp:Button ID="Submit" runat="server" Text="提交" OnClick="Submit_Click" CssClass="but_add" />
        </div>
    </form>
</body>
</html>
