Java web项目 在线网络考试考生登录界面部分代码
2017-01-08 21:12
381 查看
<%@ 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>
运行结果:
当然你之前需要将对应的图片放在相应的文件夹里面,才可以正常运行程序。
相关文章推荐
- JSP/PHP基于Ajax的分页功能实现
- Seafile Server本地权限提升漏洞(CVE-2014-5443)
- 从USB安装Ubuntu Server 10.04.3 图文详解
- 将Windows Server 2016 打造成好用的办公系统
- 开发阶段Jetty运行Jsp报错且响应空白
- 使用zabbix监控Nginx活动状态--Part1
- MaxScale Binlog Server实践
- 高效访问Internet-启用ISA Server的缓存
- windows server域用户提升到本地更高权限组中的方法
- 使用SQL Server连接服务器访问DB2 Server
- 完美解决SQL Server 安装问题:以前的某个程序安装已在安装计算机上创建挂起的文件操作
- IIS 错误 Server Application Error 详细解决方法
- 在WINXP系统上安装SQL Server企业版的方法
- SQL Server 存储过程的分页
- SQL Server 中 RAISERROR 的用法详细介绍
- SQL Server复制需要有实际的服务器名称才能连接到服务器
- SQL Server 2000向SQL Server 2008 R2推送数据图文教程
- SQL server 表操作介绍