kbsearch-extension/pages/upload-history.html
2025-06-20 17:21:09 +08:00

136 lines
2.9 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;
}
/* 新增:底部操作栏 */
.bottom-bar {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
font-size: 14px;
}
.bottom-bar .left-actions button {
padding: 6px 12px;
background-color: #3662f4;
border: none;
color: white;
border-radius: 4px;
cursor: pointer;
}
.bottom-bar .left-actions button:hover {
background-color: #d32f2f;
}
.bottom-bar .right-select select {
padding: 4px 8px;
font-size: 14px;
}
</style>
</head>
<body>
<div class="history-wrapper">
<h2>上传记录</h2>
<table>
<thead>
<tr>
<th style="width: 5%;"><input type="checkbox" id="selectAll" /></th>
<th style="width: 40%;">文件名</th>
<th style="width: 15%;">上传时间</th>
<th style="width: 15%;">有效期</th>
<th style="width: 15%;">检索状态</th>
</tr>
</thead>
<tbody id="historyTableBody">
<!-- JS 填充记录 -->
</tbody>
</table>
<div class="pagination" id="pagination"></div>
<div class="bottom-bar">
<div class="left-actions">
<button id="deleteSelectedBtn" title="选中记录后点击删除">删除选中</button>
</div>
<div class="right-select">
每页显示
<select id="pageSizeSelect">
<option value="10">10</option>
<option value="20">20</option>
<option value="50">50</option>
</select> 条记录
</div>
</div>
</div>
<script src="../scripts/upload-history.js"></script>
</body>
</html>