<%--
Created by IntelliJ IDEA.
User: songsm
Date: 2018/7/18
Time: 上午9:08
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
// pageContext.setAttribute("basePath", basePath);
%>
<script src="<%=basePath%>/js/jquery-3.3.1.js"></script>
//<script src="<%=basePath%>/js/bootstrap.js"></script>
<link rel="stylesheet" href="<%=basePath%>/css/bootstrap.css">
<script>
// $(document).ready(function(){
//
//
// $("#button1").click(function(){
//
// $.post("/login",
// {
// loginname:$("#loginname").val(),
// password:$("#password").val()
//
// },function (data,status) {
//
// alert(data);
//
// });
//
// });
// });
</script>
<html>
<head>
<title>人事管理系统</title>
</head>
<body>
<h2>人事管理系统</h2>
<form class="form-horizontal" action="/login" method="post">
<div class="form-group">
<label for="loginname" class="col-sm-2 control-label">用户名</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="loginname" name="loginname" placeholder="用户名">
</div>
</div>
<div class="form-group">
<label for="password" class="col-sm-2 control-label">密码</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="password" name="password" placeholder="密码">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox">
<label>
<input type="checkbox"> 记住我
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" id="button1" class="btn btn-default">登录</button>
</div>
</div>
</form>
</body>
</html>