index.jsp
上传用户:zhc3n3
上传日期:2022-07-30
资源大小:2750k
文件大小:3k
- <%@ page language="java" import="java.util.*" pageEncoding="GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <script type="text/javascript">
- var i=0;
- var image=0;
- function renovate(image){
- image.src="randomCodeServlet?id="+i;
- i=i+1;
- }
- </script>
- <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
- <title>用户登录</title>
- <style>
- table{ margin-top:150px}
- </style>
- </head>
- <body style="background-image:url(images/10636126.jpg); background-repeat:no-repeat ">
- <form id="form2" name="form2" method="post" action="login.do">
- <table width="32%" height="256" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#3366FF" background="images/DE121337813.jpg" bgcolor="#FFFBF0">
- <tr>
- <td height="49" colspan="2"><div align="center"> </div></td>
- </tr>
- <tr>
- <td width="37%" height="46"><div align="right">用户名:</div></td>
- <td width="63%"><input type="text" name="txtName" /></td>
- </tr>
- <tr>
- <td height="35"><div align="right">密码:</div></td>
- <td><input type="password" name="txtPwd" /></td>
- </tr>
- <tr>
- <td height="36"><div align="right">验证码:</div></td>
- <td><input name="rand" type="text" size="7" />
- <img name="image" border=0 src="randomCodeServlet"/> <a href="javascript:renovate(image)" class="style1" onClick="renovate(image)">看不清!换一张</a>
- <script language="JavaScript">
- today=new Date();
- var hours = today.getHours();
- var minutes = today.getMinutes();
- var seconds = today.getSeconds();
- var timeValue = "<FONT COLOR=black>" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? "<BLINK><FONT COLOR=black>:</FONT></BLINK>0" : "<BLINK><FONT COLOR=black>:</FONT></BLINK>") + minutes+"</FONT></FONT>";
- timeValue += (hours >= 12) ? "<FONT COLOR=black>pm</FONT>" : "<FONT COLOR=black>am</FONT>";
- function initArray(){
- this.length=initArray.arguments.length
- for(var i=0;i<this.length;i++)
- this[i+1]=initArray.arguments[i] }
- var d=new initArray("<font color=RED>星期日","<font color=black>星期一","<font color=black>星期二","<font color=black>星期三","<font color=black>星期四","<font color=black>星期五","<font color=black>星期六"); document.write("<font color=black>",today.getYear(),"<font color=black>年","<font color=black>",today.getMonth()+1,"<font color=black>月","<font color=black>",today.getDate(),"<font color=black>日 </FONT>",d[today.getDay()+1]," ",timeValue); //-->
- </script>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div align="center">
- <input type="submit" name="Submit" value="登陆" />
- <input type="reset" name="Submit2" value="取消" />
- <a href="register.jsp">新用户注册</a></div></td>
- </tr>
- </table>
-
- </form>
- </html>