update for front
Signed-off-by: Chenx221 <chenx221@yandex.com>
This commit is contained in:
parent
885746d827
commit
ace18d01cd
@ -190,11 +190,19 @@
|
||||
<ul class="nav nav-tabs" id="ex1" role="tablist">
|
||||
<li class="nav-item" role="presentation">
|
||||
<a class="nav-link active fs-6" id="ex1-tab-1" data-mdb-toggle="tab" href="#ex1-tabs-1"
|
||||
role="tab" aria-controls="ex1-tabs-1" aria-selected="true">创建账户</a>
|
||||
role="tab" aria-controls="ex1-tabs-1" aria-selected="true">信息查询</a>
|
||||
</li>
|
||||
<li class="nav-item" role="presentation">
|
||||
<a class="nav-link fs-6" id="ex1-tab-2" data-mdb-toggle="tab" href="#ex1-tabs-2"
|
||||
role="tab" aria-controls="ex1-tabs-2" aria-selected="true">密码重置</a>
|
||||
role="tab" aria-controls="ex1-tabs-2" aria-selected="true">信息修改</a>
|
||||
</li>
|
||||
<li class="nav-item" role="presentation">
|
||||
<a class="nav-link fs-6" id="ex1-tab-3" data-mdb-toggle="tab" href="#ex1-tabs-3"
|
||||
role="tab" aria-controls="ex1-tabs-3" aria-selected="false">信息删除</a>
|
||||
</li>
|
||||
<li class="nav-item" role="presentation">
|
||||
<a class="nav-link fs-6" id="ex1-tab-4" data-mdb-toggle="tab" href="#ex1-tabs-4"
|
||||
role="tab" aria-controls="ex1-tabs-4" aria-selected="false">信息添加</a>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- Tabs navs -->
|
||||
@ -204,56 +212,83 @@
|
||||
<div class="tab-pane fade show active" id="ex1-tabs-1" role="tabpanel"
|
||||
aria-labelledby="ex1-tab-1">
|
||||
<div class="card-body" style="min-width: 175px">
|
||||
<form action="create" method="post">
|
||||
<form action="query" method="post">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText1" class="form-control"
|
||||
name="username" required/>
|
||||
<label class="form-label" for="typeText1">用户名</label>
|
||||
<input type="number" id="typeText1" class="form-control"
|
||||
name="id"/>
|
||||
<label class="form-label" for="typeText1">教师ID</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-2">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="password" id="typeText2" class="form-control"
|
||||
name="password" required/>
|
||||
<label class="form-label" for="typeText2">密码</label>
|
||||
<input type="text" id="typeText2" class="form-control"
|
||||
name="name"/>
|
||||
<label class="form-label" for="typeText2">姓名</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-2">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="password" id="typeText3" class="form-control"
|
||||
name="re_password" required/>
|
||||
<label class="form-label" for="typeText3">重复密码</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText4" class="form-control"
|
||||
name="roleid" disabled/>
|
||||
<label class="form-label" for="typeText4">身份ID</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-2">
|
||||
<div class="col-12">
|
||||
<label class="form-label" for="role-select">权限组:</label>
|
||||
<select name="role" id="role-select" required>
|
||||
<option value="admin">管理员</option>
|
||||
<option value="teacher">教师</option>
|
||||
<option value="student">学生</option>
|
||||
<label for="sex-select" style="color: rgba(0,0,0,.6);">性别</label>
|
||||
<select name="sex" id="sex-select">
|
||||
<option value="">请选择性别</option>
|
||||
<option value="male">男</option>
|
||||
<option value="female">女</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="date" id="typeText4" class="form-control"
|
||||
name="birthday_begin"/>
|
||||
<label class="form-label" for="typeText4">出生日期(始)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="date" id="typeText5" class="form-control"
|
||||
name="birthday_end"/>
|
||||
<label class="form-label" for="typeText5">出生日期(末)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText6" class="form-control"
|
||||
name="course_id"/>
|
||||
<label class="form-label" for="typeText6">课程ID</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText7" class="form-control"
|
||||
name="course_name"/>
|
||||
<label class="form-label" for="typeText7">课程名(支持部分)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText8" class="form-control"
|
||||
name="classes"/>
|
||||
<label class="form-label" for="typeText8">授课班级(一班~五班)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-4">
|
||||
<div class="col-lg-6 text-center">
|
||||
<button type="submit" class="btn btn-primary">创建
|
||||
<button type="submit" class="btn btn-primary">查询
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-lg-6 text-center">
|
||||
@ -263,49 +298,172 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="ex1-tabs-2" role="tabpanel"
|
||||
aria-labelledby="ex1-tab-2">
|
||||
<div class="tab-pane fade" id="ex1-tabs-2" role="tabpanel" aria-labelledby="ex1-tab-2">
|
||||
<div class="card-body" style="min-width: 175px">
|
||||
<form action="reset" method="post">
|
||||
<form action="mod" method="post">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText5" class="form-control"
|
||||
name="id" readonly required/>
|
||||
<label class="form-label" for="typeText5">用户ID</label>
|
||||
<input type="number" id="typeText9" class="form-control" required
|
||||
name="id"/>
|
||||
<label class="form-label" for="typeText9">教师ID</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-2">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="password" id="typeText6" class="form-control"
|
||||
name="password" required/>
|
||||
<label class="form-label" for="typeText6">新的密码(必填)</label>
|
||||
<input type="text" id="typeText10" class="form-control"
|
||||
name="name"/>
|
||||
<label class="form-label" for="typeText10">姓名</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-2">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<label for="sex-select2" style="color: rgba(0,0,0,.6);">性别</label>
|
||||
<select name="sex" id="sex-select2">
|
||||
<option value="">请选择性别</option>
|
||||
<option value="male">男</option>
|
||||
<option value="female">女</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="password" id="typeText7" class="form-control"
|
||||
name="re_password" required/>
|
||||
<label class="form-label" for="typeText7">重复密码(必填)</label>
|
||||
<input type="date" id="typeText12" class="form-control"
|
||||
name="birthday"/>
|
||||
<label class="form-label" for="typeText12">出生日期</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText13" class="form-control"
|
||||
name="course_id"/>
|
||||
<label class="form-label" for="typeText13">课程ID</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText14" class="form-control"
|
||||
name="course_name"/>
|
||||
<label class="form-label" for="typeText14">课程名(支持部分)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText15" class="form-control"
|
||||
name="classes"/>
|
||||
<label class="form-label" for="typeText15">授课班级(一班~五班)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-4">
|
||||
<div class="col-lg-6 text-center">
|
||||
<button type="submit" class="btn btn-primary">重置
|
||||
<button type="submit" class="btn btn-primary">修改
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-lg-6 text-center">
|
||||
<button type="reset" class="btn btn-secondary">清除</button>
|
||||
<button type="reset" class="btn btn-secondary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="ex1-tabs-3" role="tabpanel" aria-labelledby="ex1-tab-3">
|
||||
<div class="card-body" style="min-width: 175px">
|
||||
<form action="del" method="post">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText16" class="form-control"
|
||||
required name="id"/>
|
||||
<label class="form-label" for="typeText16">课程ID (必填)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-4">
|
||||
<div class="col-lg-6 text-center">
|
||||
<button type="submit" class="btn btn-primary">删除</button>
|
||||
</div>
|
||||
<div class="col-lg-6 text-center">
|
||||
<button type="reset" class="btn btn-secondary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="tab-pane fade" id="ex1-tabs-4" role="tabpanel" aria-labelledby="ex1-tab-4">
|
||||
<!-- <h5 class="card-header">信息添加</h5> -->
|
||||
<div class="card-body" style="min-width: 175px">
|
||||
<form action="add" method="post">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText18" class="form-control" required
|
||||
name="name"/>
|
||||
<label class="form-label" for="typeText18">姓名</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<label for="sex-select3" style="color: rgba(0,0,0,.6);">性别</label>
|
||||
<select name="sex" id="sex-select3" required>
|
||||
<option value="">请选择性别</option>
|
||||
<option value="male">男</option>
|
||||
<option value="female">女</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="date" id="typeText20" class="form-control" required
|
||||
name="birthday"/>
|
||||
<label class="form-label" for="typeText20">出生日期</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText21" class="form-control" required
|
||||
name="course_id"/>
|
||||
<label class="form-label" for="typeText21">课程ID</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText23" class="form-control" required
|
||||
name="classes"/>
|
||||
<label class="form-label" for="typeText23">授课班级</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2 mt-4">
|
||||
<div class="col-lg-6 text-center">
|
||||
<button type="submit" class="btn btn-primary">添加
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-lg-6 text-center">
|
||||
<button type="reset" class="btn btn-secondary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- Tabs content -->
|
||||
|
||||
|
@ -225,7 +225,7 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText2" class="form-control"
|
||||
<input type="text" id="typeText2" class="form-control"
|
||||
name="name"/>
|
||||
<label class="form-label" for="typeText2">姓名</label>
|
||||
</div>
|
||||
@ -233,11 +233,12 @@
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText3" class="form-control"
|
||||
name="sex"/>
|
||||
<label class="form-label" for="typeText3">性别</label>
|
||||
</div>
|
||||
<label for="sex-select" style="color: rgba(0,0,0,.6);">性别</label>
|
||||
<select name="sex" id="sex-select">
|
||||
<option value="">请选择性别</option>
|
||||
<option value="male">男</option>
|
||||
<option value="female">女</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
@ -281,7 +282,7 @@
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText8" class="form-control"
|
||||
name="classes"/>
|
||||
<label class="form-label" for="typeText8">授课班级</label>
|
||||
<label class="form-label" for="typeText8">授课班级(一班~五班)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -303,7 +304,7 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText9" class="form-control"
|
||||
<input type="number" id="typeText9" class="form-control" required
|
||||
name="id"/>
|
||||
<label class="form-label" for="typeText9">教师ID</label>
|
||||
</div>
|
||||
@ -312,7 +313,7 @@
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText10" class="form-control"
|
||||
<input type="text" id="typeText10" class="form-control"
|
||||
name="name"/>
|
||||
<label class="form-label" for="typeText10">姓名</label>
|
||||
</div>
|
||||
@ -320,37 +321,38 @@
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText11" class="form-control"
|
||||
name="sex"/>
|
||||
<label class="form-label" for="typeText11">性别</label>
|
||||
</div>
|
||||
<label for="sex-select2" style="color: rgba(0,0,0,.6);">性别</label>
|
||||
<select name="sex" id="sex-select2">
|
||||
<option value="">请选择性别</option>
|
||||
<option value="male">男</option>
|
||||
<option value="female">女</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="date" id="typeText12" class="form-control"
|
||||
name="birthday_begin"/>
|
||||
<label class="form-label" for="typeText12">出生日期(始)</label>
|
||||
name="birthday"/>
|
||||
<label class="form-label" for="typeText12">出生日期</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="date" id="typeText13" class="form-control"
|
||||
name="birthday_end"/>
|
||||
<label class="form-label" for="typeText13">出生日期(末)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText14" class="form-control"
|
||||
<input type="number" id="typeText13" class="form-control"
|
||||
name="course_id"/>
|
||||
<label class="form-label" for="typeText14">课程ID</label>
|
||||
<label class="form-label" for="typeText13">课程ID</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText14" class="form-control"
|
||||
name="course_name"/>
|
||||
<label class="form-label" for="typeText14">课程名(支持部分)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -358,17 +360,8 @@
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText15" class="form-control"
|
||||
name="course_name"/>
|
||||
<label class="form-label" for="typeText15">课程名(支持部分)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText8" class="form-control"
|
||||
name="classes"/>
|
||||
<label class="form-label" for="typeText8">授课班级</label>
|
||||
<label class="form-label" for="typeText15">授课班级(一班~五班)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -386,13 +379,13 @@
|
||||
</div>
|
||||
<div class="tab-pane fade" id="ex1-tabs-3" role="tabpanel" aria-labelledby="ex1-tab-3">
|
||||
<div class="card-body" style="min-width: 175px">
|
||||
<form action="delinfo" method="post">
|
||||
<form action="del" method="post">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="number" id="typeText13" class="form-control"
|
||||
<input type="number" id="typeText16" class="form-control"
|
||||
required name="id"/>
|
||||
<label class="form-label" for="typeText13">课程ID (必填)</label>
|
||||
<label class="form-label" for="typeText16">课程ID (必填)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -411,22 +404,50 @@
|
||||
<div class="tab-pane fade" id="ex1-tabs-4" role="tabpanel" aria-labelledby="ex1-tab-4">
|
||||
<!-- <h5 class="card-header">信息添加</h5> -->
|
||||
<div class="card-body" style="min-width: 175px">
|
||||
<form action="addinfo" method="post">
|
||||
<form action="add" method="post">
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText14" class="form-control" required
|
||||
<input type="text" id="typeText18" class="form-control" required
|
||||
name="name"/>
|
||||
<label class="form-label" for="typeText14">课程名 (必填)</label>
|
||||
<label class="form-label" for="typeText18">姓名</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<label for="sex-select3" style="color: rgba(0,0,0,.6);">性别</label>
|
||||
<select name="sex" id="sex-select3" required>
|
||||
<option value="">请选择性别</option>
|
||||
<option value="male">男</option>
|
||||
<option value="female">女</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="date" id="typeText20" class="form-control" required
|
||||
name="birthday"/>
|
||||
<label class="form-label" for="typeText20">出生日期</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText15" class="form-control" required
|
||||
name="description"/>
|
||||
<label class="form-label" for="typeText15">课程描述 (必填)</label>
|
||||
<input type="number" id="typeText21" class="form-control" required
|
||||
name="course_id"/>
|
||||
<label class="form-label" for="typeText21">课程ID</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12">
|
||||
<div class="form-outline">
|
||||
<input type="text" id="typeText23" class="form-control" required
|
||||
name="classes"/>
|
||||
<label class="form-label" for="typeText23">授课班级</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user