Java web项目 在线网络考试考生登录界面部分代码

来源:互联网 发布:淘宝主图怎么做吸引人 编辑:程序博客网 时间:2024/05/17 21:40
<%@ page contentType="text/html; charset=gb2312" language="java"%><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %><html><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><head><title>网络在线考试</title><link href="CSS/style.css" rel="stylesheet"><script language="javascript">function check(form){if (form.name.value==""){alert("请输入准考证号!");form.name.focus();return false;}if (form.pwd.value==""){alert("请输入密码!");form.pwd.focus();return false;}}</script></head><body><table width="778" height="266" border="0" align="center" cellpadding="0" cellspacing="0" background="Images/login_top.jpg">  <tr>    <td width="118" colspan="2"> </td>  </tr></table><table width="778" height="158"  border="0" align="center" cellpadding="0" cellspacing="0" background="Images/login_mid.jpg"><html:form action="manage/student.do?action=login" method="post" focus="ID" onsubmit="return check(studentForm)">          <tr>            <td>                      <table width="100%"  border="0" cellpadding="0" cellspacing="0" bordercolorlight="#FFFFFF" bordercolordark="#D2E3E6">                        <tr><td> </td><td></td><td></td></tr><tr>                          <td width="35%" height="30"> </td>                      <td width="9%" height="30">准考证号:</td>                      <td width="27%">   <html:text property="ID" styleClass="logininput" size="25"/>                       </td>                      <td width="29%"> </td>                    </tr>                        <tr>                          <td height="30"> </td>                      <td height="30">密    码:</td>                      <td><html:password property="pwd" styleClass="logininput" size="25"/></td>                      <td> </td>                    </tr>                        <tr>                          <td height="31"> </td>                      <td height="31" colspan="2" align="left"><html:submit styleClass="btn_grey" value="登录"/>                         <html:reset value="重置" styleClass="btn_grey"/>                        <html:button property="button" styleClass="btn_grey" value="注册" onclick="window.location.href='register.jsp'"/>                                                <html:button property="button" styleClass="btn_grey" value="找回密码" onclick="window.location.href='seekPwd.jsp'"/></td>                      <td> </td>                    </tr>                        <tr>                          <td height="40"> </td>                          <td height="31" colspan="2" align="right" valign="bottom"><html:link page="/manage/login.jsp" styleClass="word_orange">进入后台</html:link></td>                          <td> </td>                        </tr></html:form>                    </table>     </td>  </tr></table><table width="778" height="196" border="0" align="center" cellpadding="0" cellspacing="0" background="Images/login_top.gif">  <tr>    <td height="182" background="Images/login_bottom.jpg"> </td>  </tr></table></body></html>

运行结果:

当然你之前需要将对应的图片放在相应的文件夹里面,才可以正常运行程序。

0 1
原创粉丝点击