<%@ page language="C#" autoeventwireup="true" inherits="phone_UpdatePass, 25175_ALL" %>

<%@ Register Src="~/sys/MyHeader.ascx" TagPrefix="uc1" TagName="MyHeader" %>
<%@ Register Src="~/sys/MyFooter.ascx" TagPrefix="uc1" TagName="MyFooter" %>
<%@ Register Src="~/phone/MyHeader.ascx" TagPrefix="uc2" TagName="MyHeader" %>
<%@ Register Src="~/phone/MyFooter.ascx" TagPrefix="uc2" TagName="MyFooter" %>




<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>修改密码</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/control/plugin/bootstrap3/css/bootstrap.min.css" rel="stylesheet" />
    <script src="/control/js/jquery.js"></script>
    <script src="/control/plugin/bootstrap3/js/bootstrap.min.js"></script>
    <link href="/phone/css/style.css?v=201721" rel="stylesheet" />

</head>
<body>
    <uc2:MyHeader runat="server" ID="MyHeader" />
    <div class="container-fluid">
        <div class="row">
            <div class="col-lg-12 cont">
                <div class="panel panel-default">
                    <div class=" panel-heading ">密码修改</div>
                    <div class="panel-body">
                        <form id="from1" runat="server">
                            <!-- Add.aspx -->
                            <div class="form-group">
                                <label class=" control-label">
                                    新用户名<span class='rd'>*</span>
                                    ：</label>
                                <div>

                                    <asp:TextBox ID="txtNewUser" runat="server" MaxLength="255" CssClass="form-control"></asp:TextBox>

                                </div>
                                <p class="help-block">
                                    <asp:RequiredFieldValidator ID="rfvtxtNewUser" runat="server" ForeColor="Red" Display="Dynamic"
                                        ErrorMessage="请填写新用户名" ControlToValidate="txtNewUser"></asp:RequiredFieldValidator>

                                       <asp:RegularExpressionValidator ID="revUser" runat="server" ErrorMessage="只允许数字字母@_."  ForeColor="Red" Display="Dynamic"
                                            ControlToValidate="txtNewUser" ValidationExpression="^[0-9a-zA-z_@]{1,50}$"> 
                                       </asp:RegularExpressionValidator>

                                </p>
                            </div>

                            <div class="form-group">
                                <label class=" control-label">
                                    新密码<span class='rd'>*</span>
                                    ：</label>
                                <div>
                                    <asp:TextBox ID="txtNewPass" runat="server" MaxLength="255" CssClass="form-control"
                                        TextMode="Password"></asp:TextBox>
                                </div>
                                <p class="help-block">
                                    <asp:RequiredFieldValidator ID="rfvtxtNewPass" runat="server" ForeColor="Red" Display="Dynamic"
                                        ErrorMessage="请填写新密码" ControlToValidate="txtNewPass"></asp:RequiredFieldValidator>
                                </p>
                            </div>

                            <div class="form-group">
                                <label class=" control-label">
                                    新密码验证<span class='rd'>*</span>
                                    ：</label>
                                <div>
                                    <asp:TextBox ID="txtNewPass2" runat="server" MaxLength="255" CssClass="form-control"
                                        TextMode="Password"></asp:TextBox>
                                </div>
                                <p class="help-block">
                                    <asp:CompareValidator ID="cvtxtNewPass2" runat="server"
                                        ControlToCompare="txtNewPass2" ControlToValidate="txtNewPass" Display="Dynamic"
                                        ErrorMessage="两次密码输入不一致" ForeColor="Red"></asp:CompareValidator>
                                </p>
                            </div>

                            <div class="form-group">
                                <asp:Button ID="btnSubmit" runat="server" Text="修改用户名和密码" CssClass="btn btn-block  btn-primary " OnClick="btnSubmit_Click" />
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <uc2:MyFooter runat="server" ID="MyFooter" />
</body>
</html>

