diff --git a/src/servlet/account/login.java b/src/servlet/account/login.java new file mode 100644 index 0000000..7bb4417 --- /dev/null +++ b/src/servlet/account/login.java @@ -0,0 +1,32 @@ +package servlet.account; + +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; + +import core.user.Student; +import core.user.User; + +@WebServlet("/login") +public class login extends HttpServlet { + protected void doPost(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + String id=request.getParameter("id"); + String password=request.getParameter("password"); + if(id=="201630126050"&&password=="823169880") + { + request.getRequestDispatcher("/service").forward(request,response); + } + else + response.sendRedirect(""); + } + + protected void doGet(HttpServletRequest request, HttpServletResponse response) + throws ServletException, IOException { + + } +} diff --git a/web/webPage/cssFile/images/login-img1.jpg b/web/cssFile/images/login-img1.jpg similarity index 100% rename from web/webPage/cssFile/images/login-img1.jpg rename to web/cssFile/images/login-img1.jpg diff --git a/web/webPage/cssFile/images/login-img2.jpg b/web/cssFile/images/login-img2.jpg similarity index 100% rename from web/webPage/cssFile/images/login-img2.jpg rename to web/cssFile/images/login-img2.jpg diff --git a/web/webPage/cssFile/login-style.css b/web/cssFile/login-style.css similarity index 84% rename from web/webPage/cssFile/login-style.css rename to web/cssFile/login-style.css index 880ff00..bdf4ad7 100644 --- a/web/webPage/cssFile/login-style.css +++ b/web/cssFile/login-style.css @@ -46,7 +46,7 @@ body{ height: 40px; border-radius: 5px; left: 29px; - border:1px solid rgba(0, 0, 0, 0.37);; + border:1px solid rgba(0, 0, 0, 0.37); } .login-cont .input-text:hover{ background-color: #e3e3e3; @@ -94,7 +94,6 @@ body{ } .register-submit-style{ position: absolute; - top: 280px; width: 300px; height: 40px; border-radius: 5px; @@ -114,14 +113,17 @@ body{ .register-input-text.e-mail-text{ top:190px; } +.register-input-text.phone-number{ + top:255px; +} .register-input-text.password-text{ - top: 255px; + top: 320px; } .register-input-text.check-password-text{ - top:320px; + top:385px; } .register-submit-style{ - top: 395px; + top: 440px; } .register-input-text:hover{ background-color: #e7e0ea; @@ -161,4 +163,27 @@ body{ } .to-login{ display: none; +} +.logo2{ + position: absolute; + left: 140px; + top: 20px; + width: 120px; + height: 40px; + color: white; + background-color: #dc514a; + border-radius: 12px; + border: 1px solid rgba(0, 0, 0, 0.1); + font-size: 20px; + font-weight: bolder; + line-height: 40px; + text-align: center; +} +.main{ +} +.bottom-bar{ + background-color: #f7edda; + border: 1px solid rgba(0, 0, 0, 0.16); + height: 40px; + width: 100%; } \ No newline at end of file diff --git a/web/holle.jsp b/web/holle.jsp deleted file mode 100644 index bc42a4c..0000000 --- a/web/holle.jsp +++ /dev/null @@ -1,20 +0,0 @@ -<%-- - Created by IntelliJ IDEA. - User: lenovo - Date: 2019/1/9 - Time: 11:02 - To change this template use File | Settings | File Templates. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -
-