Java web项目 在线网络考试考生找回密码部分代码

<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html>
<head>
<title>网络在线考试</title>
<link href="CSS/style.css" rel="stylesheet">
<script language="javascript" src="JS/ContentLoader.js">
</script>
</head>
<script language="javascript">
function checkForm(form){
	if(form.ID.value==""){
		alert("请输入准考证号!");form.ID.focus();return false;
	}
}
</script>
<body>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="131" background="Images/top_bg.jpg"> </td>
  </tr>
</table>
<table width="778" border="0" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" bgcolor="#FFFFFF"><table width="774" height="474"  border="0" cellpadding="0" cellspacing="0" align="center">
      <tr>
        <td height="30" bgcolor="#EEEEEE" class="tableBorder_thin"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="word_grey"> <img src="Images/f_ico.gif" width="8" height="8"> 当前位置:→ <span class="word_darkGrey">找回密码 >>></span></td>
			  <td align="right"><img src="Images/m_ico1.gif" width="5" height="9"> <html:link page="/index.jsp" >返回首页</html:link> </td>
              </tr>
          </table></td>
        </tr>
      <tr>
        <td height="222" align="center" valign="top">
 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="84%">       </td>
</tr>
</table> 
<html:form action="/manage/student.do?action=seekPwd1" method="post" οnsubmit="return checkForm(studentForm)">
  <table width="57%" height="69" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="17%"><img src="Images/step1.gif" width="73" height="30"></td>
      <td width="83%" class="word_orange1">输入准考证号</td>
    </tr>
  </table>
  <table width="57%"  border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
    <tr align="center">
    <td width="16%" height="30" align="left" style="padding:5px;">准考证号:</td>
    <td width="84%" align="left">
      <html:text property="ID" size="40"/> <span class="word_orange1"> *</span>	  </td>
    </tr>
    <tr>
      <td height="65" align="left" style="padding:5px;"> </td>
      <td><html:submit property="submit" styleClass="btn_grey" value="下一步"/>
         
        <html:reset property="reset" styleClass="btn_grey" value="取消"/>
		 
		<html:button property="button" styleClass="btn_grey" value="返回" οnclick="window.location.href='index.jsp'"/>		</td>
    </tr>
</table>
</html:form></td>
      </tr>
      <tr>
        <td height="153" align="right" valign="top"><img src="Images/seedPwd.gif" width="139" height="153"></td>
      </tr>
    </table>
</td>
  </tr>
</table>
<%@ include file="copyright.jsp"%>
</body>
</html>

<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html>
<head>
<title>网络在线考试</title>
<html:base/>
<link href="CSS/style.css" rel="stylesheet">
</head>
<script language="javascript">
function checkForm(form){
	if(form.answer.value==""){
		alert("请输入密码提示问题答案!");form.answer.focus();return false;
	}
}
</script>
<body>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="131" background="Images/top_bg.jpg"> </td>
  </tr>
</table>
<table width="778" border="0" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" bgcolor="#FFFFFF"><table width="774" height="474"  border="0" cellpadding="0" cellspacing="0" align="center">
      <tr>
        <td height="30" bgcolor="#EEEEEE" class="tableBorder_thin"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="word_grey"> <img src="Images/f_ico.gif" width="8" height="8"> 当前位置:→ <span class="word_darkGrey">找回密码 >>></span></td>
			  <td align="right"><img src="Images/m_ico1.gif" width="5" height="9"> <html:link page="/index.jsp" >返回首页</html:link> </td>
              </tr>
          </table></td>
        </tr>
      <tr>
        <td height="257" align="center" valign="top">
 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="84%">       </td>
</tr>
</table> 
<html:form action="/manage/student.do?action=seekPwd2" method="post" οnsubmit="return checkForm(studentForm)">
  <table width="57%" height="69" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="17%"><img src="Images/step2.gif" width="73" height="30"></td>
      <td width="83%" class="word_orange1"><span style="padding:5px;">输入密码提示问题答案</span></td>
    </tr>
  </table>
  <table width="57%"  border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
    <tr align="center">
    <td width="22%" height="30" align="left" style="padding:5px;">密码提示问题:</td>
    <td width="78%" align="left">
      <html:hidden property="ID" name="seekPwd2"/>
	  <html:text property="question" size="40" name="seekPwd2" readonly="true"/> <span class="word_orange1"> (只读)</span>	  </td>
    </tr>
    <tr align="center">
    <td width="22%" height="30" align="left" style="padding:5px;">密码提示答案:</td>
    <td width="78%" align="left">
      <html:text property="answer" size="40"/> <span class="word_orange1"> *</span>	  </td>
    </tr>	
    <tr>
      <td height="65" align="left" style="padding:5px;"> </td>
      <td><html:submit  styleClass="btn_grey" value="下一步"/>
         
        <html:reset styleClass="btn_grey" value="取消"/>
		 
		</td>
    </tr>
</table>
</html:form></td>
      </tr>
      <tr>
        <td height="141" align="right" valign="top"><img src="Images/seedPwd.gif" width="139" height="153"></td>
      </tr>
    </table>
</td>
  </tr>
</table>
<%@ include file="copyright.jsp"%>
</body>
</html>

<%@ page contentType="text/html; charset=gb2312" language="java" errorPage="" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html>
<head>
<title>网络在线考试</title>
<html:base/>
<link href="CSS/style.css" rel="stylesheet">
</head>
<body>
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="131" background="Images/top_bg.jpg"> </td>
  </tr>
</table>
<table width="778" border="0" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" bgcolor="#FFFFFF"><table width="774" height="474"  border="0" cellpadding="0" cellspacing="0" align="center">
      <tr>
        <td height="30" bgcolor="#EEEEEE" class="tableBorder_thin"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="word_grey"> <img src="Images/f_ico.gif" width="8" height="8"> 当前位置:→ <span class="word_darkGrey">找回密码 >>></span></td>
			  <td align="right"><img src="Images/m_ico1.gif" width="5" height="9"> <html:link page="/index.jsp" >返回首页</html:link> </td>
              </tr>
          </table></td>
        </tr>
      <tr>
        <td height="257" align="center" valign="top">
 <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="84%">       </td>
</tr>
</table> 
 <table width="57%" height="69" border="0" cellpadding="0" cellspacing="0">
   <tr>
     <td width="17%"><img src="Images/step3.gif" width="73" height="30"></td>
     <td width="83%" class="word_orange1">成功找回密码</td>
   </tr>
 </table>
 <table width="57%"  border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bordercolordark="#D2E3E6" bordercolorlight="#FFFFFF">
    <tr align="center">
    <td width="22%" height="30" align="left" style="padding:5px;">准考证号:</td>
    <td width="78%" align="left">
	  <html:text property="ID" size="40" name="seekPwd3" readonly="true"/> <span class="word_orange1"> (只读)</span>	  </td>
    </tr>
    <tr align="center">
    <td width="22%" height="30" align="left" style="padding:5px;">密    码:</td>
    <td width="78%" align="left">
      <html:text property="pwd" size="40" name="seekPwd3" readonly="true"/> <span class="word_orange1"> (只读)</span>	  </td>
    </tr>	
    <tr>
      <td height="65" align="left" style="padding:5px;"> </td>
      <td> 
		<input type="button" value="返回" class="btn_grey" onClick="window.location.href='<html:rewrite page="/index.jsp"/>'"/>		</td>
    </tr>
</table>
</td>
      </tr>
      <tr>
        <td height="141" align="right" valign="top"><img src="Images/seedPwd.gif" width="139" height="153"></td>
      </tr>
    </table>
</td>
  </tr>
</table>
<%@ include file="copyright.jsp"%>
</body>
</html>

运行结果:


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值