attendance.html
895 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
table {
border-collapse: collapse;
width: 100%;
}
table td, table th {
border: 1px solid #ddd;
padding: 8px;
}
table tr:nth-child(even){background-color: #f2f2f2;}
table tr:hover {background-color: #ddd;}
table th {
padding-top: 12px;
padding-bottom: 12px;
text-align: left;
background-color: #4CAF50;
color: white;
}
</style>
<title>Attendance</title>
<table>
<thead>
<tr>
<th>학번</th>
<th>이름</th>
<th>출결</th>
</tr>
</thead>
<tbody>
{% for row in output_data %}
<tr>
<td>{{row['student_id']}}</td>
<td>{{row['student_name']}}</td>
<td>{{row['status']}}</td>
</tr>
{% endfor %}
</tbody>
</table>