<%@page contentType="text/html;charset=GBK" %>
<jsp:useBean id="searchPwdForm" class="com.keyshop.shop.user.controller.SearchPasswordForm" scope="request"/>
<%
	User user = (User)searchPwdForm.getBean();
%>
<script>	
function submitForm() {
	if(document.all['userId'].value == '') {
		alert("请输入用户ID");
		document.all['userId'].focus();
		return;
	}
	searchPasswordForm.submit();
}
function getuseridbyMail() {
	if(document.all['email'].value == '') {
		alert("请输入您的电子邮件地址。");
		document.all['email'].focus();
		return;
	}
	searchPasswordForm.actionType.value = "getuseridbymail";
	searchPasswordForm.submit();
}
</script>

<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i01.gif" width="10" height="10"></td>
    <td  background="<%=CONTEXT%>/img/QQ/i03.gif"></td>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i02.gif" width="10" height="10"></td>
  </tr>
  <tr>
    <td  background="<%=CONTEXT%>/img/QQ/i04.gif">&nbsp;</td>
    <td>
    	<!--内容填写处-->
			<html:form  method="post" action="/fg/user/searchPwd">
			<html:hidden property="channelId" value="<%=currentChannel.getId()%>"/>
			<html:hidden property="actionType" value="getpwdsetp2"/>
			<html:hidden property="bean.password"/>
			<html:hidden property="bean.userName"/>
			<html:hidden property="bean.question"/>
			<html:hidden property="bean.answer"/>
			<html:hidden property="bean.email"/>
			<html:hidden property="bean.idcard"/>
			<html:hidden property="bean.shortName"/>	
			<table width="565" border="0" align="center" cellspacing="0" cellpadding="0">
			  <tr>
			    <td valign="top">
			    	<table width="565" border="0" cellpadding="0" cellspacing="0" class="Process09_product_navimg01">
			        <tr>
			          <td align="center" class="Process09_product_navtext">找回密码</td>
			        </tr>
			      </table>
			      <table width="100%" border="0" cellpadding="0" cellspacing="0" class="Process09_product_navimg02">
			        <tr>
			          <td align="center" valign="top">
			          	<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolorlight="#D4D4D4" bordercolordark="white">
			              <%
			              	if(request.getAttribute("no_user_error") != null) {
			              %>
			              <tr>
								    	<td  colspan=2 class=hot01>没有该用户</td>
								    </tr>
								    <%
								    	}
								    %>
								     <%
			              	if(request.getAttribute("no_email_error") != null) {
			              %>
			              <tr>
								    	<td  colspan=2 class=hot01>没有使用该Email注册的用户</td>
								    </tr>
								    <%
								    	}
								    %>
			              <tr> 
			                <td width="100%" valign="top" class="Process09_product_bgcolor01">
			                	<table width="100%"  border="0" align="center" cellpadding="1" cellspacing="1">
			                    <tr align="center" bgcolor="f2f2f2"> 
			                      <td colspan="2">密码问题： 
			                        <input name="textfield" type="text" size="20"></td>
			                    </tr>
			                    <tr align="center" bgcolor="f2f2f2"> 
			                      <td colspan="2">问题答案： 
			                        <input name="textfield2" type="text" size="20"></td>
			                    </tr>
			                    <tr align="center" bgcolor="f2f2f2"> 
			                      <td colspan="2">身份证号： 
			                        <input name="textfield3" type="text" size="20"></td>
			                    </tr>
			                    <tr bgcolor="f2f2f2"> 
			                      <td width="50%" align="right"><br> 
			                      	<table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
			                          <tr> 
			                            <td width="268" height="25" align="left">一、忘记您的密码了？ 
			                            </td>
			                          </tr>
			                          <tr> 
			                            <td height="30" align="left">输入用户名： 
			                              <input name="userId" type="text" size="12"></td>
			                          </tr>
			                          <tr> 
			                            <td height="25" align="center"><input value="下一步" type="button" onclick="javascript:submitForm();"></td>
			                          </tr>
			                        </table>
			                        <p>&nbsp;</p></td>
			                      <td width="50%" align="center"> <br> <table width="90%" border="0" cellspacing="0" cellpadding="0">
			                          <tr> 
			                            <td width="234" height="25" align="left">二、忘记您的用户名？</td>
			                          </tr>
			                          <tr> 
			                            <td height="30" align="left">输入邮件地址： 
			                              <input name="email" type="text" size="12"></td>
			                          </tr>
			                          <tr> 
			                            <td height="25" align="center"><input name="button" type="button" value="找到会员ID" onclick="javascript:getuseridbyMail();">
			                            </td>
			                          </tr>
			                        </table>
			                        <p>&nbsp;</p>
			                      </td>
			                    </tr>
			                  </table>
			                </td>
			              </tr>
			            </table>
			          </td>
						  </tr>
						</table>
			      <table width="565" border="0" cellpadding="0" cellspacing="0" class="Process09_product_navimg03">
			        <tr>
			          <td></td>
			        </tr>
			      </table>
			    </td>
			  </tr>
			</table>
			</html:form>
    </td>
    <td background="<%=CONTEXT%>/img/QQ/i05.gif"></td>
  </tr>
  <tr>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i06.gif" width="10" height="10"></td>
    <td background="<%=CONTEXT%>/img/QQ/i08.gif"></td>
    <td width="10" height="10"><img src="<%=CONTEXT%>/img/QQ/i07.gif" width="10" height="10"></td>
  </tr>
</table>