You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
110 lines
2.6 KiB
110 lines
2.6 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>随机点名系统</title>
|
|
<style>
|
|
.biaoti {
|
|
font-size: 30px;/* 文字大小 */
|
|
position: fixed;
|
|
text-align: center;
|
|
background-color: #163874;
|
|
color: white;
|
|
width: 100%;
|
|
padding: 45px 0 45px 16px;/* 边框宽度 */
|
|
height: 120px;
|
|
box-sizing: border-box
|
|
|
|
}
|
|
body {
|
|
margin: 0px;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: none;
|
|
margin: 120px 0 0 0;
|
|
border: 0px;
|
|
padding: 0;
|
|
width: 15%;
|
|
background-color: #163874;
|
|
position: fixed;
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
li a {
|
|
display: block;
|
|
color: white;
|
|
font-size: 20px;
|
|
padding: 45px;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
li a.active {
|
|
background-color: #7989E8;
|
|
color: white;
|
|
}
|
|
|
|
li a:hover:not(.active) {
|
|
background-color: #555;
|
|
color: white;
|
|
}
|
|
/* 表格样式 */
|
|
.biaoge {
|
|
width:100%;
|
|
margin:0;
|
|
border:0;
|
|
color:black;
|
|
|
|
background-color:#EEEEEE;
|
|
}
|
|
.biaoge,.biaoge th,.biaoge td {
|
|
font-size:26px;
|
|
text-align:center;
|
|
padding:4px;
|
|
border-collapse:collapse;
|
|
}
|
|
.biaoge th,.biaoge td {
|
|
border-width:1px 0 1px 0;
|
|
border:1px inset #D8D8D8;
|
|
}
|
|
.biaoge tr {
|
|
border: 1px solid #D8D8D8;
|
|
height: 20px;
|
|
}
|
|
</style>
|
|
<script>
|
|
var count=ref(0);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="biaoti">随机点名系统</div>
|
|
<ul>
|
|
<li><a href="/first/">点名提问</a></li>
|
|
<li><a href="/second/">学生名单</a></li>
|
|
<li><a class="active" href="#contact">积分排名</a></li>
|
|
<li><a href="/fourth/">账号设置</a></li>
|
|
</ul>
|
|
|
|
<!-- 学生积分排名 -->
|
|
<div style="margin-left:15%;height:auto;padding: 120px 0 0 0;">
|
|
<table class="biaoge">
|
|
<tr>
|
|
<th>排名</th><th>学号</th><th>姓名</th><th>积分</th>
|
|
</tr>
|
|
{% for row in form %}
|
|
<tr>
|
|
<td>{{ forloop.counter }}</td>
|
|
<td>{{ row.student_xuehao }}</td>
|
|
<td>{{ row.student_name }}</td>
|
|
<td>{{ row.student_score }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
</html> |