<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="description" content="[.$ourphp_web.webdescriptions.]"/>
<meta name="keywords" content="[.$ourphp_web.webkeywords.]"/>
<meta name="author" content="www.ourphp.net"/>
<meta name="viewport" content="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-title" content="[.$ourphp_web.website.]">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="320">
<meta name="screen-orientation" content="portrait">
<meta name="x5-orientation" content="portrait">
<meta name="full-screen" content="yes">
<meta name="x5-fullscreen" content="true">
<meta name="browsermode" content="application">
<meta name="x5-page-mode" content="app">
<meta name="msapplication-tap-highlight" content="no">
<title>找回密码_[.$ourphp_web.website.]</title>
[.include file="cn/cn_shophead.html".]
<style type="text/css">
td {width:100%; border-bottom:1px #f5f5f5 solid; padding:2px;}
</style>
</head>
<body>
<div id="YIQI-UI">
	<div class="top">
		<dd class="f-l mt-10 text-c">找回密码</dd>
		<div class="pos-a back"><a href="?cn-userlogin.html"><i class="icon YIQI-UI-iconfont">&#xe67d;</i></a></div>
	</div>
	<div class="pages">
        <div class="content" style="margin:60px auto; background:#fff; padding:15px 0;">
        [.*找回密码表单开始*.]
				<script type="text/javascript">
					function regselect(){

						var reg = $('#zh').val();
						$.post("[.$webpath.]client/wap/sendcode.php?reg&zh="+reg,{},function(data){
							if(data.error == 0){
								layer.msg(data.msg);
								return false;
							}else{
								if(reg == '格式:13888888888' || reg == '格式:77701950@qq.com'){
									$("#regselect").html('*');
								}else{
									$("#regselect").html(data.msg);
								}
							}
						},'json');

					}

					var wait = 120;
					function anniu(){
						if (wait == 0) { 
							$('#btn').attr("disabled", false);
							$('#btn').val('获取验证码');
							$("#btn").removeClass("disabled").addClass("btn-success");
							wait = 120; 
						} else { 
							$('#btn').attr("disabled", true); 
							$('#btn').val('重新发送(' + wait + ')');
							$("#btn").removeClass("btn-success").addClass("disabled");
							wait--; 
							setTimeout(function() { 
								anniu();
							}, 1000) 
						};
					}

					function reg_code(){

						var reg = $('#zh').val();
						if(reg == '格式:13888888888' || reg == '格式:77701950@qq.com' || reg == ''){
							layer.msg('* 号不能为空!');
							return false;
						}

						$.post("[.$webpath.]client/wap/sendcode.php?code&zh="+reg,{},function(data){
							if(data.error == 0){
								layer.msg(data.msg);
								return false;
							}
							anniu();
						},'json');

					}
                </script>
                [.if empty($smarty.get.user).]
                <form id="form1" name="form1" method="post" action="?[.$ip.lang.]-userpassword.html-&user=email" class="registerform">
                <table width="100%" border="0" class="table">
                      <tr>
                        <td>
                            <div class="pl-10 pr-10 pt-5 pb-5">
                              <span class="fromleft">
                              找回账号</span><input type="text" name="OP_Useremail" class="input" datatype="*" value="E-mail 或 手机号码" onfocus="if (value =='E-mail 或 手机号码'){value =''}" onblur="if (value ==''){value='E-mail 或 手机号码'}" /> <font color="#FF0000">*</font>
                            </div>
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <div class="pl-10 pr-10 pt-5 pb-5">
                              <span class="fromleft">
                              验证码</span><input type="text" name="code" class="input3" placeholder="验证码" datatype="*" onfocus="document.getElementById('checkcode').src+='?'" /> <font color="#FF0000">*</font>&nbsp;<img title="点击刷新" id="checkcode" src="[.$webpath.]function/ourphp_code.php" align="absbottom" onclick="this.src='[.$webpath.]function/ourphp_code.php?'+Math.random();" width="80" height="25"></img>
                            </div>
                        </td>
                      </tr>
                      <tr>
                        <td>
                        <div class="mt-30">
                          <input type="submit" name="Submit" value="下一步" class="btn btn-danger pt-10 pb-10 pl-20 pr-20 mt-10 radius-20" style="width:100%;" />
                        </div>
                        </td>
                      </tr>
                </table>
                </form>
                [.elseif $smarty.get.user == 'email'.]
                <form id="form1" name="form1" method="post" action="?[.$ip.lang.]-userpassword.html-&user=faq" class="registerform">
				[.if $usercontrol['telsms'] == 0.]
                <table width="100%" border="0" class="table">
                      <tr>
                        <td>
                          <div class="pl-10 pr-10 pt-5 pb-5">
                              <span class="fromleft f-l">
                              验证答案
                              </span>
                              <div style="margin: 8px 0 0 10px; float: left;" class="f-14">[.$faq[2].]</div>
                            </div>
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <div class="pl-10 pr-10 pt-5 pb-5">
                              <span class="fromleft">
                              输入答案
                              </span>
                                <input type="text" name="OP_Useranswer" class="input" placeholder="输入答案" datatype="*" /> <font color="#FF0000">*</font>
                                <input type="hidden" name="OP_Useremail" value="[.$faq[1].]" />
        						            <input type="hidden" name="OP_Usercode" value="[.$faq[3].]" />
                          </div>
                        </td>
                      </tr>
                      <tr>
                        <td colspan="2">
                          <div class="mt-30">
                            <input type="submit" name="Submit" value="下一步" class="btn btn-danger pt-10 pb-10 pl-20 pr-20 mt-10 radius-20" style="width:100%;" />
                          </div>
                        </td>
                      </tr>
                </table>
				[.elseif $usercontrol['telsms'] == 1.]
                <table width="100%" border="0" class="table">
                      <tr>
                        <td><div class="pl-10 pr-10 pt-5 pb-5">
                              <span class="fromleft f-l">
                                手机号码
                              </span>
                              <div style="margin: 8px 0 0 10px; float: left;" class="f-14">[.$faq[4].]</div>
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <div class="pl-10 pr-10 pt-5 pb-5">
                              <span class="fromleft">
                              验证码
                              </span>

								<input type="text" name="OP_Userpasscode" class="input3" datatype="*" /> <font color="#FF0000">*</font>
								<input onclick="reg_code();" id="btn" type="button" class="btn btn-success radius-5 ml-10 pd-5" value="获取验证码" />
								<input type="hidden" name="OP_Useremail" value="[.$faq[1].]" />
								<input type="hidden" name="OP_Usercode" value="[.$faq[3].]" />
								<input type="hidden" name="OP_Useretel" value="[.$faq[4].]" />

                        </td>
                      </tr>
                      <tr>
                        <td colspan="2">
                          <div class="mt-30">
                            <input type="submit" name="Submit" value="下一步" class="btn btn-danger pt-10 pb-10 pl-20 pr-20 mt-10 radius-20" style="width:100%;" />
                          </div>
                        </td>
                      </tr>
                </table>
				[./if.]
                </form>
                [.elseif $smarty.get.user == 'faq'.]
                <form id="form1" name="form1" method="post" action="?[.$ip.lang.]-userpassword.html-&user=ok" class="registerform">
                <table width="100%" border="0" class="table">
                      <tr>
                        <td>
                          <div class="pl-10 pr-10 pt-5 pb-5">
                              <span class="fromleft f-l">
                              新密码
                              </span>
                              <input type="password" name="OP_Userpass" class="input" placeholder="输入新密码" datatype="*" /> <font color="#FF0000">*</font>
                              <input type="hidden" name="OP_Useremail" value="[.$faq[1].]" />
                              <input type="hidden" name="OP_Useranswer" value="[.$faq[2].]" />
                              <input type="hidden" name="OP_Usercode" value="[.$faq[3].]" />
                        </td>
                      </tr>
                      <tr>
                        <td colspan="2">
                          <div class="mt-30">
                            <input type="submit" name="Submit" value="下一步" class="btn btn-danger pt-10 pb-10 pl-20 pr-20 mt-10 radius-20" style="width:100%;" />
                          </div>
                        </td>
                      </tr>
                </table>
                </form>
                [./if.]
                
                <link rel="stylesheet" href="../../function/plugs/Validform/style.css" type="text/css" />
                <script type="text/javascript" src="../../function/plugs/Validform/Validform_v5.3.2.js"></script>
                <script type="text/javascript">
                $(function(){
                    $(".registerform").Validform();  //就这一行代码！;
                })
                </script>
                [.*找回密码表单结束*.]
        </div>
    </div>

</div>
<script type="text/javascript">
$(function(){
	$("#ourphp_user").addClass("on");
});
</script>
</body>
</html>