www.pudn.com > restrant.zip > backLogin.jsp, change:2013-12-26,size:3453b


<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 
<% 
	String path = request.getContextPath(); 
	String basePath = request.getScheme() + "://" 
			+ request.getServerName() + ":" + request.getServerPort() 
			+ path + "/"; 
%> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>后台用户登录</title> 
<link href="images/login.css" rel="stylesheet" type="text/css" /> 
<script type="text/javascript"> 
			function VerifyRegister(){ 
				if(document.form.username.value == ""){ 
						alert("请输入您的用户名!"); 
						document.form.username.focus(); 
						return false; 
				}else if(document.form.psw.value == ""){ 
						alert("请输入您的密码!"); 
						document.form.psw.focus(); 
						return false; 
				} 
			} 
</script> 
</head> 
<body> 
    <div id="login"> 
	 
	     <div id="top"> 
		      <div id="top_left"><img src="images/login_03.gif" /></div> 
			  <div id="top_center"></div> 
		 </div> 
		  
		 <div id="center"> 
		      <div id="center_left"></div> 
			  <div id="center_middle"> 
			  	   <% if(request.getAttribute("msg")!=null) {%> 
			  	   		<div> 
			  	   			<font color="red"><%=request.getAttribute("username_error") %></font> 
			  	   		</div> 
			  	   <% } %> 
			  	   <form action="/restrant/LoginServlet?method=admin" method="post" name="form"> 
			  	   <table align="center" cellspacing="10" cellpadding="5"> 
			  	   				<td colspan="2" align="center"> 
										<% if(request.getAttribute("username_error")!=null) {%> 
					  	   					<font color="red" style="font-family: 微软雅黑;font-size:12px;"> 
													   <%=request.getAttribute("username_error") %> 
											</font>	 
										<%} %> 
										<% if(request.getAttribute("psw_error")!=null) {%> 
					  	   					<font color="red" style="font-family: 微软雅黑;font-size:12px;"> 
													   <%=request.getAttribute("psw_error") %> 
											</font>	 
										<%} %> 
			  	   				</td> 
			  	   				</td> 
			  	   			<tr> 
			  	   			</tr> 
			  			   	<tr> 
					  	   		 <th><font color="green" style="font-family: 微软雅黑;font-size:12px;">用户名</font></th> 
						        	 <td> 
							     			<input type="text" name="username" /> 
							  		 </td> 
						         </tr> 
						         <tr> 
						        	 <th><font color="green" style="font-family: 微软雅黑;font-size:12px;">密码</font></th> 
						        	 <td> 
							     			<input type="password" name="psw" /> 
							  		 </td> 
							   </tr> 
							   <tr> 
						        	 <td colspan="2" align="center" > 
							     			<input type="submit" value="登入" onClick="javascript:return VerifyRegister();" style=" 
							     				font-family:微软雅黑;font-size:15px;font-color:green; 
												 width:50px;height:25px"/> 
							  		 </td> 
							   </tr> 
					   </table> 
				   </form> 
			  </div> 
			  <div id="center_right"></div>		  
		 </div> 
		 <div id="down"> 
		      <div id="down_left"> 
			      <div id="inf"> 
                       <span class="inf_text" style="font-family: 楷体;">版本信息</span> 
					   <span class="copyright" style="font-family: 微软雅黑;">无忧后台管理系统 2013 v1.0</span> 
			      </div> 
			  </div> 
			  <div id="down_center"></div>		  
		 </div> 
 
	</div> 
</body> 
</html>