<%@ page language="C#" autoeventwireup="true" inherits="MIS_OA_UserConfig, App_Web_erlqa5fk" debug="true" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="CSS/ZLOA.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/JS/jquery-1.9.1.min.js"></script>
<title>个人设置</title>
<style type="text/css">
.tdl {text-align:right;width:150px;}
.chkTable tr td{border:none;width:80px;}
#mainDiv {padding:10px;}
.button{ background:#428bca; border:1px solid #428bca; padding:6px 12px; border-radius:4px; color:#fff;}
.nav_ul { margin-bottom:10px; background:#f5f5f5;}
.nav_ul li{ float:left;}
.nav_ul li a { padding:10px 15px; display:block;}
.nav_ul li a:hover{ text-decoration:none;}
.nav_ul .cur{ background:#428bca;}
.nav_ul .cur a{ color:#fff;}
</style>
<script type="text/javascript">
    function SelAll()
    {
        $(":checkbox").each(function () { this.checked = true; });
    }
    function showdiv(obj,n)
    {
        $(obj).parent().parent().find("li").removeClass("cur");
        $(obj).parent().addClass("cur");
        switch (n)
        {
            case "1":
                $("#tab2").show();
                $("#tab1").hide();
                break;
            case "2":
                $("#tab1").show();
                $("#tab2").hide();
        }
    }
    function showpass(obj)
    {
        if ($(obj).text() == "修改密码")
            $(obj).text("返回");
        else
            $(obj).text("修改密码");
        $(obj).parent().find("table").toggle();
    }
</script>
</head>
<body>
<form id="form1" runat="server">
    <div id="mainDiv">
        <ul class="nav_ul">
            <li class="cur"><a href="javascript:;" onclick="showdiv(this,'1')">个人信息</a></li>
            <li><a href="javascript:;" onclick="showdiv(this,'2')">系统设置</a></li>
            <div class="clearfix"></div>
        </ul>
        <div id="tab2">
            <div style="height:30px;line-height:30px;">
                <div style="float:left;width:28px;height:30px;"><img src="Images/userinfo.gif" alt="" /></div>
                <div style="float:left;"><strong style="margin-left:10px;font-size:18px;">用户资料</strong></div>
            </div>
            <table class="table_li table-border">
                <tr>
                    <td class="tdl">姓名：</td>
                    <td>
                        <asp:TextBox ID="TrueName" CssClass="form-control" runat="server"></asp:TextBox>
                    </td>
                </tr>
<%--                <tr>
                    <td class="tdl">邮件：</td>
                    <td>
                        <asp:TextBox ID="UserEmail" CssClass="form-control" runat="server"></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ErrorMessage="邮件格式不正确" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic" ControlToValidate="UserEmail" ForeColor="Red" ></asp:RegularExpressionValidator>
                    </td>
                </tr>--%>
                <tr>
                    <td class="tdl">密码：</td>
                    <td>
                        <table style="display:none;">
                            <tr>
                                <td>原密码：</td>
                                <td><asp:TextBox ID="PassWord" TextMode="Password" CssClass="form-control" runat="server" Width="218"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>新密码：</td>
                                <td>
                                    <asp:TextBox ID="NewPassWord" TextMode="Password" CssClass="form-control" runat="server" Width="218"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" Display="Dynamic" ErrorMessage="密码不能少于6位" ControlToValidate="NewPassWord" ValidationExpression="[\s\S]{6,}" ForeColor="Red"></asp:RegularExpressionValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>重复密码：</td>
                                <td>
                                    <asp:TextBox ID="RNewPassWord" TextMode="Password" CssClass="form-control" runat="server" Width="218"></asp:TextBox>
                                    <asp:CompareValidator ID="CompareValidator1" ControlToValidate="RNewPassWord" ControlToCompare="NewPassWord" Display="Dynamic" runat="server" ErrorMessage="两次输入不一致" ForeColor="Red" ></asp:CompareValidator>
                                </td>
                            </tr>
                        </table>
                        <button type="button" onclick="showpass(this);" name="setpassword" id="setpassword" class="button" style="margin-top:5px;">修改密码</button>
                    </td>
                </tr>
                <tr>
                    <td class="tdl">性别：</td>
                    <td>
                        <asp:RadioButtonList ID="UserSex" runat="server" RepeatColumns="2">
                            <asp:ListItem Value="1">男</asp:ListItem>
                            <asp:ListItem Value="2">女</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="tdl">手机：</td>
                    <td>
                        <asp:TextBox ID="UserPhone" CssClass="form-control" runat="server" ></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="手机号码输入格式错误" ControlToValidate="UserPhone" ValidationExpression="^[1][358][0-9]{9}$" Display="Dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tdl">电话：</td>
                    <td>
                        <asp:TextBox ID="UserTel" CssClass="form-control" runat="server" ></asp:TextBox>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="电话号码输入格式错误" ControlToValidate="UserTel" ValidationExpression="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)" Display="Dynamic" ForeColor="Red"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="tdl">部门：</td>
                    <td>
                        <asp:Label ID="Branch" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tdl">状态：</td>
                    <td>
                        <asp:Label ID="StatusT" runat="server" Text="Label"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tdl">操作：</td>
                    <td>
                        <asp:Button ID="SetUserBtn" CssClass="button" runat="server" Text="保存" OnClick="SetUserBtn_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="tab1" style="display:none;">
            <table class="table_li table-border">
                <tr><td class="tdl">窗格顺序(主界面)：</td><td>提示:在页面直接拖动排序即可,实时保存</td></tr>
                <tr><td class="tdl">默认显示(左边栏)：</td>
                    <td>
                        <asp:CheckBoxList runat="server" ID="leftChk" RepeatDirection="Horizontal" CssClass="chkTable">
                            <asp:ListItem Value="leftChk0" Selected="false">显示左侧</asp:ListItem>
                            <asp:ListItem Value="leftChk1" Selected="True">日历</asp:ListItem>
                            <asp:ListItem Value="leftChk2" Selected="True">值班</asp:ListItem>
                            <asp:ListItem Value="leftChk3" Selected="True">联系人</asp:ListItem>
                            <asp:ListItem Value="leftChk4" Selected="True">快捷访问</asp:ListItem>
                            <asp:ListItem Value="leftChk5" Selected="True">历史记录</asp:ListItem>
                        </asp:CheckBoxList>
                    </td></tr>
                <tr><td class="tdl">默认显示(主界面)：</td>
                    <td>
                        <asp:CheckBoxList runat="server" ID="mainChk" RepeatDirection="Horizontal" CssClass="chkTable">
                            <asp:ListItem Value="mainChk1" Selected="True">行政公文</asp:ListItem>
                            <asp:ListItem Value="mainChk2" Selected="True">行政办公</asp:ListItem>
                            <asp:ListItem Value="mainChk3" Selected="True">部门公告</asp:ListItem>
                            <asp:ListItem Value="mainChk4" Selected="True">邮箱管理</asp:ListItem>
                            <asp:ListItem Value="mainChk5" Selected="True">最新通知</asp:ListItem>
                            <asp:ListItem Value="mainChk6" Selected="True">论坛交流</asp:ListItem>
                        </asp:CheckBoxList></td></tr>
                <tr><td class="tdl">弹窗提示(主界面)：</td>
                    <td><asp:CheckBoxList runat="server" ID="popChk" RepeatDirection="Horizontal" CssClass="chkTable">
                            <asp:ListItem Value="popChk1" Selected="True">新邮件</asp:ListItem>
                            <asp:ListItem Value="popChk2" Selected="True">未签到</asp:ListItem>
                            <asp:ListItem Value="popChk3" Selected="True">新公文</asp:ListItem>
                            <asp:ListItem Value="popChk4" Selected="True">新流程</asp:ListItem>
                        </asp:CheckBoxList></td></tr>
                <tr><td class="tdl">操作：</td>
                    <td>
                        <asp:Button runat="server" CssClass="button" ID="saveBtn" Text="保存" OnClick="saveBtn_Click" />
                        <input type="button" value="重置" class="button" onclick="location = location;" style="margin-left:5px;"/>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</form>
</body>
</html>
