www.pudn.com > Jsp-Blog.rar > login.jsp, change:2010-05-26,size:4231b


<%@page language="java" contentType="text/html;charset=utf-8"%> 
<html> 
	<head> 
 
		<title>用户登陆</title> 
		<link rel="stylesheet" href="css/index.css" type="text/css"> 
		<script language="javascript"> 
function check(){ 
  //帐号、密码不能为空的校验 
	   var  account=document.forms[0].elements["username"].value; 
	   var  password=document.forms[0].elements["pwd"].value; 
	   if(account==""){ 
	    alert("请填写您的用户名!"); 
	    return; 
	   } 
	   if(password==""){ 
	    alert( "请填写密码!"); 
	     return; 
	   } 
	 if(account!=""&&(password!="")){ 
	   document.forms[0].submit(); 
	   } 
  } 
  
</script> 
	</head> 
	<body> 
		<form action="/myblog/login" method="post"> 
			<table width="800" border="0" cellspacing="0" cellpadding="0"> 
				<tr> 
					<td valign="top"> 
						<img src="images/menu[1].jpg" width="980" height="36" /> 
					</td> 
				</tr> 
				<tr> 
					<td height="168" valign="top" background="images/wrapper[1].jpg"> 
						<table width="915" border="0" cellspacing="0" cellpadding="0"> 
							<tr> 
								<td width="55" height="153" valign="top"> 
									  
								</td> 
								<td width="190" valign="top"> 
									<table width="168" border="0" align="center" cellpadding="0" 
										cellspacing="0"> 
										<tr> 
											<td width="185"> 
												<p> 
													<img src="images/tb032.jpg" width="40" height="40" /> 
													<strong><font color="#FF0000">博客登陆窗口</font> </strong> 
												</p> 
												<p> 
													<strong><font color="#FF0000">点此<a 
															href="index.jsp">返回</a> </font> </strong> 
												</p> 
											</td> 
										</tr> 
									</table> 
								</td> 
								<td width="64" valign="top"> 
									  
								</td> 
								<td width="707" valign="top"> 
 
									<table width="250" border="0" align="center" cellpadding="4" 
										cellspacing="0" bgcolor="#87cefa"> 
										<tr> 
										<td valign="top" colspan="2"> 
										<font color="red"> 
											<% 
												Object loginmsg = request.getAttribute("loginmsg"); 
												if (loginmsg != null) { 
													out.print(loginmsg.toString()); 
												} 
											%> 
											</font></td> 
										</tr> 
 
										<tr> 
											<td valign="top"> 
												用户名: 
											</td> 
											<td valign="top"> 
												<input name="username" type="text" size="10" /> 
											</td> 
										</tr> 
 
										<tr> 
											<td valign="top"> 
												密   码: 
											</td> 
											<td valign="top"> 
												<input name="pwd" type="password" size="11" /> 
												    
												<a href="findpwd.jsp" 
													onClick="window.open(this.href,'newtxt','top=100,left=200,width=300,height=100,scrollbars=no,resizable=no');return false;">忘记密码</a> 
											</td> 
										</tr> 
 
										<tr> 
											<td valign="top"> 
												<input type="submit" name="Submit" value="登陆" 
													onclick="check()" /> 
											</td> 
											<td valign="top" align="left" colspan="2"> 
												<input name="clear" type="reset" value="清空" /> 
											</td> 
										</tr> 
 
									</table> 
 
								</td> 
							</tr> 
						</table> 
					</td> 
				</tr> 
				<tr> 
					<td height="116" valign="top" background="images/footer[1].jpg"> 
						<table width="919" border="0" cellspacing="0" cellpadding="0"> 
							<tr> 
								<td width="283" height="94"> 
									  
								</td> 
								<td width="636" valign="top"> 
									<table width="458" height="40" border="0" align="center" 
										cellpadding="0" cellspacing="0"> 
										<tr> 
											<td align="center"> 
												<p> 
													<strong>2010年潍坊学院计算机与通信工程学院毕业设计</strong> 
												</p> 
												<p> 
											<strong>2006级   网络工程一班     徐仁强</strong> 
												</p> 
											</td> 
										</tr> 
									</table> 
								</td> 
							</tr> 
						</table> 
					</td> 
				</tr> 
			</table> 
		</form> 
	</body> 
</html>