<%@ page language="C#" autoeventwireup="true" inherits="Passport_PasswordManager, WebApp_deploy" %>

<!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>通行证资料管理</title>
    <link href="Css/PassportStyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="../Skin/CommStyle/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <link href="../Skin/CommStyle/main.css" rel="stylesheet" type="text/css" />
    <script src="Js/passport.js" type="text/javascript"></script>
    <script  type="text/javascript">

        function killErrors() {
            return true;
        }
        window.onerror = killErrors;

</script>
</head>
<body>
    <form id="form1" runat="server">
     <hl:Top ID="Top1" runat="server" />
    <div id="main" class="main">
            <div id="RegStep">
              <ul>
                 <li><a href="PasswordManager.aspx">修改密码</a></li>
                 <li><a href="Confirm_Email.aspx">绑定E-Mail</a></li>
              </ul>
        </div>
    <br />
    <!--修改问题答案区-->
    <asp:Panel ID="ModifyQuestionZone" runat="server" >
    <div class="div_middle_content">
        <fieldset id="fieldId" runat="server" visible="false">
            <legend><strong>请选择自己的喜欢问题，再写答案</strong></legend>
            <br />
            <asp:Panel ID="NoSetQuestionMsg" runat="server" Visible="false">
               <div style="padding:15px; background:#fff7d9; width:450px; height:16px;">
                   提醒：您还<strong>没有</strong>设置密码保护，为了您的帐号安全，请尽快在下面设置。                       
               </div>                    
            </asp:Panel>
            <asp:Panel ID="ModifyQuestionMsg" runat="server" Visible="false" Width="393px">
                需要修改密码保护问题和答案<a href="PasswordManager.aspx?action=edit" target="_self" >请点此处</a>。</asp:Panel>
            <br />
            <!--修改问题答案-->
            <asp:Panel ID="SaveQuestionZone" runat="server" Visible="false">
            <div style="width:98%">
                <div class="div_row">
                   <div class="div_left">选择问题：</div>
                   <div   class="div_right">
                      <asp:DropDownList ID="H_SaveQuestion" runat="server" Width="157px" DataTextField="Name" CssClass="text p2" >
                            <asp:ListItem Text="请选择" Value="" />
                         </asp:DropDownList>
                   </div>
                </div>
                <div class="div_row"> 
                 <div class="div_left">答案：</div>
                   <div class="div_right">
                       <asp:TextBox ID="H_SaveAnswer" runat="server" CssClass="text p2"/>
                   </div>
                </div>
                <div class="div_row">
                 <div class="div_left">安全电子邮箱地址：</div>
                   <div class="div_right">
                        <asp:TextBox ID="H_UserEmail" runat="server" CssClass="text p2"/>
                   </div>
                </div>
                <div class="div_row" >
                   <asp:Label ID="ChangeQuestionAnswer_tips" runat="server" CssClass="text p2" />
                </div>
                <div class="div_row">
                    <br />
                   <asp:Button ID="Submit1" runat="server" Text="确 定" CausesValidation="False"  />
                    <br />
                </div>
                <div class="div_row" style="text-align: left">
                    <p ><strong>温馨提示</strong>：</p>
                        <ul>
                            <li>密码保护功能可以保障您的会员名更安全，当密码发生问题时，能帮您更安全快捷的取回。 </li>
                            <li>请一定要填写并牢记您的安全邮箱以便接收您的密码。包括安全邮箱在内的密码保护信息，系统不会对外公开。 </li>
                            <li>请您认真填写密码保护的问题，要牢记填写的每项内容，以便系统将根据该资料为您提供“修改密码”、“取回密码”服务。 </li>
                        </ul>
                </div>
            </div>
            </asp:Panel>
            
             </fieldset> 
            
            <!--保存问题答案-->
            <fieldset id="fieldzq" runat="server" visible="true"> 
            <legend><strong>输入正确答案</strong></legend>
            <asp:Panel ID="EditQuestionZone" runat="server">
               <div style="width:98%">
                    <div class="div_row">
                       <div class="div_left">密码保护问题：</div>
                       <div class="div_right">
                         <asp:Literal runat="server" ID="H_UserQuestion" />
                       </div>
                    </div>
                    <div class="div_row">
                       <div class="div_left">答案：</div>
                       <div class="div_right"><asp:TextBox runat="server" ID="H_UserAnswer" CssClass="text p2" /></div>
                    </div>
                    <div class="div_row">
                        <div class="div_left"></div>
                        <div class="div_right"><asp:Label runat="server" ID="err_tips"/></div>
                    </div>
                    <div class="div_row" style="margin:10px 0 10px 0;">
                       <asp:Button ID="ConfirmAnswerRight" runat="server" Text="下一步" CausesValidation="False"/>&nbsp;&nbsp;<asp:Button 
                            ID="returnBt2" runat="server" Text="返回" onclick="returnBt2_Click"></asp:Button>
                    </div>
               </div>
            </asp:Panel>
            </fieldset>         
    </div> 
    </asp:Panel>
    
    <!--修改密码区-->
    <asp:Panel ID="ChangePasswordZone" runat="server">
    <div class="div_middle_content">      
        <fieldset>
            <legend><strong>修改密码</strong></legend>                   
            <div style="width:98%">
            <asp:Panel ID="CheckUserIdentify" runat="server" Visible="false">
                <div class="div_row">
                   <div class="div_left">输入认证时使用的身份证号码：</div>
                   <div class="div_right"><asp:TextBox ID="IDNum" runat="server"  MaxLength="18" CssClass="text p2"/></div>
                </div>  
             </asp:Panel> 
                <div class="div_row">
                   <div class="div_left">现在密码：</div>
                   <div class="div_right">
                      <asp:TextBox ID="H_OldPassword" runat="server" TextMode="Password" MaxLength="20" CssClass="text p2"/></div>
                </div>  
                <div class="div_row">
                   <div class="div_left">新密码：</div>
                   <div class="div_right">
                      <asp:TextBox ID="H_NewPassword" runat="server" TextMode="Password" MaxLength="20" CssClass="text p2"/><br />
                   </div><div id="Pwdhtml"></div>
                </div>  
                <div class="div_row">
                   <div class="div_left">再输一遍新密码：</div>
                   <div class="div_right">
                      <asp:TextBox ID="H_RePassword" runat="server" TextMode="Password" MaxLength="20" CssClass="text p2"/>
                   </div>
                </div>
                <div class="div_row">
                   <asp:Label ID="ChangePassword_err_tips" runat="server" />
                    <br />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入新密码" ControlToValidate="H_OldPassword"/>
                    <br />
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="两次输入密码不相同" ControlToValidate="H_RePassword" ControlToCompare="H_NewPassword"/>
                  
                 </div>
                 <div class="div_row">                    
                    <asp:Button ID="ChangePassword" runat="server" Text=" 确 定 " />
                    &nbsp;&nbsp; <asp:Button ID="returnBt" runat="server" Text="返回" 
                         onclick="returnBt_Click" CausesValidation="False" />
                     </div>
                 <div class="div_row" style="text-align: left">
                   <span  style="color: #ff5500"><strong>提示：</strong></span>
                        <ul>
                            <li>密码由6-16个字符组成，请使用英文字母加数字或符号的组合密码，不能单独使用英文字母、数字或符号作为您的密码。 </li>
                            <li>如果您忘记了密码保护答案，请通过留言的方式将您的真实姓名、联系电话以及身份证的原件扫描件发送给 <a href="#"
                                target="_blank"><span style="color: #0044dd">客服中心</span></a>。我们会尽快与您取得联系。 </li>
                        </ul>
                 </div>  
             </div> 
        </fieldset>
    </div>
    <br />
    </asp:Panel>
    </div>
    <hl:Foot ID="Foot1" runat="server" />
    </form>
    <script type="text/javascript">
        function ShowTips(field) {
            var div_name = "reg_" + field.id;
            document.getElementById(div_name).className = 'reg_tips_onclick';

        }
        function HidenTips(field) {
            var div_name = "reg_" + field.id;
            if (field.value == "") {
                document.getElementById(div_name).className = 'reg_tips_empty';
            }
            else {
                document.getElementById(div_name).className = 'reg_tips_onchange';
            }

        }
        function ShowInPut(field) {
            var div_name = "reg_" + field.id;

            document.getElementById(div_name).className = 'reg_tips_onchange';
        }
        function readagreement() {
            var agreement = document.getElementById("reg_agreement");
            var submit_btn = document.getElementById("RegSubmitButton");
            if (submit_btn.disabled == true) {
                submit_btn.disabled = false;
                agreement.style.display = "";
            }
            else {
                submit_btn.disabled = true;
                agreement.style.display = "none";
            }

        }
        function refreshCode() {
            document.getElementById("ImgCheckCode").innerHTML = "<img alt='验证码' title='验证码' src='CheckCode.aspx?Rnd=" + Math.random() + "'/>";

        }
</script> 
    <script type="text/javascript" language="javascript">
        document.getElementById("RegSubmitButton").disabled = true;
        refreshCode();
</script>
</body>
</html>
