<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    
<%
	String path = request.getContextPath();  
	String baseUrl = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;  
	session.setAttribute("baseUrl", baseUrl);
	String userName = (String)session.getAttribute("userName");
	if(userName != null){
		session.removeAttribute("userName");
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>校园公交</title>
<link rel="stylesheet" type="text/css"
	href="${baseUrl}/plugin/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="${baseUrl}/plugin/easyui/themes/icon.css">
<script type="text/javascript">
	var baseUrl = "${baseUrl}";
</script>
<script type="text/javascript" src="${baseUrl}/plugin/easyui/jquery.min.js"></script>
<script type="text/javascript" src="${baseUrl}/plugin/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('#loginform').form({
	    onSubmit: function(){
			// do some check
			// return false to prevent submit;
	    	
	    },
	    success:function(data){
	    	var obj = eval('('+data+')');
	    	if(obj.code == 1){
	    		window.location.href = "/SchoolBus/manager_index"; 
	    	}
	    }
	});
});
</script>
</head>
<body>
	<div style="margin:0 auto; width:520px;text-align:center;">
		<h1>欢迎登陆校园公交系统</h1>
		<form id="loginform" action="user_login" method="post">
			用户名：<input type="text" name="user.account"/>
			密码：<input type="password" name="user.password"/>
			<input type="submit" value="提交"/>
		</form>
	</div>
</body>
</html>