login.jsp 2.36 KB
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>登录</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link href="<%=basePath %>css/style.default.css" rel="stylesheet">
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="<%=basePath %>css/bootstrap-responsive.min.css" />
	<%--<link rel="stylesheet" type="text/css" href="<%=basePath %>css/unicorn.login.css" />--%>
</head>
<body class="signin" >
<%--<div id="logo">--%>
	<%--<img src="<%=basePath %>img/logo.png" alt="" />--%>
<%--</div>--%>
<section>

		<div class="panel panel-signin">
			<div class="panel-body">
				<div class="logo text-center">
					<img src="<%=basePath %>img/yoho.jpg" alt="Yoho Ops" >
				</div>
				<br />
				<h4 class="text-center mb5" style="color:red">请使用OA账户登录</h4>
				<p class="text-center">Please connect with the admin.</p>

				<div id="messageDiv" class="mb30" style="color:red">${message}</div>

				<form id="loginform" action="<%=basePath %>user/login" method="post">
					<div class="input-group mb15">
						<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
						<input name="name" type="text" placeholder="Username" class="form-control">
					</div><!-- input-group -->
					<div class="input-group mb15">
						<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
						<input  name="pwd" type="password" placeholder="Password" class="form-control">
					</div><!-- input-group -->
					<input  name="loginTargetUrl" type="hidden" value="${loginTargetUrl}"/>
					<div class="clearfix">
						<div class="pull-right">
							<button type="submit" class="btn btn-success">Sign In <i class="fa fa-angle-right ml5"></i></button>
						</div>
					</div>
				</form>

			</div><!-- panel-body -->
		</div><!-- panel -->

	</section>

<script src="<%=basePath %>js/jquery.min.js"></script>
<script src="<%=basePath %>js/unicorn.login.js"></script>
</body>
</html>