index.jsp~19~
资源名称:JSP02.rar [点击查看]
上传用户:top0756
上传日期:2022-08-11
资源大小:6501k
文件大小:2k
源码类别:
Jsp/Servlet
开发平台:
VBScript
- <%@ page contentType="text/html; charset=GBK" %>
- <HTML>
- <HEAD>
- <TITLE> enter </TITLE>
- <SCRIPT language="JavaScript">
- function a() {
- if(form1.username.value==""){
- alert("用户名不能为空,请确定后重新输入");
- form1.username.focus();
- return false;
- }
- if(form1.password.value==""){
- alert("密码不能为空,请确定后重新输入");
- form1.password.focus();
- return false;
- }
- return true;
- }
- function reg() {
- window.open("reg_bean.jsp","s","toolbar=no;,scroll=no,Width=350px,Height=260px,left=300,top=300");
- }
- </script>
- </HEAD>
- <body ONLOAD="webclock()" background="img/bg3.jpg" text="#808080" link="#FF99CC" vlink="#FF8080" alink="#FF99CC" topmargin="0" leftmargin="0">
- <div align="center">
- <center>
- <table border="0" width="780">
- <tr>
- <td width="135"><img border="0" src="img/top_image.jpg" ></a></td>
- </tr>
- <tr><td height="20" background="img/xian1.jpg"></td></tr>
- </table>
- <br><br><br>
- <table border="0" width="70%" cellspacing="0" cellpadding="0" align="center">
- <tr><td align="center"><center>
- <form name="form1" method="post" action="login.jsp">
- <table border="0"><tr><td >
- <font size="5" color="8282DC">用户ID:</font></td>
- <td colspan="3"><input name="username" type="text" size="25"> </td></tr>
- <tr><td><font size="5" color="8282DC">密 码 :</font></td>
- <td colspan="3"><input name="password" type="password" size="25"></td></tr>
- <tr><td><font size="5" color="8282DC">身 份 :</font></td>
- <td align="right"><INPUT type="radio" CHECKED value="student" name="id"><font size="5" color="8282DC">学生</td>
- <td></td>
- <td><INPUT type="radio" value="admin" name="id"><font size="5" color="8282DC">管理员</td></tr>
- <tr><td colspan="4" width="20"></td></tr>
- <tr><td></td><td><input type="submit" name="sumbit" value="登 陆" onClick="return a()" > </td>
- <td><input type="reset" name="Submit2" value="重 填"></td><td><a href="index.jsp"><span class="unnamed1"></span></a></td>
- </tr>
- </table>
- </form>
- </center>
- <tr><td align="center" colspan="3"><font color="8282DC"></font></td></tr></table>
- </center></div>
- </BODY>
- </HTML>