absence 5 years ago
commit 510e7463de

@ -0,0 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>修改</title>
</head>
<body>
<div class="layui-main">
<div class="site-content">
<br><br>
<h1 class="site-h1">修改信息</h1>
<br><br>
<form class="layui-form" action="alter" method="post">
<input type="hidden" name = 'patient_id' value="{{Patient.patient_id}}">
<div class="layui-form-item">
<label class="layui-form-label">姓名</label>
<div class="layui-input-block">
<input type="text" name="name" required lay-verify="required" placeholder="请输入省份" autocomplete="off"
class="layui-input" value="{{Patient.name}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">治疗点</label>
<div class="layui-input-block">
<input type="number" name="treatment_point_id" required lay-verify="required" placeholder="请输入城市"
autocomplete="off"
class="layui-input" value="{{Patient.treatment_point_id}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">电话</label>
<div class="layui-input-block">
<input type="number" name="phone" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input" value="{{Patient.phone}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">地区编号</label>
<div class="layui-input-block">
<input type="number" name="area_id" required lay-verify="required" placeholder="请输入城市" autocomplete="off"
class="layui-input" value="{{Patient.area_id}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">城市编号</label>
<div class="layui-input-block">
<input type="number" name="city_id" required lay-verify="required" placeholder="请输入人数"
autocomplete="off" class="layui-input" value="{{Patient.city_id}}">
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>修改</title>
</head>
<body>
<div class="layui-main">
<div class="site-content">
<br><br>
<h1 class="site-h1">修改信息</h1>
<br><br>
<form class="layui-form" action="alter2" method="post">
<input type="hidden" name = 'patient_id' value="{{Report.patient_id}}">
<div class="layui-form-item">
<label class="layui-form-label">编号</label>
<div class="layui-input-block">
<input type="number" name="patient_id" required lay-verify="required" placeholder="请输入省份" autocomplete="off"
class="layui-input" value="{{Report.patient_id}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">时间</label>
<div class="layui-input-block">
<input type="text" name="update_time" required lay-verify="required" placeholder="请输入城市"
autocomplete="off"
class="layui-input" value="{{Report.update_time}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">症状</label>
<div class="layui-input-block">
<input type="text" name="situation" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input" value="{{Report.situation}}">
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,50 @@
<br><br>
<h1 class="site-h1">修改信息</h1>
<br><br>
<form class="layui-form" action="alter3" method="post">
<input type="hidden" name = 'worker_id' value="{{Med.worker_id}}">
<div class="layui-form-item">
<label class="layui-form-label">编号</label>
<div class="layui-input-block">
<input type="number" name="patient_id" required lay-verify="required" placeholder="请输入省份" autocomplete="off"
class="layui-input" value="{{Med.worker_id}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">姓名</label>
<div class="layui-input-block">
<input type="text" name="name" required lay-verify="required" placeholder="请输入城市"
autocomplete="off"
class="layui-input" value="{{Med.name}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">治疗点</label>
<div class="layui-input-block">
<input type="number" name="treatment_point_id" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input" value="{{Med.treatment_point_id}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">电话</label>
<div class="layui-input-block">
<input type="number" name="phone" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input" value="{{Med.phone}}">
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>修改</title>
</head>
<body>
<div class="layui-main">
<div class="site-content">
<br><br>
<h1 class="site-h1">修改信息</h1>
<br><br>
<form class="layui-form" action="alter4" method="post">
<input type="hidden" name = 'treatment_point_id' value="{{Tp.treatment_point_id}}">
<div class="layui-form-item">
<label class="layui-form-label">医院</label>
<div class="layui-input-block">
<input type="text" name="name" required lay-verify="required" placeholder="请输入省份" autocomplete="off"
class="layui-input" value="{{Tp.name}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">总床位</label>
<div class="layui-input-block">
<input type="number" name="total_position" required lay-verify="required" placeholder="请输入城市"
autocomplete="off"
class="layui-input" value="{{Tp.total_position}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">地区编号</label>
<div class="layui-input-block">
<input type="number" name="area_id" required lay-verify="required" placeholder="请输入城市" autocomplete="off"
class="layui-input" value="{{Tp.area_id}}">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">城市编号</label>
<div class="layui-input-block">
<input type="number" name="city_id" required lay-verify="required" placeholder="请输入人数"
autocomplete="off" class="layui-input" value="{{Tp.city_id}}">
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>

347
app.py

@ -0,0 +1,347 @@
from flask import Flask,render_template,request,redirect
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
db = SQLAlchemy(app)
#设置数据库连接
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://root:@127.0.0.1:3306/information_of_city'
class city_count(db.Model):
#表模型
city= db.Column(db.Integer)
area = db.Column(db.Integer,primary_key=True,autoincrement=True)
patient_count = db.Column(db.Integer)
suspected = db.Column(db.Integer)
no_cases = db.Column(db.Integer)
mild_cases = db.Column(db.Integer)
severe_cases = db.Column(db.Integer)
class treatment_count(db.Model):
#表模型
name= db.Column(db.String(255))
patients = db.Column(db.Integer)
remaining_position = db.Column(db.Integer)
total_position = db.Column(db.Integer,primary_key=True,autoincrement=True)
total_worker = db.Column(db.Integer)
class treatment_point(db.Model):
#表模型
treatment_point_id= db.Column(db.Integer,primary_key=True,autoincrement=True)
name = db.Column(db.String(255))
total_position = db.Column(db.Integer)
area_id = db.Column(db.Integer)
city_id = db.Column(db.Integer)
class patient(db.Model):
#表模型
patient_id= db.Column(db.Integer,primary_key=True,autoincrement=True)
name = db.Column(db.String(255))
treatment_point_id = db.Column(db.Integer)
phone = db.Column(db.Integer)
area_id = db.Column(db.Integer)
city_id = db.Column(db.Integer)
class medical_worker(db.Model):
#表模型
worker_id= db.Column(db.Integer,primary_key=True,autoincrement=True)
name = db.Column(db.String(255))
treatment_point_id = db.Column(db.Integer)
phone = db.Column(db.Integer)
class report(db.Model):
#表模型
patient_id = db.Column(db.Integer,primary_key=True,autoincrement=True)
update_time = db.Column(db.String(255))
situation = db.Column(db.String(255))
@app.route("/index7/")
def selectAll7():
RE = report.query.order_by(report.patient_id).all()
return render_template("index7.html",R_E = RE)
@app.route('/insert2',methods=['GET','POST'])
def insert2():
#进行添加操作
patient_id = request.form['patient_id']
update_time = request.form['update_time']
situation = request.form['situation']
Report = report(patient_id=patient_id,update_time=update_time,situation =situation)
db.session.add(Report)
db.session.commit()
#添加完成重定向至主页
return redirect('/index7/')
@app.route("/insert2_page")
def insert2_page():
#跳转至添加信息页面
return render_template("insert2.html")
#删除数据
@app.route("/delete2",methods=['GET'])
def delete2():
#操作数据库得到目标数据before_number表示删除之前的数量after_name表示删除之后的数量
patient_id = request.args.get("patient_id")
Report = report.query.filter_by(patient_id=patient_id).first()
db.session.delete(Report)
db.session.commit()
return redirect('/')
#修改操作
@app.route("/alter2",methods=['GET','POST'])
def alter2():
# 可以通过请求方式来改变处理该请求的具体操作
# 比如用户访问/alter页面 如果通过GET请求则返回修改页面 如果通过POST请求则使用修改操作
if request.method == 'GET':
patient_id = request.args.get('patient_id')
update_time = request.args.get('update_time')
situation = request.args.get('situation')
Report = report(patient_id=patient_id, update_time=update_time, situation=situation)
return render_template("alter2.html",Report = Report)
else:
#接收参数,修改数据
patient_id = request.form['patient_id']
update_time = request.form['update_time']
situation = request.form['situation']
Report = report.query.filter_by(patient_id=patient_id).first()
Report.patient_id =patient_id
Report.update_time = update_time
Report.situation = situation
db.session.commit()
return redirect('/index7')
@app.route("/index6/")
def selectAll6():
MW = medical_worker.query.order_by(medical_worker.worker_id).all()
return render_template("index6.html",M_W = MW)
@app.route('/insert3',methods=['GET','POST'])
def insert3():
#进行添加操作
worker_id = request.form['worker_id']
name = request.form['name']
treatment_point_id = request.form['treatment_point_id']
phone = request.form['phone']
Med = medical_worker(worker_id=worker_id,name=name,treatment_point_id =treatment_point_id,phone=phone)
db.session.add(Med)
db.session.commit()
#添加完成重定向至主页
return redirect('/index6/')
@app.route("/insert3_page")
def insert3_page():
#跳转至添加信息页面
return render_template("insert3.html")
#删除数据
@app.route("/delete3",methods=['GET'])
def delete3():
#操作数据库得到目标数据before_number表示删除之前的数量after_name表示删除之后的数量
worker_id = request.args.get("worker_id")
Med = medical_worker.query.filter_by(worker_id=worker_id).first()
db.session.delete(Med)
db.session.commit()
return redirect('/')
#修改操作
@app.route("/alter3",methods=['GET','POST'])
def alter3():
# 可以通过请求方式来改变处理该请求的具体操作
# 比如用户访问/alter页面 如果通过GET请求则返回修改页面 如果通过POST请求则使用修改操作
if request.method == 'GET':
worker_id = request.args.get('worker_id')
name = request.args.get('name')
treatment_point_id = request.args.get('treatment_point_id')
phone = request.args.get('phone')
Med = medical_worker(worker_id=worker_id, name=name, treatment_point_id=treatment_point_id,phone=phone)
return render_template("alter3.html",Med = Med)
else:
#接收参数,修改数据
worker_id = request.form['worker_id']
name = request.form['name']
treatment_point_id = request.form['treatment_point_id']
phone = request.form['phone']
Med = medical_worker.query.filter_by(worker_id=worker_id).first()
Med.worker_id =worker_id
Med.name = name
Med.treatment_point_id = treatment_point_id
Med.phone = phone
db.session.commit()
return redirect('/index6')
@app.route("/index5/")
def selectAll5():
PA = patient.query.order_by(patient.patient_id).all()
return render_template("index5.html",P_A = PA)
#添加数据
@app.route('/insert',methods=['GET','POST'])
def insert():
#进行添加操作
patient_id = request.form['patient_id']
name = request.form['name']
treatment_point_id = request.form['treatment_point_id']
phone = request.form['phone']
area_id = request.form['area_id']
city_id = request.form['city_id']
Patient = patient(patient_id=patient_id,name=name,treatment_point_id=treatment_point_id,phone=phone,area_id=area_id,city_id=city_id)
db.session.add(Patient)
db.session.commit()
#添加完成重定向至主页
return redirect('/index5')
@app.route("/insert_page")
def insert_page():
#跳转至添加信息页面
return render_template("insert.html")
#删除数据
@app.route("/delete",methods=['GET'])
def delete():
#操作数据库得到目标数据before_number表示删除之前的数量after_name表示删除之后的数量
patient_id = request.args.get("patient_id")
Patient = patient.query.filter_by(patient_id=patient_id).first()
db.session.delete(Patient)
db.session.commit()
return redirect('/index5')
#修改操作
@app.route("/alter",methods=['GET','POST'])
def alter():
# 可以通过请求方式来改变处理该请求的具体操作
# 比如用户访问/alter页面 如果通过GET请求则返回修改页面 如果通过POST请求则使用修改操作
if request.method == 'GET':
patient_id = request.args.get('patient_id')
name = request.args.get('name')
treatment_point_id = request.args.get('treatment_point_id')
phone = request.args.get('phone')
area_id = request.args.get('area_id ')
city_id = request.args.get('city_id')
Patient = patient(patient_id=patient_id, name=name, treatment_point_id=treatment_point_id,
phone=phone, area_id=area_id, city_id=city_id)
return render_template("alter.html",Patient = Patient)
else:
#接收参数,修改数据
patient_id = request.form['patient_id']
name = request.form['name']
treatment_point_id = request.form['treatment_point_id']
phone = request.form['phone']
area_id = request.form['area_id ']
city_id = request.form['city_id']
Patient = patient.query.filter_by(patient_id=patient_id).first()
Patient.patient_id =patient_id
Patient.name = name
Patient.treatment_point_id = treatment_point_id
Patient.phone = phone
Patient.area_id = area_id
Patient.city_id = city_id
db.session.commit()
return redirect('/index5/')
@app.route("/index4/")
def selectAll4():
TP = treatment_point.query.order_by(treatment_point.treatment_point_id).all()
return render_template("index4.html",T_P = TP)
@app.route("/index45/")
def selectAll45():
TP = treatment_point.query.order_by(treatment_point.treatment_point_id).all()
return render_template("index45.html",T_P = TP)
#添加数据
@app.route('/insert45',methods=['GET','POST'])
def insert4():
#进行添加操作
treatment_point_id = request.form['treatment_point_id']
name = request.form['name']
total_position = request.form['total_position']
area_id = request.form['area_id']
city_id = request.form['city_id']
Tp = treatment_point(treatment_point_id=treatment_point_id,name=name,total_position =total_position,area_id =area_id ,city_id=city_id)
db.session.add(Tp)
db.session.commit()
#添加完成重定向至主页
return redirect('/index45/')
@app.route("/insert4_page")
def insert4_page():
#跳转至添加信息页面
return render_template("insert4.html")
#删除数据
@app.route("/delete4",methods=['GET'])
def delete4():
#操作数据库得到目标数据before_number表示删除之前的数量after_name表示删除之后的数量
treatment_point_id = request.args.get("treatment_point_id")
Tp = treatment_point.query.filter_by(treatment_point_id=treatment_point_id).first()
db.session.delete(Tp)
db.session.commit()
return redirect('/')
#修改操作
@app.route("/alter4",methods=['GET','POST'])
def alter4():
# 可以通过请求方式来改变处理该请求的具体操作
# 比如用户访问/alter页面 如果通过GET请求则返回修改页面 如果通过POST请求则使用修改操作
if request.method == 'GET':
treatment_point_id = request.args.get('treatment_point_id')
name = request.args.get('name')
total_position = request.args.get('total_position')
area_id = request.args.get('area_id ')
city_id = request.args.get('city_id')
Tp = treatment_point(treatment_point_id=treatment_point_id, name=name, total_position=total_position,
area_id=area_id, city_id=city_id)
return render_template("alter4.html",Tp = Tp)
else:
#接收参数,修改数据
treatment_point_id = request.form['treatment_point_id']
name = request.form['name']
total_position = request.form['total_position']
area_id = request.form['area_id ']
city_id = request.form['city_id']
Tp = treatment_point.query.filter_by(treatment_point_id=treatment_point_id).first()
Tp.treatment_point_id =treatment_point_id
Tp.name = name
Tp.total_position = total_position
Tp.area_id = area_id
Tp.city_id = city_id
db.session.commit()
return redirect('/index45')
@app.route("/index3/")
def selectAll3():
TP = treatment_count.query.order_by(treatment_count.total_position).all()
return render_template("index3.html",T_P= TP)
@app.route("/index2/")
def selectAll2():
cityPost = city_count.query.order_by(city_count.area).all()
return render_template("index2.html",city_Post = cityPost)
@app.route("/login")
def login_page():
return render_template("登录.html")
@app.route("/tourist")
def login_tourist():
return render_template("游客导航界面.html")
@app.route("/doctor")\
def login_doctor():
return render_template("医务工作者导航界面.html")
@app.route("/master")
def login_master():
return render_template("决策者导航界面.html")
@app.route('/')
def index():
return login_page()
if __name__ == "__main__":
app.run()

@ -0,0 +1,210 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://127.0.0.1:5000/">
<head>
<meta charset="utf-8">
<title>login</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
}
html{
background-image:url(/static/background.jpg);
}
#wrap {
height: 75%;
width: 100;
background-image:url(/static/background.jpg);
background-repeat: no-repeat;
background-position: center center;
position: relative;
}
#head {
height: 46px;
width: 100;
background-color: #66CCCC;
text-align: center;
position: relative;
}
#wrap .logGet {
height: 408px;
width: 368px;
position: absolute;
background-color: #FFFFFF;
top: 20%;
right: 15%;
}
.logC a button {
width: 100%;
height: 45px;
background-color: #ee7700;
border: none;
color: white;
font-size: 18px;
}
.logGet .logD.logDtip .p1 {
display: inline-block;
font-size: 28px;
margin-top: 30px;
width: 86%;
}
#wrap .logGet .logD.logDtip {
width: 86%;
border-bottom: 1px solid #ee7700;
margin-bottom: 60px;
margin-top: 0px;
margin-right: auto;
margin-left: auto;
}
.logGet .lgD img {
position: absolute;
top: 12px;
left: 8px;
}
.logGet .lgD input {
width: 100%;
height: 42px;
text-indent: 2.5rem;
}
#wrap .logGet .lgD {
width: 86%;
position: relative;
margin-bottom: 30px;
margin-top: 30px;
margin-right: auto;
margin-left: auto;
}
#wrap .logGet .logC {
width: 86%;
margin-top: 0px;
margin-right: auto;
margin-bottom: 0px;
margin-left: auto;
}
title {
font-family: "宋体";
color: #FFFFFF;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); /* 使用css3的transform来实现 */
font-size: 36px;
height: 40px;
width: 30%;
}
copyright {
font-family: "宋体";
color: #FFFFFF;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); /* 使用css3的transform来实现 */
height: 60px;
width: 40%;
text-align:center;
}
.copyright .img .icon {
display: inline-block;
width: 24px;
height: 24px;
margin-left: 22px;
vertical-align: middle;
background-image: url(th:'@{/static/background.jpg}');
background-repeat: no-repeat;
vertical-align: middle;
margin-right: 5px;
}
.copyright .img .icon1 {
display: inline-block;
width: 24px;
height: 24px;
margin-left: 22px;
vertical-align: middle;
background-image: url(background.jpg);
background-repeat: no-repeat;
vertical-align: middle;
margin-right: 5px;
}
.copyright .img .icon2 {
display: inline-block;
width: 24px;
height: 24px;
margin-left: 22px;
vertical-align: middle;
background-image: url(background.jpg);
background-repeat: no-repeat;
vertical-align: middle;
margin-right: 5px;
}
</style>
</head>
<body>
<div class="header" id="head">
<div class="title">疫情实时追踪</div>
</div>
<div class="wrap" id="wrap">
<div class="logGet">
<!-- 头部提示信息 -->
<div class="logD logDtip">
<p class="p1">登录</p>
</div>
<!-- 输入框 -->
<div class="lgD">
<img th:src="@{/static/2.png}" src="../static/user.png" width="20" height="20" alt=""/>
<input type="text"
placeholder="输入用户名" name="userAccount" id="userAccount" value=""/>
<span ></span>
</div>
<div class="lgD">
<img th:src="@{/static/pwd.png}" src="../static/3.png" width="20" height="20" alt=""/>
<input type="password"
placeholder="输入用户密码" name="userPwd" id="userPwd"/>
<span ></span>
</div>
<div class="logC">
<a href="http://127.0.0.1:5000/" id="loginButton"><button>登 录</button></a>
</div>
</div>
</div>
<div class="wrap" id="wrap">
<div class="logGet">
<!-- 头部提示信息 -->
<div class="logD logDtip">
<p class="p1">登录</p>
</div>
<!-- 输入框 -->
<div class="lgD">
<img th:src="@{/static/2.png}" src="../static/user.png" width="20" height="20" alt=""/>
<input type="text"
placeholder="输入用户名" name="userAccount" id="userAccount" value=""/>
<span ></span>
</div>
<div class="lgD">
<img th:src="@{/static/pwd.png}" src="../static/3.png" width="20" height="20" alt=""/>
<input type="password"
placeholder="输入用户密码" name="userPwd" id="userPwd"/>
<span ></span>
</div>
<div class="logC">
<a href="http://127.0.0.1:5000/" id="loginButton"><button>登 录</button></a>
</div>
</div>
</div>
</body>
</html>

@ -0,0 +1,112 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>新型冠状病毒肺炎疫情实时更新</title>
<link rel="stylesheet" href="/static/layui/css/layui.css">
<style>
body{background-image: url("/static/background1.jpg");
background-repeat: no-repeat;
background-size: 100% auto;
background-position: top;
background-clip:padding-box;
}
copyright {
font-family: "宋体";
color: #FFFFFF;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); /* 使用css3的transform来实现 */
font-size: 36px;
height: 40px;
width: 30%;
}
</style>
</head>
<body>
<h1 align="center" colspan="10">疫情实时大数据报告</h1>
<div align="center">
<br>
<br>
<table id = 'tabledemo'lay-filter="test">
<table width="600" cellpadding="5" align="center" border="1" cellspacing="0">
<th align="center" colspan="9">各市病例统计</th>
<tr>
<th lay-data="{field:'name', width:100}">城市名</th>
<th lay-data="{field:'today_confirm'}">新增确诊</th>
<th lay-data="{field:'total_confirm'}">现有确诊</th>
<th lay-data="{field:'total_suspect'}">疑似病例</th>
<th lay-data="{field:'total_dead'}">死亡人数</th>
<th lay-data="{field:'total_heal'}">治愈数</th>
<th lay-data="{field:'total_deadRate'}">死亡率</th>
<th lay-data="{field:'total_healRate'}">治愈率</th>
<th lay-data="{fixed: 'right', width: 160, align:'center', toolbar: '#barDemo'}"></th>
</tr>
{% for item in city_List %}
<tr>
<td>{{item.name}}</td>
<td>{{item.today_confirm}}</td>
<td>{{item.total_confirm}}</td>
<td>{{item.total_suspect}}</td>
<td>{{item.total_dead}}</td>
<td>{{item.total_heal}}</td>
<td>{{item.total_deadRate}}</td>
<td>{{item.total_healRate}}</td>
</tr>
{% endfor %}
</table>
<br>
<table id = 'tabledemo'lay-filter="test">
<table width="800" cellpadding="5" align="center" border="1" cellspacing="0">
<th align="center" colspan="9">各省病例统计</th>
<tr>
<th lay-data="{field:'name', width:100}">省份</th>
<th lay-data="{field:'today_confirm'}">新增确诊</th>
<th lay-data="{field:'total_confirm'}">现有确诊</th>
<th lay-data="{field:'total_suspect'}">疑似病例</th>
<th lay-data="{field:'total_dead'}">死亡人数</th>
<th lay-data="{field:'total_heal'}">治愈数</th>
<th lay-data="{field:'total_deadRate'}">死亡率</th>
<th lay-data="{field:'total_healRate'}">治愈率</th>
<th lay-data="{fixed: 'right', width: 160, align:'center', toolbar: '#barDemo'}"></th>
</tr>
</thead>
<tbody>
{% for item in province_List %}
<tr>
<td>{{item.prov_name}}</td>
<td>{{item.today_confirm}}</td>
<td>{{item.total_confirm}}</td>
<td>{{item.total_suspect}}</td>
<td>{{item.total_dead}}</td>
<td>{{item.total_heal}}</td>
<td>{{item.total_deadRate}}</td>
<td>{{item.total_healRate}}</td>
<td><a href='/alter?prov_id={{item.prov_id}}&prov_name={{ item.prov_name }}&today_confirm={{ item.today_confirm }}&total_confirm={{item.total_confirm}}&total_suspect={{item.total_suspect}}&total_dead={{item.total_dead}}&total_heal={{item.total_heal}}&total_deadRate={{item.total_deadRate}}&total_healRate={{item.total_healRate}}'>编辑</a>
<a href="/delete?id={{ item.prov_id }}">删除</a> </td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<script type="text/html" id="barDemo">
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<script src="/static/layui/layui.js"></script>
<script>
layui.use('table',function () {
var table = layui.table;
table.init('test', {
height: 1000,
width:600,
limit:100
});
</script>
</body>
</html>

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>新型冠状病毒肺炎疫情实时更新</title>
</head>
<body>
<h1 align="center" colspan="10">疫情实时大数据报告</h1>
<div align="center">
<br>
<br>
<table id = 'tabledemo'lay-filter="test">
<table width="600" cellpadding="5" align="center" border="1" cellspacing="0">
<th align="center" colspan="9">武汉市各区病例统计</th>
<tr>
<th lay-data="{field:'city', width:100}">城市</th>
<th lay-data="{field:'area'}"></th>
<th lay-data="{field:'patient_count'}">病人数量</th>
<th lay-data="{field:'suspected'}">疑似病例</th>
<th lay-data="{field:'no_cases'}">无症状</th>
<th lay-data="{field:'mild_cases'}">轻症</th>
<th lay-data="{field:'severe_cases'}">重症</th>
<th lay-data="{fixed: 'right', width: 160, align:'center', toolbar: '#barDemo'}"></th>
</tr>
{% for item in city_Post %}
<tr>
<td>{{item.city}}</td>
<td>{{item.area}}</td>
<td>{{item.patient_count}}</td>
<td>{{item.suspected}}</td>
<td>{{item.no_cases}}</td>
<td>{{item.mild_cases}}</td>
<td>{{item.severe_cases}}</td>
</tr>
{% endfor %}
</table>
</body>
</html>

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>新型冠状病毒肺炎疫情实时更新</title>
</head>
<body>
<h1 align="center" colspan="10">疫情实时大数据报告</h1>
<div align="center">
<br>
<br>
<table id = 'tabledemo'lay-filter="test">
<table width="600" cellpadding="5" align="center" border="1" cellspacing="0">
<th align="center" colspan="9">医院病例统计</th>
<tr>
<th lay-data="{field:'name', width:100}">医院</th>
<th lay-data="{field:'patients'}">病人数</th>
<th lay-data="{field:'remaining_position'}">剩余床位</th>
<th lay-data="{field:'total_position'}">总床位</th>
<th lay-data="{field:'total_worker'}">工作人员</th>
<th lay-data="{fixed: 'right', width: 160, align:'center', toolbar: '#barDemo'}"></th>
</tr>
{% for item in T_P %}
<tr>
<td>{{item.name}}</td>
<td>{{item.patients}}</td>
<td>{{item.remaining_position}}</td>
<td>{{item.total_position}}</td>
<td>{{item.total_worker}}</td>
</tr>
{% endfor %}
</table>
</body>
</html>

@ -0,0 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>新型冠状病毒肺炎疫情实时更新</title>
</head>
<body>
<h1 align="center" colspan="10">疫情实时大数据报告</h1>
<div align="center">
<br>
<br>
<table id = 'tabledemo'lay-filter="test">
<table width="600" cellpadding="5" align="center" border="1" cellspacing="0">
<th align="center" colspan="9">医院病例统计</th>
<tr>
<th lay-data="{field:'treatment_point_id', width:100}">编号</th>
<th lay-data="{field:'name'}">医院</th>
<th lay-data="{field:'total_position'}">总床位</th>
<th lay-data="{field:'area_id'}">地区编号</th>
<th lay-data="{field:'city_id'}">城市编号</th>
<th lay-data="{fixed: 'right', width: 160, align:'center', toolbar: '#barDemo'}"></th>
</tr>
{% for item in T_P %}
<tr>
<td>{{item.treatment_point_id}}</td>
<td>{{item.name}}</td>
<td>{{item.total_position}}</td>
<td>{{item.area_id}}</td>
<td>{{item.city_id}}</td>
</tr>
{% endfor %}
</table>
</body>
</html>

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>新型冠状病毒肺炎疫情实时更新</title>
</head>
<body>
<h1 align="center" colspan="10">疫情实时大数据报告</h1>
<div align="center">
<br>
<a href="/insert4_page">添加收治点</a>
<br>
<br>
<table id = 'tabledemo'lay-filter="test">
<table width="600" cellpadding="5" align="center" border="1" cellspacing="0">
<th align="center" colspan="9">医院病例统计</th>
<tr>
<th lay-data="{field:'treatment_point_id', width:100}">编号</th>
<th lay-data="{field:'name'}">医院</th>
<th lay-data="{field:'total_position'}">总床位</th>
<th lay-data="{field:'area_id'}">地区编号</th>
<th lay-data="{field:'city_id'}">城市编号</th>
<th lay-data="{fixed: 'right', width: 160, align:'center', toolbar: '#barDemo'}"></th>
</tr>
{% for item in T_P %}
<tr>
<td>{{item.treatment_point_id}}</td>
<td>{{item.name}}</td>
<td>{{item.total_position}}</td>
<td>{{item.area_id}}</td>
<td>{{item.city_id}}</td>
<td><a href='/alter4?treatment_point_id={{item.treatment_point_id}}&name={{ item.name }}&total_position={{ item.total_position }}&area_id={{item.area_id}}&city_id={{item.city_id}}'>编辑</a>
<a href="/delete4?treatment_point_id={{ item.treatment_point_id }}">删除</a> </td>
</tr>
{% endfor %}
</table>
</body>
</html>

@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>新型冠状病毒肺炎疫情实时更新</title>
</head>
<body>
<h1 align="center" colspan="10">疫情实时大数据报告</h1>
<div align="center">
<br>
<a href="/insert_page">添加信息</a>
<br>
<br>
<table id = 'tabledemo'lay-filter="test">
<table width="600" cellpadding="5" align="center" border="1" cellspacing="0">
<th align="center" colspan="9">病例统计</th>
<tr>
<th lay-data="{field:'patient_id', width:100}">编号</th>
<th lay-data="{field:'name'}">姓名</th>
<th lay-data="{field:'treatment_point_id'}">治疗点</th>
<th lay-data="{field:'phone'}">电话</th>
<th lay-data="{field:'area_id'}">地区编号</th>
<th lay-data="{field:'city_id'}">城市编号</th>
<td>操作</td>
<th lay-data="{fixed: 'right', width: 160, align:'center', toolbar: '#barDemo'}"></th>
</tr>
{% for item in P_A %}
<tr>
<td>{{item.patient_id}}</td>
<td>{{item.name}}</td>
<td>{{item.treatment_point_id}}</td>
<td>{{item.phone}}</td>
<td>{{item.area_id}}</td>
<td>{{item.city_id}}</td>
<td><a href='/alter?patient_id={{item.patient_id}}&name={{ item.name }}&treatment_point_id={{ item.treatment_point_id }}&phone={{item.phone}}&area_id={{item.area_id}}&city_id={{item.city_id}}'>编辑</a>
<a href="/delete?patient_id={{ item.patient_id }}">删除</a> </td>
</tr>
{% endfor %}
</table>
</div>
</body>
</html>

@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>新型冠状病毒肺炎疫情实时更新</title>
</head>
<body>
<h1 align="center" colspan="10">疫情实时大数据报告</h1>
<div align="center">
<br>
<a href="/insert3_page">添加城市</a>
<br>
<br>
<table id = 'tabledemo'lay-filter="test">
<table width="600" cellpadding="5" align="center" border="1" cellspacing="0">
<th align="center" colspan="9">医疗人员统计</th>
<tr>
<th lay-data="{field:'worker_id', width:100}">编号</th>
<th lay-data="{field:'name'}">姓名</th>
<th lay-data="{field:'treatment_point_id'}">治疗点</th>
<th lay-data="{field:'phone'}">电话</th>
<th lay-data="{fixed: 'right', width: 160, align:'center', toolbar: '#barDemo'}"></th>
</tr>
{% for item in M_W %}
<tr>
<td>{{item.worker_id}}</td>
<td>{{item.name}}</td>
<td>{{item.treatment_point_id}}</td>
<td>{{item.phone}}</td>
<td><a href='/alter3?worker_id={{item.worker_id}}&name={{ item.name }}&treatment_point_id={{ item.treatment_point_id }}&phone={{ item.phone }}'>编辑</a>
<a href="/delete3?worker_id={{ item.worker_id }}">删除</a> </td>
</tr>
{% endfor %}
</table>
</body>
</html>

@ -0,0 +1,36 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>新型冠状病毒肺炎疫情实时更新</title>
</head>
<body>
<h1 align="center" colspan="10">疫情实时大数据报告</h1>
<div align="center">
<br>
<a href="/insert2_page">添加病例</a>
<br>
<br>
<table id = 'tabledemo'lay-filter="test">
<table width="600" cellpadding="5" align="center" border="1" cellspacing="0">
<th align="center" colspan="9">病人病症统计</th>
<tr>
<th lay-data="{field:'patient_id', width:100}">编号</th>
<th lay-data="{field:'update_time'}">时间</th>
<th lay-data="{field:'situation'}">症状</th>
<th lay-data="{fixed: 'right', width: 160, align:'center', toolbar: '#barDemo'}"></th>
</tr>
{% for item in R_E %}
<tr>
<td>{{item.patient_id}}</td>
<td>{{item.update_time}}</td>
<td>{{item.situation}}</td>
<td><a href='/alter2?patient_id={{item.patient_id}}&update_time={{ item.update_time }}&situation={{ item.situation }}'>编辑</a>
<a href="/delete2?patient_id={{ item.patient_id }}">删除</a> </td>
</tr>
{% endfor %}
</table>
</body>
</html>

@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>增加</title>
</head>
<body>
<div class="layui-main">
<div class="site-content">
<br><br>
<h1 class="site-h1">添加信息</h1>
<br><br>
<form class="layui-form" action="insert" method="post">
<div class="layui-form-item">
<label class="layui-form-label">姓名</label>
<div class="layui-input-block">
<input type="text" name="name" required lay-verify="required" placeholder="请输入省份" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">治疗点</label>
<div class="layui-input-block">
<input type="number" name="treatment_point_id" required lay-verify="required" placeholder="请输入城市" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">电话</label>
<div class="layui-input-block">
<input type="number" name="phone" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">地区编号</label>
<div class="layui-input-block">
<input type="number" name="area_id" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">城市编号</label>
<div class="layui-input-block">
<input type="number" name="city_id" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,49 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>增加</title>
</head>
<body>
<div class="layui-main">
<div class="site-content">
<br><br>
<h1 class="site-h1">添加信息</h1>
<br><br>
<form class="layui-form" action="insert2" method="post">
<div class="layui-form-item">
<label class="layui-form-label">编号</label>
<div class="layui-input-block">
<input type="number" name="patient_id" required lay-verify="required" placeholder="请输入省份" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">时间</label>
<div class="layui-input-block">
<input type="text" name="update_time" required lay-verify="required" placeholder="请输入城市" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">症状</label>
<div class="layui-input-block">
<input type="number" name="phone" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>增加</title>
</head>
<body>
<div class="layui-main">
<div class="site-content">
<br><br>
<h1 class="site-h1">添加信息</h1>
<br><br>
<form class="layui-form" action="insert3" method="post">
<div class="layui-form-item">
<label class="layui-form-label">编号</label>
<div class="layui-input-block">
<input type="number" name="worker_id" required lay-verify="required" placeholder="请输入省份" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">姓名</label>
<div class="layui-input-block">
<input type="text" name="name" required lay-verify="required" placeholder="请输入城市" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">治疗点</label>
<div class="layui-input-block">
<input type="number" name="treatment_point_id" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">电话</label>
<div class="layui-input-block">
<input type="number" name="phone" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>增加</title>
</head>
<body>
<div class="layui-main">
<div class="site-content">
<br><br>
<h1 class="site-h1">添加信息</h1>
<br><br>
<form class="layui-form" action="insert4" method="post">
<div class="layui-form-item">
<label class="layui-form-label">编号</label>
<div class="layui-input-block">
<input type="number" name="treatment_point_id" required lay-verify="required" placeholder="请输入省份" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">医院</label>
<div class="layui-input-block">
<input type="text" name="name" required lay-verify="required" placeholder="请输入城市" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">总床位</label>
<div class="layui-input-block">
<input type="number" name="total_position" required lay-verify="required" placeholder="请输入" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">地区编号</label>
<div class="layui-input-block">
<input type="number" name="area_id" required lay-verify="required" placeholder="请输入城市" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">城市编号</label>
<div class="layui-input-block">
<input type="number" name="city_id" required lay-verify="required" placeholder="请输入用户数量" autocomplete="off"
class="layui-input">
</div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>

@ -0,0 +1,93 @@
<!doctype html>
<html>
<center>
<head>
<meta charset="utf-8" />
<tittle>决策者导航界面</tittle>
<style type="text/css">
*{/*清除默认样式*/
margin: 0;
padding: 0;
}
.nav{/*设置ul*/
/*去除符号*/
list-style: none;
/*为ul设置背景颜色*/
background-color: #2D93CA ;
/*设置宽度,居中,下移*/
width: 1000px;
margin: 0px auto;
/*解决高度塌陷*/
overflow: hidden;
}
/*设置li*/
.nav li{
/*向左浮动*/
float: left;
width: 33.3%;
}
.nav a{
/*将a转换为元素*/
display: block;
/*为a指定一个宽度*/
width: 100%;
/*文字居中*/
text-align: center;
/*设置上下内间距*/
padding: 8px 0;
/*去除下划线,颜色,加粗*/
text-decoration: none;
color: white;
font-width: bold;
}
/*鼠标移入效果*/
.nav a:hover{
background-color: #0000FF;
}
#web_bg{
position:fixed;
top: 0;
left: 0;
width:100%;
height:100%;
min-width: 1000px;
z-index:-10;
zoom: 1;
background-color: #fff;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
background-position: center 0;
}
</style>
</head>
<body>
<div class="wrapper">
<!--背景图片-->
<div id="web_bg" style="background-image: url(../static/background0.jpg);"></div>
<!--其他代码 ... -->
</div>
<ul class="nav">
<li><a href="http://127.0.0.1:5000/index3/">查询treatment_count</a></li>
<li><a href="http://127.0.0.1:5000/index2/">查询city_count</a></li>
<li><a href="http://127.0.0.1:5000/index45/">查询/修改treatment_point</a></li>
</ul>
<img src="../static/background2.jpg" alt="众志成城,同心抗疫" width="1000" height="200">
<hr />
<span>全国疫情信息概览:</span>
<!--引用框-->
<br />
<iframe src="https://ncov.dxy.cn/ncovh5/view/pneumonia" width="500" height="1000" frameborder="0"></iframe>
<!--页面底部-->
<hr />
友情链接:<a href="https://ncov.dxy.cn/ncovh5/view/pneumonia">丁香医生</a>|
<a href="https://voice.baidu.com/act/newpneumonia/newpneumonia">百度疫情</a>|
<a href="#">首页</a>
<br>
<a id="buttom" href="#">回到顶部</a>|<a href="mailto:2549767334@qq.com">联系我们</a>
</center>
</body>
</html>

@ -0,0 +1,95 @@
<!doctype html>
<html>
<center>
<head>
<meta charset="utf-8" />
<tittle>医务工作者导航界面</tittle>
<style type="text/css">
*{/*清除默认样式*/
margin: 0;
padding: 0;
}
.nav{/*设置ul*/
/*去除符号*/
list-style: none;
/*为ul设置背景颜色*/
background-color: #2D93CA ;
/*设置宽度,居中,下移*/
width: 1000px;
margin: 0px auto;
/*解决高度塌陷*/
overflow: hidden;
}
/*设置li*/
.nav li{
/*向左浮动*/
float: left;
width: 20%;
}
.nav a{
/*将a转换为元素*/
display: block;
/*为a指定一个宽度*/
width: 100%;
/*文字居中*/
text-align: center;
/*设置上下内间距*/
padding: 8px 0;
/*去除下划线,颜色,加粗*/
text-decoration: none;
color: white;
font-width: bold;
}
/*鼠标移入效果*/
.nav a:hover{
background-color: #0000FF;
}
#web_bg{
position:fixed;
top: 0;
left: 0;
width:100%;
height:100%;
min-width: 1000px;
z-index:-10;
zoom: 1;
background-color: #fff;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
background-position: center 0;
}
</style>
</head>
<body>
<div class="wrapper">
<!--背景图片-->
<div id="web_bg" style="background-image: url(../static/background0.jpg);"></div>
<!--其他代码 ... -->
</div>
<ul class="nav">
<li><a href="http://127.0.0.1:5000/index3/">查询treatment_count</a></li>
<li><a href="http://127.0.0.1:5000/index2/">查询city_count</a></li>
<li><a href="http://127.0.0.1:5000/index5/">查询/修改patient</a></li>
<li><a href="http://127.0.0.1:5000/index7/">查询/修改report</a></li>
<li><a href="http://127.0.0.1:5000/index6/">查询/修改medical_worker</a></li>
</ul>
<img src="../static/background2.jpg" alt="众志成城,同心抗疫" width="1000" height="200">
<hr />
<span>全国疫情信息概览:</span>
<!--引用框-->
<br />
<iframe src="https://ncov.dxy.cn/ncovh5/view/pneumonia" width="500" height="1000" frameborder="0"></iframe>
<!--页面底部-->
<hr />
友情链接:<a href="https://ncov.dxy.cn/ncovh5/view/pneumonia">丁香医生</a>|
<a href="https://voice.baidu.com/act/newpneumonia/newpneumonia">百度疫情</a>|
<a href="#">首页</a>
<br>
<a id="buttom" href="#">回到顶部</a>|<a href="mailto:2549767334@qq.com">联系我们</a>
</center>
</body>
</html>

@ -0,0 +1,93 @@
<!doctype html>
<html>
<center>
<head>
<meta charset="utf-8" />
<tittle>游客导航界面</tittle>
<style type="text/css">
*{/*清除默认样式*/
margin: 0;
padding: 0;
}
.nav{/*设置ul*/
/*去除符号*/
list-style: none;
/*为ul设置背景颜色*/
background-color: #2D93CA ;
/*设置宽度,居中,下移*/
width: 1000px;
margin: 0px auto;
/*解决高度塌陷*/
overflow: hidden;
}
/*设置li*/
.nav li{
/*向左浮动*/
float: left;
width: 33.3%;
}
.nav a{
/*将a转换为元素*/
display: block;
/*为a指定一个宽度*/
width: 100%;
/*文字居中*/
text-align: center;
/*设置上下内间距*/
padding: 8px 0;
/*去除下划线,颜色,加粗*/
text-decoration: none;
color: white;
font-width: bold;
}
/*鼠标移入效果*/
.nav a:hover{
background-color: #0000FF;
}
#web_bg{
position:fixed;
top: 0;
left: 0;
width:100%;
height:100%;
min-width: 1000px;
z-index:-10;
zoom: 1;
background-color: #fff;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
background-position: center 0;
}
</style>
</head>
<body>
<div class="wrapper">
<!--背景图片-->
<div id="web_bg" style="background-image: url(../static/background0.jpg);"></div>
<!--其他代码 ... -->
</div>
<ul class="nav">
<li><a href="http://127.0.0.1:5000/index3/">查询treatment_count</a></li>
<li><a href="http://127.0.0.1:5000/index2/">查询city_count</a></li>
<li><a href="http://127.0.0.1:5000/index4/">查询treatment_point</a></li>
</ul>
<img src="../static/background2.jpg" alt="众志成城,同心抗疫" width="1000" height="200">
<hr />
<span>全国疫情信息概览:</span>
<!--引用框-->
<br />
<iframe src="https://ncov.dxy.cn/ncovh5/view/pneumonia" width="500" height="1000" frameborder="0"></iframe>
<!--页面底部-->
<hr />
友情链接:<a href="https://ncov.dxy.cn/ncovh5/view/pneumonia">丁香医生</a>|
<a href="https://voice.baidu.com/act/newpneumonia/newpneumonia">百度疫情</a>|
<a href="#">首页</a>
<br>
<a id="buttom" href="#">回到顶部</a>|<a href="mailto:2549767334@qq.com">联系我们</a>
</center>
</body>
</html>

@ -0,0 +1,112 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<head>
<style>
*{
margin: 0;
padding: 0;
list-style: none;
}
ul{
background: #ededed;
height: 300px;
width: 640px;
margin: 0 auto;
}
ul li{
background: #fff;
box-sizing: border-box;
border: 1px solid #333;
height: 300px;
width: 200px;
float: left;
margin-right: 20px;
}
ul li:last-child{
margin-right: 0px;
}
ul li p{
text-align: center;
}
ul li span{
display: block;
font-size: 14px;
text-align: center;
color: #e08c35;
font-weight: bold;
}
ul li button {
width: 100%;
height: 45px;
background-color: #ee7700;
border: none;
color: white;
font-size: 18px;
}
#web_bg{
position:fixed;
top: 0;
left: 0;
width:100%;
height:100%;
min-width: 1000px;
z-index:-10;
zoom: 1;
background-color: #fff;
background-repeat: no-repeat;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
background-position: center 0;
}
</style>
</head>
<body>
<div class="wrapper">
<!--背景图片-->
<div id="web_bg" style="background-image: url(../static/background1.jpg);"></div>
<!--其他代码 ... -->
</div>
<ul>
<li>
<img src="./imge/饼干.jpg" alt="" width="200" height="200">
<span>游客查询入口</span>
<br/>
<br/>
<br/>
<div class="logC">
<a href="/tourist" id="loginButton"><button>登 录</button></a>
</div>
</li>
<li>
<img src="./imge/衣架.png" alt="" width="200" height="200">
<span>医务工作者查询入口</span>
<br/>
<br/>
<br/>
<div class="logC">
<a href="/doctor" id="loginButton"><button>登 录</button></a>
</div>
</li>
<li>
<img src="./imge/拖鞋.png" alt="" width="200" height="200">
<span>决策者查询入口</span>
<br/>
<br/>
<br/>
<div class="logC">
<a href="/master" id="loginButton"><button>登 录</button></a>
</div>
</li>
</ul>
</body>
</html>
Loading…
Cancel
Save