<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/header.jsp"%>
<%
String url=request.getParameter("url");
String l  =request.getParameter("l");
%>
<html>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/member.css" />
	<link href="<%=request.getContextPath()%>/letoula/useraccount/css/pwdProtect.css" rel="stylesheet" type="text/css" />
	<link href="<%=request.getContextPath()%>/letoula/useraccount/css/findPwd.css" rel="stylesheet" type="text/css" />
	<script type='text/javascript' src='<%=request.getContextPath()%>/letoula/js/findPwd.js'></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/letoula/js/plugin/library.js"></script>
<head>
    <script type="text/javascript">
    

    
   function  findPwd(){
    var url='<%=request.getContextPath() %>';
    var uName=encodeURIComponent($("#uName").val());
    var question=$("#question").find("option:selected").text(); 
    var answer=encodeURIComponent($("#answer").val());

    //alert("uName--"+uName);
    
    //alert("question--"+question);
    
    //alert("answer--"+answer);
		$.getJSON(url+"/letoula/data/findPwd.jsp?uName="+uName,{"question":question,"answer":answer},function(strs){
    			//alert("strs.strs---"+strs.strs);
    		if(strs.strs=="0000"){
    			alert("密码已经发送到你的注册邮箱!请查收!");
    			
    		}else{
    	       alert("您目前没有绑定邮箱,或邮箱地址不正确!请联系客服!")
    		}
    	});
   }
    </script>
</head>
<body>
<%@ include file="../letoula/top.jsp"%>
<div class="bgGray">
<%@ include file="../common/nav.jsp"%>
</div>
<h6 class="loginTT"><em></em><span>找回密码</span></h6>
      <div id='homeMain'>
    	<div class='div_main'>
    		<div>
	    		<table>
	    			<tr>
	    				<td>用户名:</td>
	    				<td><input type="text" id='uName' class="findpas"/></td>
	    			</tr>
	    			<tr>
	    				<td>问题:</td>
	    				<td>
							<select id='question' class="findpas">
								<option value="0">--请选择问题--</option>
								<option value="1">你的幸运数字是多少？</option>
								<option value="2">您什么时候第一次购彩？</option>
								<option value="3">您最喜欢的运动员全称？</option>
								<option value="4">您的宠物名字叫什么？</option>
							</select>
						</td>
	    			</tr>
	    			<tr>
	    				<td>答案:</td>
	    				<td><input type="text" id='answer' class="findpas"/></td>
	    			</tr>
	    			<tr>
		  				<td colspan="2" align='center'><a href="#" class='update_btt' onClick="javascript:findPwd()">提交</a></td>
		  			</tr>
	    		</table>
    		</div>
    	</div>
    </div>
<%@ include file="../common/footer.jsp"%>
</body>
</html>

