From 66de965bc74de68d5a946caa6e9a2b2f179686ae Mon Sep 17 00:00:00 2001
From: Lin <1220627779@qq.com>
Date: Sat, 27 Mar 2021 14:09:21 +0800
Subject: [PATCH 1/5] create login.css
---
.../login.css" | 65 +++++++++++++++++++
.../login.html" | 2 +-
2 files changed, 66 insertions(+), 1 deletion(-)
create mode 100644 "\345\216\237\347\224\237html\344\273\243\347\240\201/login.css"
diff --git "a/\345\216\237\347\224\237html\344\273\243\347\240\201/login.css" "b/\345\216\237\347\224\237html\344\273\243\347\240\201/login.css"
new file mode 100644
index 0000000..6df4802
--- /dev/null
+++ "b/\345\216\237\347\224\237html\344\273\243\347\240\201/login.css"
@@ -0,0 +1,65 @@
+body {
+ text-align: center;
+ background-image: url(6.jpg);
+}
+.login{
+ width: 350px;
+ height: 370px;
+ background-color: white;
+ margin: 150px auto;
+ font-weight: 900;
+ border:1px #eee solid;
+}
+.top{
+ width:100%;
+ height: 50px;
+ background-color: white;
+ float: left;;
+ color: black;
+ text-align: center;
+ line-height: 50px;
+}
+.ref{
+ width: 280px;
+ height: 40px;
+ margin-top: 30px;
+ margin-left: 20px;
+ float: left;
+ text-align: center;
+ line-height: 40px;
+}
+#lg{
+ width: 100px;
+ height: 40px;
+ font-size: 12pt;
+ border:1px #eee solid;
+}
+#res{
+ width: 100px;
+ height: 40px;
+ font-size: 12pt;
+ margin-left: 30px;
+ border:1px #eee solid;
+}
+.button{
+ margin-top: 150px;
+ margin-left: 10px;
+}
+#input{
+ border: 1px solid #ccc;
+ padding: 7px 0px;
+ border-radius: 3px;
+ padding-left:5px;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
+ -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
+ -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
+ transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
+}
+#input:focus{
+ border-color: #66afe9;
+ outline: 0;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
+}
+
diff --git "a/\345\216\237\347\224\237html\344\273\243\347\240\201/login.html" "b/\345\216\237\347\224\237html\344\273\243\347\240\201/login.html"
index 6979e70..4f1f2c9 100644
--- "a/\345\216\237\347\224\237html\344\273\243\347\240\201/login.html"
+++ "b/\345\216\237\347\224\237html\344\273\243\347\240\201/login.html"
@@ -3,7 +3,7 @@
登录
-
+
From 6473e3961c3c3e190e09cdc3d8e0cb110b9064ed Mon Sep 17 00:00:00 2001
From: ppzy123 <1157928777@qq.com>
Date: Sat, 27 Mar 2021 15:20:09 +0800
Subject: [PATCH 2/5] add a user.java
---
src/User.java | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 src/User.java
diff --git a/src/User.java b/src/User.java
new file mode 100644
index 0000000..fa4fbec
--- /dev/null
+++ b/src/User.java
@@ -0,0 +1,64 @@
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Scanner;
+import java.util.Random;
+public class User {
+ int id;
+ String user_name;
+ String password;
+ String role;
+ List
subform_list;
+ User(int id,String user_name,String password, String role,List list) {
+ this.id=id;
+ this.user_name=user_name;
+ this.password=password;
+ this.role=role;
+ this.subform_list=list;
+ }
+ User() {
+ subform_list=new ArrayList();
+ }
+ public int getId() {
+ return id;
+ }
+
+ public List getSubform_list() {
+ return subform_list;
+ }
+
+ public String getPassword() {
+ return password;
+ }
+
+ public String getRole() {
+ return role;
+ }
+
+ public String getUser_name() {
+ return user_name;
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public void setSubform_list(List subform_list) {
+ this.subform_list = subform_list;
+ }
+
+ public void setPassword(String password) {
+ this.password = password;
+ }
+
+ public void setRole(String role) {
+ this.role = role;
+ }
+
+ public void setUser_name(String user_name) {
+ this.user_name = user_name;
+ }
+ public void addSubform(int id) {
+ this.subform_list.add(id);
+ }
+}
+
From c6227baf3d2b48121ee97baf603442e8614ec72a Mon Sep 17 00:00:00 2001
From: Lin <1220627779@qq.com>
Date: Sat, 27 Mar 2021 15:20:45 +0800
Subject: [PATCH 3/5] =?UTF-8?q?=E6=B3=A8=E5=86=8C=E7=95=8C=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../login.html" | 4 +-
.../register.css" | 88 +++++++++++++++++++
.../register.html" | 18 ++++
3 files changed, 108 insertions(+), 2 deletions(-)
create mode 100644 "\345\216\237\347\224\237html\344\273\243\347\240\201/register.css"
create mode 100644 "\345\216\237\347\224\237html\344\273\243\347\240\201/register.html"
diff --git "a/\345\216\237\347\224\237html\344\273\243\347\240\201/login.html" "b/\345\216\237\347\224\237html\344\273\243\347\240\201/login.html"
index 4f1f2c9..740664b 100644
--- "a/\345\216\237\347\224\237html\344\273\243\347\240\201/login.html"
+++ "b/\345\216\237\347\224\237html\344\273\243\347\240\201/login.html"
@@ -12,8 +12,8 @@
密 码:
diff --git "a/\345\216\237\347\224\237html\344\273\243\347\240\201/register.css" "b/\345\216\237\347\224\237html\344\273\243\347\240\201/register.css"
new file mode 100644
index 0000000..e0021b3
--- /dev/null
+++ "b/\345\216\237\347\224\237html\344\273\243\347\240\201/register.css"
@@ -0,0 +1,88 @@
+body {
+ text-align: center;
+ background-image: url(6.jpg);
+}
+.login{
+ width: 350px;
+ height: 370px;
+ background-color: white;
+ margin: 150px auto;
+ font-weight: 900;
+ border:1px #eee solid;
+}
+.top{
+ width:100%;
+ height: 50px;
+ background-color: white;
+ float: left;;
+ color: black;
+ text-align: center;
+ line-height: 50px;
+}
+.ref{
+ width: 280px;
+ height: 40px;
+ margin-top: 20px;
+ margin-left: 25px;
+ float: left;
+ text-align: center;
+ line-height: 40px;
+}
+.refp{
+ width: 280px;
+ height: 40px;
+ margin-top: 20px;
+ margin-left: 25px;
+ letter-spacing: 5px;
+ float: left;
+ text-align: center;
+ line-height: 40px;
+}
+.re{
+ width: 280px;
+ height: 40px;
+ margin-top: 20px;
+ margin-left: 45px;
+ float: left;
+ text-align: center;
+ line-height: 40px;
+}
+#lg{
+ width: 100px;
+ height: 40px;
+ font-size: 12pt;
+ border:1px #eee solid;
+}
+
+.button{
+ margin-top: 300px;
+ margin-left: 10px;
+}
+#input{
+ border: 1px solid #ccc;
+ padding: 7px 0px;
+ border-radius: 3px;
+ padding-left:5px;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
+ -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
+ -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
+ transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s
+}
+#input:focus{
+ border-color: #66afe9;
+ outline: 0;
+ -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
+ box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)
+}
+
+.shortselect{
+ background:#fafdfe;
+ height:60px;
+ width:180px;
+ line-height:28px;
+ border:1px solid #9bc0dd;
+ -moz-border-radius:2px;
+ -webkit-border-radius:2px;
+ border-radius:2px;
+}
diff --git "a/\345\216\237\347\224\237html\344\273\243\347\240\201/register.html" "b/\345\216\237\347\224\237html\344\273\243\347\240\201/register.html"
new file mode 100644
index 0000000..4cedc08
--- /dev/null
+++ "b/\345\216\237\347\224\237html\344\273\243\347\240\201/register.html"
@@ -0,0 +1,18 @@
+
+
+
+
+ 注册
+
+
+
+
+
+
+
From 0ac68b5c6fed98023d84746b3a2e69367c60e893 Mon Sep 17 00:00:00 2001
From: ppzy123 <1157928777@qq.com>
Date: Sat, 27 Mar 2021 15:26:12 +0800
Subject: [PATCH 4/5] add a subform.java
---
src/Subform.java | 51 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
create mode 100644 src/Subform.java
diff --git a/src/Subform.java b/src/Subform.java
new file mode 100644
index 0000000..1ca3e12
--- /dev/null
+++ b/src/Subform.java
@@ -0,0 +1,51 @@
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class Subform {
+ int id;
+ String title;
+ Date date;
+ List user_list;
+ Subform(int id,String title,Date date,List user_list) {
+ this.id=id;
+ this.title=title;
+ this.date=date;
+ this.user_list=user_list;
+ }
+ Subform() {
+ this.user_list=new ArrayList();
+ }
+
+ public void setId(int id) {
+ this.id = id;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public List getUser_list() {
+ return user_list;
+ }
+
+ public Date getDate() {
+ return date;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public void setUser_list(List user_list) {
+ this.user_list = user_list;
+ }
+}
From 68c3b3e6066fd05ce1629770f464fc71480188e7 Mon Sep 17 00:00:00 2001
From: ppzy123 <1157928777@qq.com>
Date: Sat, 27 Mar 2021 15:46:58 +0800
Subject: [PATCH 5/5] add a message.java
---
src/Message.java | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 src/Message.java
diff --git a/src/Message.java b/src/Message.java
new file mode 100644
index 0000000..11ecc20
--- /dev/null
+++ b/src/Message.java
@@ -0,0 +1,48 @@
+class Message {
+ int user_id;
+ int sub_id;
+ String users;
+ Message(int user_id,int sub_id,String users) {
+ this.sub_id=sub_id;
+ this.user_id=user_id;
+ this.users=users;
+ }
+
+ public int getSub_id() {
+ return sub_id;
+ }
+
+ public int getUser_id() {
+ return user_id;
+ }
+
+ public void setSub_id(int sub_id) {
+ this.sub_id = sub_id;
+ }
+
+ public void setUser_id(int user_id) {
+ this.user_id = user_id;
+ }
+
+ public String getUsers() {
+ return users;
+ }
+
+ public void setUsers(String users) {
+ this.users = users;
+ }
+
+ public void handleMsg(int id) {
+ String temp="";
+ String[]ss = users.split(",");
+ for(int i=0;i