kbsearch-extension/pages/upload-history.html

110 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>上传记录</title>
<style>
body {
font-family: system-ui, sans-serif;
background: #f9fbfc;
margin: 0;
padding: 20px;
}
.history-wrapper {
max-width: 960px;
margin: auto;
background: #fff;
padding: 24px 30px;
border-radius: 12px;
box-shadow: 0 6px 20px #ccc5;
}
h2 {
font-size: 1.3rem;
margin-bottom: 20px;
color: #1a2b57;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
table-layout: fixed;
}
th, td {
text-align: left;
padding: 8px 12px;
border-bottom: 1px solid #e1e4ec;
word-break: break-word;
}
th {
background: #f2f4f7;
color: #333;
}
td a {
color: #2266cc;
text-decoration: none;
}
td a:hover {
text-decoration: underline;
}
.pagination {
text-align: center;
margin-top: 10px;
}
.pagination button {
margin: 0 3px;
padding: 6px 10px;
background: #f0f3f7;
border: 1px solid #ccc;
border-radius: 5px;
cursor: pointer;
}
.pagination button.active {
background: #3d5afe;
color: #fff;
}
.pagination button:hover:not(.active) {
background: #dce4f7;
}
.page-size {
margin-top: 10px;
text-align: right;
font-size: 14px;
}
.page-size select {
padding: 4px 8px;
font-size: 14px;
}
</style>
</head>
<body>
<div class="history-wrapper">
<h2>上传记录</h2>
<table>
<thead>
<tr>
<th style="width: 60%;">文件名</th>
<th style="width: 20%;">上传时间</th>
<th style="width: 20%;">有效期</th>
</tr>
</thead>
<tbody id="historyTableBody">
<!-- JS 填充记录 -->
</tbody>
</table>
<div class="pagination" id="pagination"></div>
<div class="page-size">
每页显示
<select id="pageSizeSelect">
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
</select> 条记录
</div>
</div>
<script src="../scripts/upload-history.js"></script>
</body>
</html>