parent
68697e557d
commit
875b4ae9cf
@ -1,27 +1,27 @@
|
||||
<!--<!DOCTYPE html>-->
|
||||
<!--<html>-->
|
||||
<!--<head>-->
|
||||
<!-- <title>积分排行榜</title>-->
|
||||
<!--</head>-->
|
||||
<!--<body>-->
|
||||
<!-- <h1>积分排行榜</h1>-->
|
||||
<!-- <table border="1">-->
|
||||
<!-- <tr>-->
|
||||
<!-- <th>排名</th>-->
|
||||
<!-- <th>学号</th>-->
|
||||
<!-- <th>姓名</th>-->
|
||||
<!-- <th>积分</th>-->
|
||||
<!-- <th>到课次数</th>-->
|
||||
<!-- </tr>-->
|
||||
<!-- {% for student in students %}-->
|
||||
<!-- <tr>-->
|
||||
<!-- <td>{{ forloop.counter }}</td> <!– 使用forloop.counter显示排名 –>-->
|
||||
<!-- <td>{{ student.student_id }}</td>-->
|
||||
<!-- <td>{{ student.name }}</td>-->
|
||||
<!-- <td>{{ student.score }}</td>-->
|
||||
<!-- <td>{{ student.attendance_count }}</td>-->
|
||||
<!-- </tr>-->
|
||||
<!-- {% endfor %}-->
|
||||
<!-- </table>-->
|
||||
<!--</body>-->
|
||||
<!--</html>-->
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>积分排行榜</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>积分排行榜</h1>
|
||||
<table border="1">
|
||||
<tr>
|
||||
<th>排名</th>
|
||||
<th>学号</th>
|
||||
<th>姓名</th>
|
||||
<th>积分</th>
|
||||
<th>到课次数</th>
|
||||
</tr>
|
||||
{% for student in students %}
|
||||
<tr>
|
||||
<td>{{ forloop.counter }}</td> <!-- 使用forloop.counter显示排名 -->
|
||||
<td>{{ student.student_id }}</td>
|
||||
<td>{{ student.name }}</td>
|
||||
<td>{{ student.score }}</td>
|
||||
<td>{{ student.attendance_count }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
@ -1,15 +1,15 @@
|
||||
<!--<!DOCTYPE html>-->
|
||||
<!--<html lang="en" xmlns="http://www.w3.org/1999/html">-->
|
||||
<!--<head>-->
|
||||
<!-- <meta charset="UTF-8">-->
|
||||
<!-- <title>登录</title>-->
|
||||
<!--</head>-->
|
||||
<!--<body>-->
|
||||
<!--<form action="/polls/index/" method="post">-->
|
||||
<!-- {% csrf_token %}-->
|
||||
<!--<p><label>用户名:</label><input name="user"/></p>-->
|
||||
<!--<p><label>密码:</label><input name="pwd"/></p>-->
|
||||
<!-- <input type="submit" value="提交">-->
|
||||
<!--</form>-->
|
||||
<!--</body>-->
|
||||
<!--</html>-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns="http://www.w3.org/1999/html">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>登录</title>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/polls/index/" method="post">
|
||||
{% csrf_token %}
|
||||
<p><label>用户名:</label><input name="user"/></p>
|
||||
<p><label>密码:</label><input name="pwd"/></p>
|
||||
<input type="submit" value="提交">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
@ -1,15 +1,15 @@
|
||||
<!--<!DOCTYPE html>-->
|
||||
<!--<html lang="en">-->
|
||||
<!--<head>-->
|
||||
<!-- <meta charset="UTF-8">-->
|
||||
<!-- <title>注册</title>-->
|
||||
<!--</head>-->
|
||||
<!--<body>-->
|
||||
<!--<form action="/polls/register/" method="post">-->
|
||||
<!-- {% csrf_token %}-->
|
||||
<!-- <p><label>用户名:</label><input name="user"/></p>-->
|
||||
<!-- <p><label>密码:</label><input name="pwd"/></p>-->
|
||||
<!-- <input type="submit" value="注册">-->
|
||||
<!--</form>-->
|
||||
<!--</body>-->
|
||||
<!--</html>-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>注册</title>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/polls/register/" method="post">
|
||||
{% csrf_token %}
|
||||
<p><label>用户名:</label><input name="user"/></p>
|
||||
<p><label>密码:</label><input name="pwd"/></p>
|
||||
<input type="submit" value="注册">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
@ -1,15 +1,15 @@
|
||||
<!--<!DOCTYPE html>-->
|
||||
<!--<html lang="en">-->
|
||||
<!--<head>-->
|
||||
<!-- <meta charset="UTF-8">-->
|
||||
<!-- <title>Title</title>-->
|
||||
<!--</head>-->
|
||||
<!--<body>-->
|
||||
<!--<form method="post" enctype="multipart/form-data">-->
|
||||
<!-- {% csrf_token %}-->
|
||||
<!-- {{ form.as_p }}-->
|
||||
<!-- <button type="submit">上传学生名单</button>-->
|
||||
<!--</form>-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit">上传学生名单</button>
|
||||
</form>
|
||||
|
||||
<!--</body>-->
|
||||
<!--</html>-->
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in new issue