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

<!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("User_information")%></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(62);
            Setform();
            $("#table4").treeTable({
                initialState: "expanded" //collapsed 收缩 expanded展开的
            });
            $('#table4 input[type="checkbox"]').attr('disabled', 'disabled');
            $('#table2').hide();
            $('#table3').hide();
            $('#table4').hide();
        })
        //点击切换面板
        function panel(obj) {
            if (obj == 1) {
                $('#table1').show();
                $('#table2').hide();
                $('#table3').hide();
                $('#table4').hide();
            } else if (obj == 2) {
                $('#table1').hide();
                $("#table2").show();
                $('#table3').hide();
                $('#table4').hide();
            } else if (obj == 3) {
                $('#table1').hide();
                $("#table2").hide();
                $('#table3').show();
                $('#table4').hide();
            } else if (obj == 4) {
                $('#table1').hide();
                $("#table2").hide();
                $('#table3').hide();
                $('#table4').show();
            }
        }
        //附加信息表单赋值
        function Setform() {
            var strArray = new Array();
            var strArray1 = new Array();
            var item_value = $("#AppendProperty_value").val(); //后台返回值
            strArray = item_value.split(';');
            for (var i = 0; i < strArray.length; i++) {
                var item_value1 = strArray[i];
                strArray1 = item_value1.split('|');
                try {
                    $("#" + strArray1[0]).parent().hthl("<lable id=" + strArray1[0] + ">" + strArray1[1] + "</lable>");
                } catch (e) { }
               // $("#" + strArray1[0]).text(strArray1[1]);
            }
        }
        /**修改密码**/
        function editpwd() {
            var url = "/RMBase/SysUser/UpdateUserPwd.aspx";
            top.openDialog(url, 'UpdateUserPwd', '<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CurrentUserManager_xgmm")%>', 400, 225, 50, 50);
        }
    </script>
    <style type="text/css">
        .frm th
        {
            border-right: 1px solid #ccc;
            padding-right: 10px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <%--    获取附加信息值--%>
    <input id="AppendProperty_value" type="hidden" runat="server" />
    <div class="btnbartitle">
        <div>
            <%=_UserName.ToString() %>
            - 
               <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Related")%> </div>
        </div>
    </div>
    <div class="btnbarcontetn">
        <div>
            <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);panel(1)">
                           <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Jbxx")%> </div>
                        <div id="tab1" class="Tabremovesel" onclick="GetTabClick(this);panel(2);">
                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Fjxx")%>  </div>
                        <div id="tab2" class="Tabremovesel" onclick="GetTabClick(this);panel(3);">
                           <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Js")%>   </div>
                        <div id="tab3" class="Tabremovesel" onclick="GetTabClick(this);panel(4);">
                           <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Qx")%>   </div>
                    </td>
                </tr>
            </table>
            
        </div>
    </div>
    <div class="div-body">
        <table id="table1" border="0" cellpadding="0" cellspacing="0" class="frm">
            <tr>
                <th>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_code")%>
                </th>
                <td colspan="">
                    <asp:Label ID="User_Code" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Name")%></a>
                </th>
                <td colspan="">
                   <a target="_blank" style="color:blue;" href="/Training/UserArchives.aspx?id=<%=_key%>"><asp:Label ID="User_Name" runat="server"></asp:Label></a>
                </td>
            </tr>
            <tr>
                <th>
                  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Accout")%>
                </th>
                <td colspan="">
                    <asp:Label ID="User_Account" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Pwd")%>
                  
                </th>
                <td colspan="">
                    *********** <a href="javascript:void(0);" title="<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CurrentUserManager_xgmm")%>" style="text-decoration: underline;
                        color: Blue;" onclick="editpwd()"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CurrentUserManager_xgmm")%></a>
                </td>
            </tr>
            <tr>
                <th>
                  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Sex")%>
               
                </th>
                <td colspan="">
                    <asp:Label ID="User_Sex" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Email")%>
                  
                </th>
                <td colspan="">
                    <asp:Label ID="Email" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_CreatDate")%>
                  
                </th>
                <td colspan="">
                    <asp:Label ID="CreateDate" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Title")%>
                
                </th>
                <td colspan="">
                    <asp:Label ID="Title" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_State")%>
                </th>
                <td colspan="">
                    <asp:Label ID="DeleteMark" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Systemstyle")%>
              
                </th>
                <td colspan="">
                    <asp:Label ID="Theme" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <th>
                  <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_Description")%>
                 
                </th>
                <td colspan="">
                    <asp:Label ID="User_Remark" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <table id="table2" border="0" cellpadding="0" cellspacing="0" class="frm">
            <%=AppendHtml.ToString()%>
        </table>
        <table id="table3" class="grid">
            <thead>
                <tr>
                    <td style="width: 50px; text-align: center;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("User_code")%>
                    </td>
                    <td style="width: 150px;">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Role")%>
                    </td>
                    <td>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("CurrentUserManager_jsms")%>
                    </td>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="rp_Item" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td style="width: 50px; text-align: center;">
                                <%# Container.ItemIndex+1 %>
                            </td>
                            <td style="width: 150px;">
                                <%#Eval("Roles_Name")%>
                            </td>
                            <td>
                                <%#Eval("Roles_Remark")%>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        <% if (rp_Item != null)
                           {
                               if (rp_Item.Items.Count == 0)
                               {
                                   Response.Write("<tr><td colspan='3' style='color:red;text-align:center'>" + RM.Common.DotNetConfig.LanguageHelper.GetKey("Null") + "</td></tr>");
                               }
                           } %>
                    </FooterTemplate>
                </asp:Repeater>
            </tbody>
        </table>
        <table class="example" id="table4">
            <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" 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>
    </form>
</body>
</html>
