login.jsp
2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<%@ 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>