-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
110 lines (110 loc) · 4.96 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div class="header">
<div class="logo">
<img src="./images/logo.png" alt="">
<span>ws</span>
</div>
</div>
<div class="left-menu">
<dl class="menu">
<dt>学生管理</dt>
<!-- dt标签代表标题 -->
<dd class="active" data-id="student-list">学生列表</dd>
<dd data-id="student-add">新增学生</dd>
</dl>
<!-- 类似于ul li 标签,但是存在标题比较常用 -->
</div>
<div class="right-content">
<div class="student-add" id="student-add">
<form id="student-add-form">
<div><label for="name">姓名</label><input type="text" id="name"></div>
<div>
<label for="">性别</label>
<input type="radio" id="male" checked name="sex" value="0">
<label for="male" class="sex">男</label>
<input type="radio" id="female" name="sex" value="1">
<label for="female" class="sex">女</label>
</div>
<div><label for="number">学号</label><input type="text" id="number" name="sNo"></div>
<div><label for="mail">邮箱</label><input type="text" id="email"></div>
<div><label for="birth">出生年</label><input type="text" id="birth"></div>
<div><label for="phone">手机号</label><input type="text" id="phone"></div>
<div><label for="address">住址</label><input type="text" id="address"></div>
<div>
<label for=""></label>
<input type="submit" id="student-add-submit" class="btn">
<input type="reset" class="btn">
</div>
</form>
</div>
<div class="student-list" id="student-list">
<table>
<thead>
<tr>
<th>学号</th>
<th>姓名</th>
<th>性别</th>
<th>邮箱</th>
<th>年龄</th>
<th>手机号</th>
<th>住址</th>
<th>操作</th>
</tr>
</thead>
<tbody id="tBody">
<!-- <tr>
<td>001</td>
<td>ws</td>
<td>女</td>
<td>[email protected]</td>
<td>18</td>
<td>17320097725</td>
<td>云南</td>
<td>
<button class="edit btn">编辑</button>
<button class="del btn">删除</button>
</td>
</tr> -->
</tbody>
</table>
<div class="turn-page">
<button id="prey-btn" class="btn">上一页</button>
<button id="next-btn" class="btn">下一页</button>
</div>
<div class="modal">
<div class="modal-content">
<h2>编辑表单</h2>
<form id="student-edit-form">
<div><label for="name1">姓名</label><input type="text" id="name1" name="name"></div>
<div>
<label for="">性别</label>
<input type="radio" id="male-edit" checked name="sex" value="0">
<label for="male-edit" class="sex">男</label>
<input type="radio" id="female-edit" name="sex" value="1">
<label for="female-edit" class="sex">女</label>
</div>
<div><label for="number-edit">学号</label><input type="text" name="sNo" id="number-edit" readonly></div>
<div><label for="mail-edit">邮箱</label><input type="text" id="email-edit" name="email"></div>
<div><label for="birth-edit">出生年</label><input type="text" id="birth-edit" name="birth"></div>
<div><label for="phone-edit">手机号</label><input type="text" id="phone-edit" name="phone"></div>
<div><label for="address-edit">住址</label><input type="text" id="address-edit" name="address"></div>
<div>
<label for=""></label>
<input type="submit" id="student-edit-submit" class="btn">
</div>
</form>
</div>
</div>
</div>
</div>
<script src="./index.js"></script>
</body>
</html>