-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (78 loc) · 3.08 KB
/
index.html
File metadata and controls
83 lines (78 loc) · 3.08 KB
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
<!doctype html>
<html lang="vi">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quản lý sinh viên</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="container">
<header>
<h1>Quản lý sinh viên</h1>
<div class="toolbar">
<div class="search">
<span>🔎</span>
<input id="searchInput" type="text" placeholder="Tìm theo Mã SV hoặc Họ tên" />
</div>
</div>
</header>
<section class="card">
<form id="studentForm" novalidate>
<div class="field">
<label for="id">Mã SV</label>
<input id="id" type="text" placeholder="VD: SV001" />
<div class="error" data-error="id"></div>
</div>
<div class="field">
<label for="fullName">Họ và tên</label>
<input id="fullName" type="text" placeholder="VD: Nguyễn Văn A" />
<div class="error" data-error="fullName"></div>
</div>
<div class="field">
<label for="dob">Ngày sinh</label>
<input id="dob" type="date" min="2000-01-01" />
<div class="error" data-error="dob"></div>
</div>
<div class="field">
<label for="className">Lớp học</label>
<input id="className" type="text" placeholder="D23CTCN01-B" />
<div class="error" data-error="className"></div>
</div>
<div class="field">
<label for="gpa">GPA</label>
<input id="gpa" type="number" step="0.01" min="0" max="4" placeholder="0 - 4" />
<div class="error" data-error="gpa"></div>
</div>
<div class="form-actions">
<button id="addBtn" class="btn-primary" type="submit">Thêm sinh viên</button>
<button id="updateBtn" class="btn-success" type="button" hidden>Cập nhật</button>
<button id="cancelBtn" class="btn-muted" type="button" hidden>Hủy</button>
<button id="deleteAllBtn" class="btn-danger" type="button">Xóa tất cả</button>
</div>
</form>
</section>
<section class="card table-card">
<table>
<thead>
<tr>
<th>STT</th>
<th data-sort="id" class="sortable">Mã SV <span class="sort-icon" data-icon="id">↕</span></th>
<th data-sort="fullName" class="sortable">Họ tên <span class="sort-icon" data-icon="fullName">↕</span></th>
<th>Ngày sinh</th>
<th data-sort="className" class="sortable">Lớp <span class="sort-icon" data-icon="className">↕</span></th>
<th data-sort="gpa" class="sortable">GPA <span class="sort-icon" data-icon="gpa">↕</span></th>
<th>Hành động</th>
</tr>
</thead>
<tbody id="studentTbody"></tbody>
</table>
<div class="stats">
<div>Tổng số: <span id="totalCount" class="badge">0</span></div>
<div>GPA trung bình: <span id="avgGpa" class="badge">0.00</span></div>
</div>
</section>
</div>
<script src="app.js"></script>
</body>
</html>