update
47
web/html/addPeople.html
Normal file
@@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Old People Home - 老人注册</title>
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="css/icons/favicon.png">
|
||||
<link rel="stylesheet" href="css/addPeople_style.css">
|
||||
<script src="js/addPeople.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="box1">
|
||||
<span class="upper">O</span>
|
||||
<span class="lower">ld</span>
|
||||
<span class="upper">P</span>
|
||||
<span class="lower">eople</span>
|
||||
<span class="upper">H</span>
|
||||
<span class="lower">ome</span>
|
||||
</div>
|
||||
<div class="register_1" id="register_1" style="display: block">
|
||||
<h3>老人注册</h3>
|
||||
<form>
|
||||
<input type="text" placeholder="账号"><br>
|
||||
<input type="password" placeholder="密码"><br>
|
||||
<input type="button" value="next" id="next" onclick="changeDiv()">
|
||||
</form>
|
||||
</div>
|
||||
<div class="register_2" id="register_2" style="display: none">
|
||||
<h3>老人注册</h3>
|
||||
<form action="firstPage.html">
|
||||
<input type="text" placeholder="姓名"><br>
|
||||
<input type="text" placeholder="身份证号"><br>
|
||||
<div class="gender">
|
||||
<input type="radio" value="mele">
|
||||
<span>男</span>
|
||||
<input type="radio" value="female">
|
||||
<span>女</span><br>
|
||||
</div>
|
||||
<span id="birthday">生日:</span>
|
||||
<input type="date" id="date"><br>
|
||||
<input type="text" placeholder="入住房间"><br>
|
||||
<input type="submit" value="OK" id="submit">
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
155
web/html/css/addPeople_style.css
Normal file
@@ -0,0 +1,155 @@
|
||||
body {
|
||||
background-color: papayawhip;
|
||||
margin: 0px;
|
||||
background-image: url("images/老人1.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
/* LOGO */
|
||||
.box1 {
|
||||
text-align: left;
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
left: 10px;
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
.upper {
|
||||
color: rgb(255, 115, 0);
|
||||
font-weight: bolder;
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -10px;
|
||||
}
|
||||
.lower {
|
||||
color: rgb(255, 183, 124);
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -5px;
|
||||
}
|
||||
|
||||
/* 注册界面1 */
|
||||
.register_1 {
|
||||
width: 400px;
|
||||
height: 500px;
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
position: absolute;
|
||||
top: 75px;
|
||||
left: 850px;
|
||||
}
|
||||
.register_1 h3 {
|
||||
padding: 0 0 0 30px;
|
||||
color: rgb(255, 115, 0);
|
||||
}
|
||||
.register_1 form input{
|
||||
width: 220px;
|
||||
height: 35px;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
left: 90px;
|
||||
text-align: center;
|
||||
border-radius: 25px;
|
||||
border: 0.5px solid rgb(170, 170, 170);
|
||||
font-size: 15px;
|
||||
margin: 50px 0 30px 0;
|
||||
outline: none;
|
||||
background-color: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
.register_1 form input#next {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: none;
|
||||
background-color: rgb(255, 115, 0);
|
||||
color: white;
|
||||
position: relative;
|
||||
top: 100px;
|
||||
left: 340px;
|
||||
}
|
||||
.register_1 form input#next:hover {
|
||||
transform: translate(0,-1px);
|
||||
-ms-transform: translate(0,-1px);
|
||||
-webkit-transform: translate(0,-1px);
|
||||
-o-transform: translate(0,-1px);
|
||||
-moz-transform: translate(0,-1px);
|
||||
box-shadow: 3px 3px 3px rgba(131, 131, 131, 0.6);
|
||||
}
|
||||
.register_1 form input#next:active {
|
||||
background-color: rgba(255, 115, 0, 0.3);
|
||||
}
|
||||
|
||||
/* 注册界面2 */
|
||||
.register_2 {
|
||||
width: 400px;
|
||||
height: 500px;
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
position: absolute;
|
||||
top: 75px;
|
||||
left: 850px;
|
||||
}
|
||||
.register_2 h3 {
|
||||
padding: 0 0 0 30px;
|
||||
color: rgb(255, 115, 0);
|
||||
}
|
||||
.register_2 form input {
|
||||
width: 220px;
|
||||
height: 35px;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
left: 90px;
|
||||
text-align: center;
|
||||
border-radius: 25px;
|
||||
border: 0.5px solid rgb(170, 170, 170, 0.6);
|
||||
font-size: 15px;
|
||||
margin: 20px 0 0 0;
|
||||
outline: none;
|
||||
background-color: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
.register_2 form .gender input{
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
position: relative;
|
||||
left: 110px;
|
||||
margin-right: 120px;
|
||||
}
|
||||
.register_2 form .gender span {
|
||||
position: relative;
|
||||
left: -10px;
|
||||
top: 10px;
|
||||
color: gray;
|
||||
}
|
||||
.register_2 form span#birthday {
|
||||
color: gray;
|
||||
position: relative;
|
||||
top: 10px;
|
||||
left: 110px;
|
||||
}
|
||||
.register_2 form input#date {
|
||||
width: auto;
|
||||
height: auto;
|
||||
position: relative;
|
||||
left: 110px;
|
||||
}
|
||||
.register_2 form input#submit {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: none;
|
||||
background-color: rgb(255, 115, 0);
|
||||
color: white;
|
||||
position: relative;
|
||||
top: 100px;
|
||||
left: 340px;
|
||||
}
|
||||
.register_2 form input#submit:hover {
|
||||
transform: translate(0,-1px);
|
||||
-ms-transform: translate(0,-1px);
|
||||
-webkit-transform: translate(0,-1px);
|
||||
-o-transform: translate(0,-1px);
|
||||
-moz-transform: translate(0,-1px);
|
||||
box-shadow: 3px 3px 3px rgba(131, 131, 131, 0.6);
|
||||
}
|
||||
.register_2 form input#submit:active {
|
||||
background-color: rgba(255, 115, 0, 0.3);
|
||||
}
|
||||
80
web/html/css/deletePeople_style.css
Normal file
@@ -0,0 +1,80 @@
|
||||
body {
|
||||
margin: 0px;
|
||||
background-color: papayawhip;
|
||||
background-image: url("images/老人3.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100%;
|
||||
}
|
||||
|
||||
/* LOGO */
|
||||
.box1 {
|
||||
text-align: left;
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
left: 10px;
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
.upper {
|
||||
color: rgb(255, 115, 0);
|
||||
font-weight: bolder;
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -10px;
|
||||
}
|
||||
.lower {
|
||||
color: rgb(255, 183, 124);
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -5px;
|
||||
}
|
||||
|
||||
/* 注销界面 */
|
||||
.delete {
|
||||
width: 420px;
|
||||
height: 250px;
|
||||
background-color: rgba(255, 255, 255, 0.6);
|
||||
position: absolute;
|
||||
top: 150px;
|
||||
left: 830px;
|
||||
}
|
||||
.delete h2 {
|
||||
padding: 0 0 0 30px;
|
||||
color: rgb(255, 115, 0);
|
||||
}
|
||||
.delete form input {
|
||||
width: 300px;
|
||||
height: 35px;
|
||||
position: relative;
|
||||
top: 20px;
|
||||
left: 60px;
|
||||
text-align: center;
|
||||
outline: none;
|
||||
border-radius: 25px;
|
||||
border: 0.5px solid rgba(128, 128, 128, 0.6);
|
||||
background-color: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
.delete form input#submit {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: none;
|
||||
background-color: rgb(255, 115, 0);
|
||||
color: white;
|
||||
position: relative;
|
||||
top: 80px;
|
||||
left: 355px;
|
||||
}
|
||||
.delete form input#submit:hover {
|
||||
transform: translate(0,-1px);
|
||||
-ms-transform: translate(0,-1px);
|
||||
-webkit-transform: translate(0,-1px);
|
||||
-o-transform: translate(0,-1px);
|
||||
-moz-transform: translate(0,-1px);
|
||||
box-shadow: 3px 3px 3px rgba(131, 131, 131, 0.6);
|
||||
}
|
||||
.delete form input#submit:active {
|
||||
background-color: rgba(255, 115, 0, 0.3);
|
||||
/* js写一个弹出确认框 显示老人名字和身份证号 */
|
||||
}
|
||||
128
web/html/css/firstPage_style.css
Normal file
@@ -0,0 +1,128 @@
|
||||
body {
|
||||
height: 1450px;
|
||||
margin: 0px;
|
||||
background-image: url("images/天空1.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
/* LOGO */
|
||||
.box1 {
|
||||
text-align: left;
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
left: 10px;
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
.upper {
|
||||
color: rgb(255, 115, 0);
|
||||
font-weight: bolder;
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -10px;
|
||||
}
|
||||
.lower {
|
||||
color: rgb(255, 183, 124);
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -5px;
|
||||
}
|
||||
|
||||
/* 横向菜单栏 */
|
||||
.menu {
|
||||
width: auto;
|
||||
height: 50px;
|
||||
background-color: rgb(255, 183, 124);
|
||||
margin-top: 100px;
|
||||
}
|
||||
ul {
|
||||
width: auto;
|
||||
list-style-type: none;
|
||||
white-space: nowrap;
|
||||
padding: 0;
|
||||
}
|
||||
.menu li {
|
||||
float: left;
|
||||
}
|
||||
.menu li#self {
|
||||
margin: 0 0 0 979px;
|
||||
}
|
||||
.menu li a {
|
||||
color: white;
|
||||
text-decoration-line: none;
|
||||
display: block;
|
||||
padding: 14px 40px 15px 70px;
|
||||
}
|
||||
.menu li a:hover {
|
||||
background-color: rgba(248, 148, 66, 0.7);
|
||||
}
|
||||
.menu ul li a#firstPage {
|
||||
background-image: url("icons/首页.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 12%;
|
||||
background-position: 35px 16px;
|
||||
|
||||
}
|
||||
.menu ul li a#my {
|
||||
background-image: url("icons/管理员.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 12%;
|
||||
background-position: 35px 16px;
|
||||
}
|
||||
|
||||
/* 操作界面 */
|
||||
.box2 {
|
||||
width: auto;
|
||||
height: auto;
|
||||
/* background-color: yellow; */
|
||||
margin: 0 0 0 190px;
|
||||
}
|
||||
.box2 table tr td {
|
||||
padding: 150px 50px 90px 0;
|
||||
}
|
||||
.box2 table tr td a {
|
||||
color: papayawhip;
|
||||
text-decoration-line: none;
|
||||
font-size: 14px;
|
||||
background-image: url("icons/房间.png");
|
||||
background-repeat: no-repeat;
|
||||
padding: 100px 90px 20px 100px;
|
||||
background-position: 70px 35px;
|
||||
background-size: 40%;
|
||||
margin: 0 0 0 5px;
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
.box2 table tr td a:hover {
|
||||
background-image: url("icons/房间light.png");
|
||||
}
|
||||
.box2 table tr td.last {
|
||||
padding: 150px 0 90px 0;
|
||||
}
|
||||
|
||||
/* 纵向导航栏 */
|
||||
.guide {
|
||||
width: 190px;
|
||||
height: 1400px;
|
||||
background-color: rgba(255, 183, 124, 0.3);
|
||||
position: absolute;
|
||||
top: 150px;
|
||||
}
|
||||
.guide li {
|
||||
margin: 50px 0 0 0;
|
||||
}
|
||||
.guide li#delete {
|
||||
margin: 60px 0;
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
.guide li a {
|
||||
text-decoration-line: none;
|
||||
color: white;
|
||||
padding: 16px 76px 20px 50px;
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
.guide li a:hover {
|
||||
background-color: rgba(248, 148, 66, 0.7);
|
||||
}
|
||||
BIN
web/html/css/icons/favicon.png
Normal file
|
After Width: | Height: | Size: 338 B |
BIN
web/html/css/icons/房间.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
web/html/css/icons/房间light.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
web/html/css/icons/管理员.png
Normal file
|
After Width: | Height: | Size: 813 B |
BIN
web/html/css/icons/管理员头像.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
web/html/css/icons/老人.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
web/html/css/icons/首页.png
Normal file
|
After Width: | Height: | Size: 401 B |
BIN
web/html/css/images/天空1.jpg
Normal file
|
After Width: | Height: | Size: 3.9 MiB |
BIN
web/html/css/images/天空2.jpg
Normal file
|
After Width: | Height: | Size: 3.7 MiB |
BIN
web/html/css/images/天空3.jpg
Normal file
|
After Width: | Height: | Size: 1.6 MiB |
BIN
web/html/css/images/天空4.jpg
Normal file
|
After Width: | Height: | Size: 2.1 MiB |
BIN
web/html/css/images/老人1.jpg
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
BIN
web/html/css/images/老人2.jpg
Normal file
|
After Width: | Height: | Size: 273 KiB |
BIN
web/html/css/images/老人3.jpg
Normal file
|
After Width: | Height: | Size: 2.6 MiB |
72
web/html/css/login_style.css
Normal file
@@ -0,0 +1,72 @@
|
||||
body {
|
||||
background-color: papayawhip;
|
||||
margin: 0px;
|
||||
}
|
||||
.background_text {
|
||||
width: 100%;
|
||||
color: rgb(255, 183, 124,0.3);
|
||||
font-style: italic;
|
||||
font-family: sans-serif;
|
||||
font-size: 125px;
|
||||
position: relative;
|
||||
top: 120px;
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
#title_1 {
|
||||
width: 100%;
|
||||
color: slategray;
|
||||
font-family: youyuan;
|
||||
font-size: 30px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
}
|
||||
#name {
|
||||
/* width: 120px; */
|
||||
width: 100%;
|
||||
color: slategray;
|
||||
font-family: youyuan;
|
||||
font-size: 24px;
|
||||
text-align: center;
|
||||
position: absolute;
|
||||
/* left: 490px; */
|
||||
top: 230px;
|
||||
}
|
||||
input[name] {
|
||||
background-color: rgba(240, 248, 255, 0);
|
||||
height: 30px;
|
||||
border: 0.5px solid rgba(128, 128, 128, 0.5);
|
||||
border-radius: 15px;
|
||||
position: relative;
|
||||
font-family: youyuan;
|
||||
text-align: center;
|
||||
font-size: 18px;
|
||||
outline: none;
|
||||
}
|
||||
#submit {
|
||||
background-color: rgb(255, 183, 124);
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
border: none;
|
||||
border-radius: 100%;
|
||||
font-size: 22px;
|
||||
color: white;
|
||||
padding: 0;
|
||||
outline: none;
|
||||
}
|
||||
#submit:hover {
|
||||
transform: translate(0,-1px);
|
||||
-ms-transform: translate(0,-1px);
|
||||
-webkit-transform: translate(0,-1px);
|
||||
-o-transform: translate(0,-1px);
|
||||
-moz-transform: translate(0,-1px);
|
||||
box-shadow: 3px 3px 3px rgba(192, 192, 192, 0.801);
|
||||
}
|
||||
#submit:active {
|
||||
background-color: rgba(255, 183, 124, 0.5);
|
||||
}
|
||||
240
web/html/css/personal_style.css
Normal file
@@ -0,0 +1,240 @@
|
||||
body {
|
||||
height: 880px;
|
||||
/* background-color: papayawhip; */
|
||||
margin: 0px;
|
||||
background-image: url("images/天空1.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
/* LOGO */
|
||||
.box1 {
|
||||
text-align: left;
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
left: 10px;
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
.upper {
|
||||
color: rgb(255, 115, 0);
|
||||
font-weight: bolder;
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -10px;
|
||||
}
|
||||
.lower {
|
||||
color: rgb(255, 183, 124);
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -5px;
|
||||
}
|
||||
|
||||
/* 横向菜单栏 */
|
||||
.menu {
|
||||
width: auto;
|
||||
height: 50px;
|
||||
background-color: rgb(255, 183, 124);
|
||||
margin-top: 100px;
|
||||
}
|
||||
ul {
|
||||
width: auto;
|
||||
list-style-type: none;
|
||||
white-space: nowrap;
|
||||
padding: 0;
|
||||
}
|
||||
.menu li {
|
||||
float: left;
|
||||
}
|
||||
.menu li#self {
|
||||
margin: 0 0 0 979px;
|
||||
}
|
||||
.menu li a {
|
||||
color: white;
|
||||
text-decoration-line: none;
|
||||
display: block;
|
||||
padding: 14px 40px 15px 70px;
|
||||
}
|
||||
.menu li a:hover {
|
||||
background-color: rgba(248, 148, 66, 0.7);
|
||||
}
|
||||
.menu ul li a#firstPage {
|
||||
background-image: url("icons/首页.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 12%;
|
||||
background-position: 35px 16px;
|
||||
|
||||
}
|
||||
.menu ul li a#my {
|
||||
background-image: url("icons/管理员.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 12%;
|
||||
background-position: 35px 16px;
|
||||
}
|
||||
|
||||
/* 头像及账号资料 */
|
||||
.background {
|
||||
width: 700px;
|
||||
height: 200px;
|
||||
background-color: white;
|
||||
margin: 50px 0 0 280px;
|
||||
position: absolute;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.background .pic {
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
position: relative;
|
||||
top: 36px;
|
||||
left: 30px;
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
.background .pic a {
|
||||
background-image: url("icons/管理员头像.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100%;
|
||||
border-radius: 2px;
|
||||
display: block;
|
||||
padding: 64px;
|
||||
|
||||
}
|
||||
.background .backgroundText {
|
||||
width: 200px;
|
||||
height: auto;
|
||||
position: relative;
|
||||
top: -100px;
|
||||
left: 308px;
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
.background .logout input {
|
||||
width: 90px;
|
||||
height: 30px;
|
||||
border-style: none;
|
||||
border-radius: 2px;
|
||||
color: white;
|
||||
background-color: red;
|
||||
outline: none;
|
||||
position: relative;
|
||||
top: -135px;
|
||||
left: 550px;
|
||||
}
|
||||
.background .logout input:hover {
|
||||
transform: translate(0,-1px);
|
||||
-ms-transform: translate(0,-1px);
|
||||
-webkit-transform: translate(0,-1px);
|
||||
-o-transform: translate(0,-1px);
|
||||
-moz-transform: translate(0,-1px);
|
||||
box-shadow: 3px 3px 3px rgba(192, 192, 192, 0.801);
|
||||
}
|
||||
.background .logout input:active {
|
||||
background-color: rgba(255, 55, 55, 0.781);
|
||||
}
|
||||
.background:hover {
|
||||
transform: translate(0,-1px);
|
||||
-ms-transform: translate(0,-1px);
|
||||
-webkit-transform: translate(0,-1px);
|
||||
-o-transform: translate(0,-1px);
|
||||
-moz-transform: translate(0,-1px);
|
||||
box-shadow: 10px 10px 5px rgba(90, 90, 90, 0.3);
|
||||
}
|
||||
|
||||
/* 消息块 */
|
||||
.messages {
|
||||
width: 400px;
|
||||
height: auto;
|
||||
background-color: white;
|
||||
position: absolute;
|
||||
top: 420px;
|
||||
left: 280px;
|
||||
}
|
||||
.messages:hover {
|
||||
transform: translate(0,-1px);
|
||||
-ms-transform: translate(0,-1px);
|
||||
-webkit-transform: translate(0,-1px);
|
||||
-o-transform: translate(0,-1px);
|
||||
-moz-transform: translate(0,-1px);
|
||||
box-shadow: 10px 10px 5px rgb(90, 90, 90, 0.3);
|
||||
}
|
||||
.messages h2 {
|
||||
/* background-color: yellow; */
|
||||
padding: 0 0 0 20px;
|
||||
}
|
||||
.messages div {
|
||||
width: 180px;
|
||||
height: 140px;
|
||||
border-top: 1px rgb(224, 224, 224) solid;
|
||||
float: left;
|
||||
margin: 5px 5px 10px 12px;
|
||||
color: black;
|
||||
/* background: linear-gradient(left,rgb(248, 235, 233),rgba(245, 239, 230, 0.897));
|
||||
background: -webkit-linear-gradient(left,rgb(248, 235, 233),rgba(245, 239, 230, 0.897));
|
||||
background: -o-linear-gradient(left,rgb(248, 235, 233),rgba(245, 239, 230, 0.897));
|
||||
background: -moz-linear-gradient(left,rgb(248, 235, 233),rgba(245, 239, 230, 0.897)); */
|
||||
}
|
||||
.messages div h5 {
|
||||
margin: 2px 0 0 0;
|
||||
padding: 0 0 0 10px;
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
.messages div p {
|
||||
width: 170px;
|
||||
height: 105px;
|
||||
padding: 0 0 0 10px;
|
||||
/* background-color: rgb(255, 183, 124); */
|
||||
}
|
||||
|
||||
/* 修改密码 */
|
||||
.modify {
|
||||
width: 280px;
|
||||
height: 383px;
|
||||
background-color: white;
|
||||
position: absolute;
|
||||
top: 420px;
|
||||
left: 700px;
|
||||
}
|
||||
.modify:hover {
|
||||
transform: translate(0,-1px);
|
||||
-ms-transform: translate(0,-1px);
|
||||
-webkit-transform: translate(0,-1px);
|
||||
-o-transform: translate(0,-1px);
|
||||
-moz-transform: translate(0,-1px);
|
||||
box-shadow: 10px 10px 5px rgb(90, 90, 90, 0.3);
|
||||
}
|
||||
.modify h2 {
|
||||
padding: 0 0 0 20px;
|
||||
}
|
||||
.modify form input {
|
||||
position: relative;
|
||||
top: 25px;
|
||||
left: 40px;
|
||||
border: 1px rgb(224, 224, 224) solid;
|
||||
border-radius: 25px;
|
||||
text-align: center;
|
||||
outline: none;
|
||||
font-size: 16px;
|
||||
}
|
||||
.modify form input#new {
|
||||
margin-top: 30px;
|
||||
}
|
||||
.modify form input#submit {
|
||||
margin-top: 20px;
|
||||
margin-left: 80px;
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
color: white;
|
||||
background-color: rgb(255, 115, 0);
|
||||
border: none;
|
||||
}
|
||||
.modify form input#submit:hover {
|
||||
transform: translate(0,-1px);
|
||||
-ms-transform: translate(0,-1px);
|
||||
-webkit-transform: translate(0,-1px);
|
||||
-o-transform: translate(0,-1px);
|
||||
-moz-transform: translate(0,-1px);
|
||||
box-shadow: 3px 3px 3px rgba(192, 192, 192, 0.801);
|
||||
}
|
||||
.modify form input#submit:active {
|
||||
background-color: rgba(255, 115, 0, 0.3);
|
||||
}
|
||||
1466
web/html/css/styles.css
Normal file
122
web/html/css/views_style.css
Normal file
@@ -0,0 +1,122 @@
|
||||
body {
|
||||
height: 2000px;
|
||||
margin: 0px;
|
||||
background-image: url("images/天空1.jpg");
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
/* LOGO */
|
||||
.box1 {
|
||||
text-align: left;
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
left: 10px;
|
||||
user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
.upper {
|
||||
color: rgb(255, 115, 0);
|
||||
font-weight: bolder;
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -10px;
|
||||
}
|
||||
.lower {
|
||||
color: rgb(255, 183, 124);
|
||||
font-family: sans-serif;
|
||||
font-size: 45px;
|
||||
letter-spacing: -5px;
|
||||
}
|
||||
|
||||
/* 横向菜单栏 */
|
||||
.menu {
|
||||
width: auto;
|
||||
height: 50px;
|
||||
background-color: rgb(255, 183, 124);
|
||||
margin-top: 100px;
|
||||
}
|
||||
ul {
|
||||
width: auto;
|
||||
list-style-type: none;
|
||||
white-space: nowrap;
|
||||
padding: 0;
|
||||
}
|
||||
.menu li {
|
||||
float: left;
|
||||
}
|
||||
.menu li#self {
|
||||
margin: 0 0 0 979px;
|
||||
}
|
||||
.menu li a {
|
||||
color: white;
|
||||
text-decoration-line: none;
|
||||
display: block;
|
||||
padding: 14px 40px 15px 70px;
|
||||
}
|
||||
.menu li a:hover {
|
||||
background-color: rgba(248, 148, 66, 0.7);
|
||||
}
|
||||
.menu ul li a#firstPage {
|
||||
background-image: url("icons/首页.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 12%;
|
||||
background-position: 35px 16px;
|
||||
|
||||
}
|
||||
.menu ul li a#my {
|
||||
background-image: url("icons/管理员.png");
|
||||
background-repeat: no-repeat;
|
||||
background-size: 12%;
|
||||
background-position: 35px 16px;
|
||||
}
|
||||
|
||||
/* 资料卡 */
|
||||
.info {
|
||||
width: 450px;
|
||||
height: 350px;
|
||||
background-color: white;
|
||||
position: absolute;
|
||||
top: 170px;
|
||||
left: 140px;
|
||||
}
|
||||
.info h2 {
|
||||
padding: 0 0 0 20px;
|
||||
color: rgb(255, 115, 0);
|
||||
}
|
||||
.info span {
|
||||
position: relative;
|
||||
left: 20px;
|
||||
padding: 10px 0 10px 0;
|
||||
/* background-color: yellow; */
|
||||
}
|
||||
|
||||
/* 房间实况 */
|
||||
.room {
|
||||
width: 450px;
|
||||
height: 350px;
|
||||
background-color: white;
|
||||
position: absolute;
|
||||
top: 170px;
|
||||
left: 660px;
|
||||
}
|
||||
.room h2 {
|
||||
padding: 0 0 0 20px;
|
||||
color: rgb(255, 115, 0);
|
||||
}
|
||||
|
||||
/* 健康监测卡 */
|
||||
.health {
|
||||
width: 450px;
|
||||
height: 350px;
|
||||
background-color: white;
|
||||
position: absolute;
|
||||
top: 580px;
|
||||
left: 140px;
|
||||
}
|
||||
.health h2 {
|
||||
padding: 0 0 0 20px;
|
||||
color: rgb(255, 115, 0);
|
||||
}
|
||||
28
web/html/deletePeople.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Old People Home - 老人注销</title>
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="css/icons/favicon.png">
|
||||
<link rel="stylesheet" href="css/deletePeople_style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="box1">
|
||||
<span class="upper">O</span>
|
||||
<span class="lower">ld</span>
|
||||
<span class="upper">P</span>
|
||||
<span class="lower">eople</span>
|
||||
<span class="upper">H</span>
|
||||
<span class="lower">ome</span>
|
||||
</div>
|
||||
<div class="delete">
|
||||
<h2>注销老人</h2>
|
||||
<form action="firstPage.html">
|
||||
<input type="text" placeholder="请输入要注销的老人的ID"><br>
|
||||
<input type="submit" value="OK" id="submit">
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
76
web/html/firstPage.html
Normal file
@@ -0,0 +1,76 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Old People Home</title>
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="css/icons/favicon.png">
|
||||
<link rel="stylesheet" href="css/firstPage_style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="box1">
|
||||
<span class="upper">O</span>
|
||||
<span class="lower">ld</span>
|
||||
<span class="upper">P</span>
|
||||
<span class="lower">eople</span>
|
||||
<span class="upper">H</span>
|
||||
<span class="lower">ome</span>
|
||||
</div>
|
||||
<div class="menu">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="firstPage.html" id="firstPage">首页</a>
|
||||
</li>
|
||||
<li id="self">
|
||||
<a href="personal.html" id="my">个人</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- js写一个空房间显示 -->
|
||||
<div class="box2">
|
||||
<table>
|
||||
<tr>
|
||||
<td><a href="views.html">001</a></td>
|
||||
<td><a href="#">002</a></td>
|
||||
<td><a href="#">003</a></td>
|
||||
<td class="last"><a href="#">004</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#">005</a></td>
|
||||
<td><a href="#">006</a></td>
|
||||
<td><a href="#">007</a></td>
|
||||
<td class="last"><a href="#">008</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#">009</a></td>
|
||||
<td><a href="#">010</a></td>
|
||||
<td><a href="#">011</a></td>
|
||||
<td class="last"><a href="#">012</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#">013</a></td>
|
||||
<td><a href="#">014</a></td>
|
||||
<td><a href="#">015</a></td>
|
||||
<td class="last"><a href="#">016</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="#">017</a></td>
|
||||
<td><a href="#">018</a></td>
|
||||
<td><a href="#">019</a></td>
|
||||
<td class="last"><a href="#">020</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="guide">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="addPeople.html">老人注册</a><br>
|
||||
</li>
|
||||
<li id="delete">
|
||||
<a href="deletePeople.html">老人注销</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
13
web/html/js/addPeople.js
Normal file
@@ -0,0 +1,13 @@
|
||||
function changeDiv() {
|
||||
register_1 = document.getElementById("register_1")
|
||||
register_2 = document.getElementById("register_2")
|
||||
if(register_1.style.display === "block"&®ister_2.style.display === "none"){
|
||||
register_1.style.display = "none"
|
||||
register_2.style.display = "block"
|
||||
console.log(register_1.style.display)
|
||||
}
|
||||
else if(register_1.style.display === "none"&®ister_2.style.display === "block") {
|
||||
register_1.style.display = "block"
|
||||
register_2.style.display = "none"
|
||||
}
|
||||
}
|
||||
26
web/html/js/login.js
Normal file
@@ -0,0 +1,26 @@
|
||||
var http = require('http');
|
||||
|
||||
// 用于请求的选项
|
||||
var options = {
|
||||
host: '39.105.65.209',
|
||||
port: '8080',
|
||||
path: '/login.html'
|
||||
};
|
||||
|
||||
// 处理响应的回调函数
|
||||
var callback = function (response) {
|
||||
// 不断更新数据
|
||||
var body = '';
|
||||
response.on('data',function (data) {
|
||||
body +=data;
|
||||
});
|
||||
|
||||
response.on('end',function () {
|
||||
// 数据接收完成
|
||||
console.log(body);
|
||||
});
|
||||
}
|
||||
|
||||
// 向服务器端发送请求
|
||||
var request = http.request(options,callback);
|
||||
request.end();
|
||||
75
web/html/personal.html
Normal file
@@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Old People Home - 个人中心</title>
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="css/icons/favicon.png">
|
||||
<link rel="stylesheet" href="css/personal_style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="box1">
|
||||
<span class="upper">O</span>
|
||||
<span class="lower">ld</span>
|
||||
<span class="upper">P</span>
|
||||
<span class="lower">eople</span>
|
||||
<span class="upper">H</span>
|
||||
<span class="lower">ome</span>
|
||||
</div>
|
||||
<div class="menu">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="firstPage.html" id="firstPage">首页</a>
|
||||
</li>
|
||||
<li id="self">
|
||||
<a href="personal.html" id="my">个人</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="background">
|
||||
<!-- js跳转 -->
|
||||
<form action="">
|
||||
<div class="pic">
|
||||
<a href="#"></a>
|
||||
</div>
|
||||
<div class="backgroundText">
|
||||
<span><h2>管理员</h2></span><br>
|
||||
<span><p>root</p></span>
|
||||
</div>
|
||||
<div class="logout">
|
||||
<input type="submit" value="安全退出" href="login.html">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="messages">
|
||||
<h2>消息</h2>
|
||||
<div>
|
||||
<h5>张小王</h5>
|
||||
<p>消息内容</p>
|
||||
</div>
|
||||
<div>
|
||||
<h5>子女姓名</h5>
|
||||
<p>消息内容</p>
|
||||
</div>
|
||||
<div>
|
||||
<h5>子女姓名</h5>
|
||||
<p>消息内容</p>
|
||||
</div>
|
||||
<div>
|
||||
<h5>子女姓名</h5>
|
||||
<p>消息内容</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modify">
|
||||
<h2>修改密码</h2>
|
||||
<div>
|
||||
<form action="personal.html">
|
||||
<input type="password" placeholder="原密码"><br><br><br>
|
||||
<input type="password" id="new" placeholder="新密码"><br><br><br>
|
||||
<input type="submit" id="submit" value="OK">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
59
web/html/views.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Old People Home - 查看</title>
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="css/icons/favicon.png">
|
||||
<link rel="stylesheet" href="css/views_style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="box1">
|
||||
<span class="upper">O</span>
|
||||
<span class="lower">ld</span>
|
||||
<span class="upper">P</span>
|
||||
<span class="lower">eople</span>
|
||||
<span class="upper">H</span>
|
||||
<span class="lower">ome</span>
|
||||
</div>
|
||||
<div class="menu">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="firstPage.html" id="firstPage">首页</a>
|
||||
</li>
|
||||
<li id="self">
|
||||
<a href="personal.html" id="my">个人</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="info">
|
||||
<h2>老人资料卡</h2>
|
||||
<span>身份证号码</span><br>
|
||||
<span>姓名</span><br>
|
||||
<span>性别</span><br>
|
||||
<span>生日</span><br>
|
||||
<span>账号</span><br>
|
||||
<span>电话</span><br>
|
||||
<span>亲属</span>
|
||||
<table>
|
||||
<tr>
|
||||
<td>姓名</td>
|
||||
<td>关系</td>
|
||||
<td>联系电话</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="room">
|
||||
<h2>房间实况</h2>
|
||||
<span>温度</span><br>
|
||||
<span>湿度</span><br>
|
||||
<span>是否有人</span><br>
|
||||
<span>时间</span>
|
||||
</div>
|
||||
<div class="health">
|
||||
<h2>健康监测卡</h2>
|
||||
<p>折线图</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||