diff --git a/后端/LoginSuccess.jsp b/后端/LoginSuccess.jsp new file mode 100644 index 0000000..2f62a4f --- /dev/null +++ b/后端/LoginSuccess.jsp @@ -0,0 +1,21 @@ +<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> + + + + + 登陆成功 + + + + + + + + + + +

登录成功!!!!

+
+ + + diff --git a/后端/addUser.jsp b/后端/addUser.jsp new file mode 100644 index 0000000..22f1812 --- /dev/null +++ b/后端/addUser.jsp @@ -0,0 +1,17 @@ +<%@ page language="java" contentType="text/html; charset=GBK" + pageEncoding="GBK"%> + + + + + ûҳ + + +
+ û: + : + + +
+ + diff --git a/后端/login.jsp b/后端/login.jsp index a45048b..e98472c 100644 --- a/后端/login.jsp +++ b/后端/login.jsp @@ -1,150 +1,17 @@ -

<%@ page language="java" contentType="text/html; charset=utf-8"
- pageEncoding="utf-8"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>Insert title here</title>
- </head>
- <head>
- <meta charset="utf-8">
- <title>登录</title>
- <style type="text/css">
- body{
- margin: 0;
- padding: 0;
- background:url(' 图片/timg (4).jpg');
- background-position: center;
- background-repeat: no-repeat;
- }
- input{
- display: inline-block;
- background: #fff;
- }
- .xzc-title-box{
- position: absolute;
- width: 300px;
- height: 50px;
- margin-left: 100px;
- margin-top: 5px;
- text-align:center;
- font-size: 28px;
- font-weight: 800;
- color: #ff5000;
- line-height: 50px;
- }
- .xzc-login-box{
- position: relative;
- height: 400px;
- width: 500px;
- top: 50px;
- margin: 0 auto;
- z-index: 99999;
- background: white;
- border: 7px solid #ccc;
- }
- .xzc-username-box{
- position: absolute;
- width: 420px;
- height: 40px;
- line-height: 40px;
- margin-top:100px;
- margin-left:80px;
- font-weight: 700;
- }
- .xzc-username-input{
- display: inline-block;
- margin-left: 5px;
- /*background: green;*/
- }
- #username{
- height: 35px;
- width: 290px;
- border: 2px solid #ccc;
- border-radius: 5px;
- }
-

-

.xzc-userPassword-box{
- position: absolute;
- width: 420px;
- height: 40px;
- line-height: 40px;
- margin-top:180px;
- margin-left:80px;
- font-weight: 700;
- }
- .xzc-userPassword-input{
- display: inline-block;
- margin-left: 20px;
- }
- #userPassword{
- height: 35px;
- width: 290px;
- border: 2px solid #ccc;
- border-radius: 5px;
- }
- .xzc-submit-box{
- position:absolute;
- width: 80px;
- height: 40px;
- line-height: 40px;
- margin-top: 30px;
- margin-left:100px;
- border-radius: 5px;
- background: grey;
- }
- #xzc-submit-button{
- display: inline-block;
- width: 80px;
- height: 40px;
- border-radius: 5px;
- background: #C5C5F8;
- }
- .xzc-goGetback-box{
- position:absolute;
- width: 150px;
- height: 20px;
- margin-top: 80px;
- margin-left:40px;
-
- }
- .xzc-goback-box
- {
- position:absolute;
- margin-top: 80px;
- margin-left:200px;
-
- }
- }
- </style>
- </head>

-

<body>
- <div class=xzc-login-box>
- <div class=xzc-title-box>
- <span>约球吧</span>
- </div>
- <form action="#" method="post">
- <div class="xzc-username-box">
- <label for="username">用户名</label>
- <div class="xzc-username-input">
- <input type="text" id="username" name="username" placeholder="请输入用户名" />
- </div>
- </div>
- <div class="xzc-userPassword-box">
- <label for="userPassword">密码</label>
- <div class="xzc-userPassword-input">
- <input type="password" id="userPassword" name="userPassword" placeholder="请输入密码" />
- </div>
- <div class="xzc-submit-box">
- <input id = "xzc-submit-button" type="submit" value="登录">
- </div>
- <div class="xzc-goGetback-box">
- <a href="#" style="text-decoration: none;">忘记密码?去找回</a>
- </div>
- <div class=xzc-goback-box>
- <a href="">返回上一页</a>
- </div>
- </div>
- </div>
- </body>

-

</html>

+<%@ page language="java" contentType="text/html; charset=GBK" + pageEncoding="GBK"%> + + + + +½ҳ + + +
+룺 + + +
+ + diff --git a/后端/register.jsp b/后端/register.jsp new file mode 100644 index 0000000..8b89848 --- /dev/null +++ b/后端/register.jsp @@ -0,0 +1,285 @@ +<%@ page language="java" contentType="text/html; charset=UTF-8" + pageEncoding="UTF-8"%> + + + + + + + 账户注册 + + + +
+
+
+ 用户注册 +
+
+
+ * + +
+ +
+
+ +
+ * + +
+ +
+
+ +
+ * + +
+ +
+
+ +
+ * + +
+ +
+
+ +
+ * + +
+ +
+
+
+ * + +
+ +
+
+ +
+ * + +
+ 男 + 女 +
+
+ +
+ +
+ + +
+
+
+ + + \ No newline at end of file diff --git a/后端/yqb/dao/UserDao.class b/后端/yqb/dao/UserDao.class new file mode 100644 index 0000000..48bf28c Binary files /dev/null and b/后端/yqb/dao/UserDao.class differ diff --git a/后端/yqb/entity/User.class b/后端/yqb/entity/User.class new file mode 100644 index 0000000..19144ae Binary files /dev/null and b/后端/yqb/entity/User.class differ diff --git a/后端/yqb/service/AddUserServlet.class b/后端/yqb/service/AddUserServlet.class new file mode 100644 index 0000000..a84c564 Binary files /dev/null and b/后端/yqb/service/AddUserServlet.class differ diff --git a/后端/yqb/service/LoginServlet.class b/后端/yqb/service/LoginServlet.class new file mode 100644 index 0000000..4a14b9c Binary files /dev/null and b/后端/yqb/service/LoginServlet.class differ diff --git a/后端/yqb/service/MainServlet.class b/后端/yqb/service/MainServlet.class new file mode 100644 index 0000000..b008078 Binary files /dev/null and b/后端/yqb/service/MainServlet.class differ diff --git a/后端/yqb/utils/DBOper.class b/后端/yqb/utils/DBOper.class new file mode 100644 index 0000000..b7e0f47 Binary files /dev/null and b/后端/yqb/utils/DBOper.class differ