<%@ page autoeventwireup="false" enableviewstate="false" inherits="WebExam.Web.xgmm, App_Web_ork0kvpt" language="vb" masterpagefile="~/Page.master" title="修改密码" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHead" Runat="Server">
   <link rel="stylesheet" href="../../style/selfreg.css" type="text/css" />
</asp:Content>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="mainCopy">
    
    <script type="text/javascript" src="../../script/regvalid.js"></script>

    <ul class="clear">
        <li class="clear">
            <p class="creat fleft clear">
                安全信息</p>
        </li>
        <li class="clear">
            <div class="name_list font_space fleft">
                用户名：</div>
            <div class="input_list font_space fleft">
                <asp:Label ID="L_userId" runat="server" class="name_aready"></asp:Label>
            </div>
            <div class="explain_list fleft">
                <span id="messageDiv" class="explain"></span>
            </div>
        </li>
        <li class="clear">
            <div class="compart">
            </div>
        </li>
        <li class="clear">
            <p class="creat fleft clear">
                修改密码</p>
        </li>
        <li class="clear">
            <div class="name_list font_space fleft">
                <span class="atten">*</span> 原密码：</div>
            <div class="input_list font_space fleft">
                <asp:TextBox ID="TB_pwd" runat="server" TextMode="Password" onblur="this.style.borderColor='#A3BFA8';"
                    onfocus="this.style.borderColor='#99E300';" AutoCompleteType="Disabled" 
                    ValidationGroup="g1"></asp:TextBox>
                <div class="error_explain font_space">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ErrorMessage="请输入原密码"
                        ControlToValidate="TB_pwd" Display="Dynamic" ValidationGroup="g1"></asp:RequiredFieldValidator>
                </div>
            </div>
        </li>
        <li class="clear">
            <div class="name_list font_space fleft">
                <span class="atten">*</span> 新密码：</div>
            <div class="input_list font_space fleft">
                <asp:TextBox ID="TB_password" runat="server" TextMode="Password" MaxLength="36" onblur="this.style.borderColor='#A3BFA8';checkPWD(this.value);"
                    onfocus="this.style.borderColor='#99E300';this.style.borderColor='#99E300'" onkeyup="checkPWD(this.value);"
                    Width="230px"></asp:TextBox>
                <div class="error_explain font_space" id="chkPwd">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入6～20位字符的密码"
                        ControlToValidate="TB_password" Display="Dynamic" ValidationGroup="g1"></asp:RequiredFieldValidator></div>
                <div class="PSW_P_0" id="chkpswd">
                    <div class="PSW_P_W">
                        密码安全程度：<span id="chkpswdcnt">太短</span></div>
                    <div class="PSW_P_BGC">
                        <div class="PSW_P_pC">
                        </div>
                    </div>
                </div>
            </div>
            <div class="explain_list fleft">
                <span class="explain">密码长度6～20位，由英文字母a～z (区分大小写)，数字0～9，特殊字符组成。</span></div>
        </li>
        <li class="clear">
            <div class="name_list font_space fleft">
                <span class="atten">*</span> 请再次输入密码：</div>
            <div class="input_list font_space fleft">
                <asp:TextBox ID="TB_password_cf" runat="server" TextMode="Password" MaxLength="36"
                    onblur="this.style.borderColor='#A3BFA8';" onfocus="this.style.borderColor='#99E300';"
                    Width="230px" ValidationGroup="g1"></asp:TextBox>
                <div class="error_explain font_space" id="pwdConfirm">
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次输入的密码不一致"
                        Display="Dynamic" ControlToCompare="TB_password" 
                        ControlToValidate="TB_password_cf" ValidationGroup="g1"></asp:CompareValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="两次输入的密码不一致"
                        ControlToValidate="TB_password_cf" Display="Dynamic" ValidationGroup="g1"></asp:RequiredFieldValidator>
                </div>
                <div>
                    <asp:Label ID="L_msg" runat="server" Visible="False" Font-Bold="True" ForeColor="Red"></asp:Label>
                </div>
            </div>
            <div class="font_space fright">
                <asp:Button ID="Btn_save" runat="server" Text="保存" Width="100" 
                    Style="margin-right: 100px" ValidationGroup="g1" />
            </div>
        </li>
        <li class="clear">
            <div class="compart">
            </div>
        </li>
        <li class="clear">
            <p class="creat fleft clear">
                密码保护设置 <span class="atten">&nbsp; 为了保障帐号安全，请填写下列信息并牢记。</span></p>
        </li>
       <li class="clear">
            <div class="name_list font_space fleft">
                <span class="atten">*</span> 密码：</div>
            <div class="input_list font_space fleft">
                <asp:TextBox ID="TB_pwd2" runat="server" TextMode="Password" onblur="this.style.borderColor='#A3BFA8';"
                    onfocus="this.style.borderColor='#99E300';" AutoCompleteType="Disabled" 
                    ValidationGroup="g2"></asp:TextBox>
                <div class="error_explain font_space">
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入密码"
                        ControlToValidate="TB_pwd2" Display="Dynamic" ValidationGroup="g2"></asp:RequiredFieldValidator>
                </div>
            </div>
        </li>
        <li class="clear">
            <div class="name_list font_space fleft">
                <span class="atten">*</span>密码提示问题：</div>
            
            <div class="input_list font_space fleft">
                <select style="width: 235px;" id="question" onchange="checkQuestion('<%= TB_question.ClientID %>');">
                    <option value="">[请选择您的密码提示问题] </option>
                    <option value="cus">***自定义密码提示问题***</option>
                    <option value="您的家乡是?">您的家乡是?</option>
                    <option value="您初中的语文老师是?">您初中的语文老师是?</option>
                    <option value="您最尊重的人是?">您最尊重的人是?</option>
                    <option value="您最爱吃的菜是?">您最爱吃的菜是?</option>
                    <option value="您最爱读的书是?">您最爱读的书是?</option>
                    <option value="您最喜欢的一首歌是?">您最喜欢的一首歌是?</option>
                    <option value="您最喜欢的运动是?">您最喜欢的运动是?</option>
                    <option value="您最喜欢的电影是?">您最喜欢的电影是?</option>
                    <option value="您最喜欢的节日是?">您最喜欢的节日是?</option>
                    <option value="您最想去的地方是?">您最想去的地方是?</option>
                    <option value="您最想做的事情是?">您最想做的事情是?</option>
                    <option value="您最难忘的事情是?">您最难忘的事情是?</option>
                </select>
                <div class="error_explain font_space" id="questionConfirm">
                </div>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="请输入提示问题"
                        ControlToValidate="TB_question" Display="Dynamic" ValidationGroup="g2"></asp:RequiredFieldValidator>
            </div>
        </li>
        <li style="display: none" id="cus_question">
            <div class="name_list font_space fleft">
                请输入自定义的问题：</div>
            <div class="input_list font_space fleft">
                <input runat="server" id="TB_question" type="text" maxlength="30" size="36" onblur="this.style.borderColor='#A3BFA8';"
                    onfocus="this.style.borderColor='#99E300';" validationgroup="g2" />
                
            </div>
            <div class="explain_list fleft">
                <span class="explain">问题长度不超过30个字符。</span></div>
        </li>
        <li class="clear">
            <div class="name_list font_space fleft">
                答 案：</div>
            <div class="input_list font_space fleft">
                <input runat="server" id="TB_answer" size="36" maxlength="30" onblur="this.style.borderColor='#A3BFA8';"
                    onfocus="this.style.borderColor='#99E300';" validationgroup="g2" />
                <div class="error_explain font_space" id="answerConfirm">
                </div>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="请输入答案"
                        ControlToValidate="TB_answer" Display="Dynamic" ValidationGroup="g2"></asp:RequiredFieldValidator>
                <div>
                    <asp:Label ID="L_msg2" runat="server" Visible="False" Font-Bold="True" ForeColor="Red"></asp:Label>
                </div>
            </div>
            <div class="font_space fright">
                <asp:Button ID="Btn_saveAnswer" runat="server" Text="保存" Width="100" 
                    Style="margin-right: 100px" ValidationGroup="g2" />
            </div>
        </li>
    </ul>
</asp:Content>
