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 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; + } +} 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); + } +} + 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..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" @@ -3,7 +3,7 @@                       登录 -         +                                 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 @@ + + +     +         +        注册 +         +     + +     +         +     +