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

<!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("UserGroup_Form_ssyhz")%></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("#dnd-example", $(window).height() - 91);
            $("#dnd-example").treeTable({
                initialState: "expanded" //collapsed 收缩 expanded展开的
            });
            $('input[type="checkbox"]').attr('disabled', 'disabled');
        })
        //面板切换
        function TabPanel(id) {
            if (id == 1) {
                $("#div_Left").show();
                $("#div_Right").hide();
            } else if (id == 2) {
                $("#div_Left").hide();
                $("#div_Right").show();
            }
        } 
    </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("AllotAuthority_Form_ssyhz")%> [<%=_UserGroup_Name.ToString()%>]
        </div>
    </div>
    <div class="btnbarcontetn">
        <div style="float: left;">
            <table style="padding: 0px; margin: 0px; height: 100%;" cellpadding="0" cellspacing="0">
                <tr>
                    <td id="menutab" style="vertical-align: bottom;">
                        <div id="tab0" class="Tabsel" onclick="GetTabClick(this);TabPanel(1)">
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserGroup_Form_szqx")%></div>
                        <div id="tab1" class="Tabremovesel" onclick="GetTabClick(this);TabPanel(2)">
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("UserGroup_Form_sqcy")%></div>
                    </td>
                </tr>
            </table>
        </div>
        <div style="text-align: right">
            <a href="javascript:void(0)" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Return") %>" onclick="back();" class="button green"><span
                class="icon-botton" style="background: url('/Themes/images/16/back.png') no-repeat scroll 0px 4px;">
            </span><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Return") %></a>
        </div>
    </div>
    <div class="div-body" id="div_Left">
        <table class="example" id="dnd-example">
            <thead>
                <tr>
                    <td style="width: 200px; 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" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Quanxuan")%>">
                            &nbsp;</label>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Button_List_btn")%>
                    </td>
                </tr>
            </thead>
            <tbody>
                <%=StrTree_Menu.ToString()%>
            </tbody>
        </table>
    </div>
    <div class="div-body" id="div_Right" style="display: none;">
        <table id="table1" class="grid">
            <thead>
                <tr>
                    <td style="width: 30px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_code")%>
                    </td>
                    <td style="width: 150px; ">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Name")%>
                    </td>
                    <td style="width: 100px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Accout")%>
                    </td>
                    <td style="width: 50px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Sex")%>
                    </td>
                    <td style="width: 200px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Title")%>
                    </td>
                    <td style="width: 50px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_State")%>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Explain")%>
                    </td>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rp_Item" runat="server" OnItemDataBound="rp_ItemDataBound">
                    <ItemTemplate>
                        <tr>
                            <td style="width: 30px; text-align: center;">
                                <%# Container.ItemIndex + 1%>
                            </td>
                            <td style="width: 150px;">
                                <%#Eval("User_Name")%>
                            </td>
                            <td style="width: 100px; text-align: center;">
                                <%#Eval("User_Account")%>
                            </td>
                            <td style="width: 50px; text-align: center;">
                                <asp:Label ID="lblUser_Sex" runat="server" Text='<%#Eval("User_Sex")%>'></asp:Label>
                            </td>
                            <td style="width: 200px; text-align: center;">
                                <%#Eval("Title")%>
                            </td>
                            <td style="width: 50px; text-align: center;">
                                <asp:Label ID="lblDeleteMark" runat="server" Text='<%#Eval("DeleteMark")%>'></asp:Label>
                            </td>
                            <td>
                                <%#Eval("User_Remark")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <% if (rp_Item != null)
                           {
                               if (rp_Item.Items.Count == 0)
                               {
                                   Response.Write("<tr><td colspan='8' style='color:red;text-align:center'>" + RM.Common.DotNetConfig.LanguageHelper.GetKey("Null") + "</td></tr>");
                               }
                           } %>
                    </FooterTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
