Merge remote-tracking branch 'remotes/origin/hechu1'

配置文件修复
wlf
zhai_lw 6 years ago
commit b5f2321f76

@ -0,0 +1,22 @@
package servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(name = "login")
public class login extends HttpServlet {
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
}
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
}
}

@ -1,17 +0,0 @@
<%--
Created by IntelliJ IDEA.
User: zhai_
Date: 2019/1/9
Time: 10:10
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Title</title>
<script type="text/javascript" src="test2.js"></script>
</head>
<body>
</body>
</html>

@ -0,0 +1,17 @@
<%--
Created by IntelliJ IDEA.
User: lenovo
Date: 2019/1/9
Time: 12:11
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.Date" %>
<html>
<head>
<title>Title</title>
</head>
<body>
<%!Date date =new Date();%>
<div class="testp">时间是:<%=date%></div>
</body>
</html>

@ -0,0 +1,7 @@
function test6() {
$('.tes').load('server.jsp .testp');
}
$(document).ready(function () {
window.setInterval('test6()',1000);
});

@ -0,0 +1,7 @@
function showtime() {
var tim=new Date();
$('.tes2').html(tim);
}
$(document).ready(function () {
window.setInterval('showtime()',1000);
})

@ -0,0 +1,57 @@
<%--
Created by IntelliJ IDEA.
User: lenovo
Date: 2019/1/9
Time: 13:07
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>毕业设计管理系统</title>
<link type="text/css" rel="stylesheet" href="cssFile/login-style.css">
<script type="text/javascript" src="jsFile/jquery-3.3.1.js"></script>
<script type="text/javascript" src="jsFile/login.js"></script>
</head>
<body>
<div class="main">
<div class="top-bar">
<div class="top-center-bar">
<div class="logo">GDMS</div>
</div>
</div>
<div class="img-bar">
</div>
<div class="login-cont">
<form method="post" action="#">
<input class="input-text username-text" type="text" name="username"
placeholder="请输入学号">
<input class="input-text password-text" type="password" name="password"
placeholder="请输入密码">
<input class="submit-style" type="submit" value="登陆">
</form>
</div>
<div class="register-area">
<div class="welcome-text"><h1>欢迎使用</h1><p>落日无边江不尽,此身此日更须忙</p></div>
<div class="to-any to-register">注册</div>
<div class="to-any to-login">登陆</div>
</div>
<div class="register-cont">
<form method="post" action="#">
<input class="register-input-text sno-text" type="text" name="sno"
placeholder="学号">
<input class="register-input-text name-text" type="text" name="name"
placeholder="姓名">
<input class="register-input-text e-mail-text" type="text" name="e-mail"
placeholder="邮箱">
<input class="register-input-text password-text" type="password" name="password"
placeholder="请输入密码">
<input class="register-input-text check-password-text" type="password" name="password"
placeholder="请输入密码">
<input class="register-submit-style" type="submit" value="注册">
</form>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 650 KiB

@ -0,0 +1,164 @@
.img-bar{
width: 100%;
height: 600px;
background: url("images/login-img2.jpg");
}
.top-bar{
width: 100%;
height: 55px;
background-color: #c13139;
overflow: hidden;
z-index: 2;
box-shadow: 5px 0px 10px rgba(0,0,0,0.47);
}
.top-center-bar{
height: 100%;
width: 900px;
background-color: #c6333e;
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.42);
margin: 0px auto;
}
.top-center-bar .logo{
position: absolute;
margin: auto 20px;
top: 15px;
color: white;
font-weight: bolder;
font-size: 20px;
}
.login-cont{
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.44);
position: absolute;
background-color: white;
border-radius: 8px;
width: 400px;
height: 400px;
top: 150px;
right: 150px;
}
body{
margin: 0;
}
.login-cont .input-text{
padding: 0px 0px 0px 20px;
position: absolute;
width:340px;
height: 40px;
border-radius: 5px;
left: 29px;
border:1px solid rgba(0, 0, 0, 0.37);;
}
.login-cont .input-text:hover{
background-color: #e3e3e3;
}
.input-text.username-text{
top: 120px;
}
.input-text.password-text{
top: 200px;
}
.submit-style{
position: absolute;
top: 280px;
width: 300px;
height: 40px;
border-radius: 5px;
left: 49px;
border: 1px solid rgba(0, 0, 0, 0.2);
background-color: #65b0ff;
color: white;
font-size: 20px;
}
.submit-style:hover{
background-color: #4aa0e3;
}
.register-cont{
display: none;
position: absolute;
background-color: white;
border-radius: 8px;
width: 400px;
height: 500px;
top: 120px;
right: 150px;
box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.44);
}
.register-cont .register-input-text{
padding: 0px 0px 0px 20px;
position: absolute;
width:340px;
height: 35px;
border-radius: 5px;
left: 29px;
border:1px solid rgba(0, 0, 0, 0.37);;
}
.register-submit-style{
position: absolute;
top: 280px;
width: 300px;
height: 40px;
border-radius: 5px;
left: 49px;
border: 1px solid rgba(0, 0, 0, 0.2);
background-color: #65b0ff;
color: white;
font-size: 20px;
cursor: pointer;
}
.register-input-text.sno-text{
top: 60px;
}
.register-input-text.name-text{
top: 125px;
}
.register-input-text.e-mail-text{
top:190px;
}
.register-input-text.password-text{
top: 255px;
}
.register-input-text.check-password-text{
top:320px;
}
.register-submit-style{
top: 395px;
}
.register-input-text:hover{
background-color: #e7e0ea;
}
.register-submit-style:hover{
background-color: #438ecb;
}
.register-area{
position: absolute;
left: 270px;
top:230px;
}
.register-area h1{
color: white;
font-weight: lighter;
font-size: 55px;
}
.register-area p{
color: white;
font-size: 20px;
}
.register-area .to-any{
transition: all 0.3s;
width: 100px;
height: 50px;
font-size: 25px;
border-radius: 5px;
text-align: center;
line-height: 50px;
cursor: pointer;
background-color: rgba(255, 255, 255, 0.66);
color: #ffffff;
cursor: pointer;
}
.register-area .to-any:hover{
background-color: rgba(255, 255, 255, 0.8);
}
.to-login{
display: none;
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,28 @@
function showRegister() {
$('.register-cont').css('display','block');
$('.login-cont').css('display','none');
$('.to-register').css( 'display','none');
$('.to-login').css( 'display','block');
}
function showlogin() {
$('.register-cont').css('display','none');
$('.login-cont').css('display','block');
$('.to-register').css( 'display','block');
$('.to-login').css( 'display','none');
}
function isEmpty(e)
{
if($('.input-text').val().length<=0)
{
e.preventDefault();
alert('密码不能为空');
}
}
$(document).ready(
function () {
$('.to-register').on('click', showRegister);
$('.to-login').on('click', showlogin);
$('.submit-style').on('click',)
})
Loading…
Cancel
Save