<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AllotAuthority_Form.aspx.cs"
    Inherits="RM.Web.RMBase.SysRole.AllotAuthority_Form" %>

<%@ Register Src="../../UserControl/LoadButton.ascx" TagName="LoadButton" 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><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("AllotAuthority_Form")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/TreeTable/jquery.treeTable.js" type="text/javascript"></script>
    <link href="/Themes/Scripts/TreeTable/css/jquery.treeTable.css" rel="stylesheet"
        type="text/css" />
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            divresize(63);
            FixedTableHeader("#table1", $(window).height() - 94);
            $("#dnd-example").treeTable({
                initialState: "expanded" //collapsed 收缩 expanded展开的
            });
        })
        //返回
        function back() {
            Urlhref('/RMBase/SysRole/Role_List.aspx');
        }
        //保存
        function SaveForm() {
            showConfirmMsg('<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("AllotAuthority_Form_save")%>', function (r) {
                if (r) {
                    var item = CheckboxValue();
                    $("#item_hidden").val(item);
                    document.getElementById("<%=Save.ClientID%>").click();
                }
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input id="item_hidden" type="hidden" runat="server" />
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Js")%>【<%=_Roles_Name.ToString()%>】 &nbsp;&nbsp;<span style="color: Red;"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("AppendProperty_Form_zysy")%></span>
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="text-align: right">
            <asp:Button id="Save" runat="server" OnClick="Save_Click" style="display:none" />
            <uc1:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div>
    <div class="div-body">
        <table class="example" id="dnd-example">
            <thead>
                <tr>
                    <td style="width: 203px; padding-left: 20px;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CurrentUserManager_url")%>
                    </td>
                    <td style="width: 30px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Button_List_ico")%>
                    </td>
                    <td style="width: 20px; text-align: center;">
                        <label id="checkAllOff" onclick="CheckAllLine()" title='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Quanxian")%>'>
                            &nbsp;</label>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("AllotAuthority_Form_quaxian")%>
                    </td>
                </tr>
            </thead>
            <tbody>
                <%=StrTree_Menu.ToString()%>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
