加入美图网提取功能
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>消息列表</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
background-color: #f4f4f4;
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
h1 {
|
||||
text-align: center;
|
||||
color: #333;
|
||||
}
|
||||
.container {
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background-color: white;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
table th, table td {
|
||||
padding: 10px;
|
||||
text-align: left;
|
||||
border: 1px solid #ddd;
|
||||
}
|
||||
table th {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
.table-container {
|
||||
max-height: 400px; /* 设置表格的最大高度 */
|
||||
overflow-y: auto; /* 启用垂直滚动条 */
|
||||
}
|
||||
.pagination {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.pagination a {
|
||||
padding: 8px 16px;
|
||||
margin: 0 5px;
|
||||
text-decoration: none;
|
||||
color: #007bff;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.pagination a:hover {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
.pagination span {
|
||||
padding: 8px 16px;
|
||||
margin: 0 5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>消息列表</h1>
|
||||
|
||||
<div class="container">
|
||||
<div class="table-container">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>群ID</th>
|
||||
<th>时间戳</th>
|
||||
<th>发送者</th>
|
||||
<th>内容</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for message in messages %}
|
||||
<tr>
|
||||
<td>{{ message[0] }}</td>
|
||||
<td>{{ message[1] }}</td>
|
||||
<td>{{ message[2] }}</td>
|
||||
<td>{{ message[3] }}</td>
|
||||
<td>{{ message[4] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="pagination">
|
||||
{% if page > 1 %}
|
||||
<a href="/messages?page=1">首页</a>
|
||||
<a href="/messages?page={{ page - 1 }}">上一页</a>
|
||||
{% endif %}
|
||||
|
||||
<span>第 {{ page }} 页 / {{ total_pages }} 页</span>
|
||||
|
||||
{% if page < total_pages %}
|
||||
<a href="/messages?page={{ page + 1 }}">下一页</a>
|
||||
<a href="/messages?page={{ total_pages }}">末页</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user