Files
vps_web/templates/admin/import.html

43 lines
1.9 KiB
HTML
Raw Normal View History

2026-02-09 14:18:42 +08:00
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>导入 Excel - 后台</title>
<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/admin.css">
</head>
<body class="admin-page">
<header class="admin-header">
<h1>导入 Excel全量</h1>
<nav>
2026-02-10 11:07:04 +08:00
<a href="{{ url_for('admin_users') }}">用户管理</a>
<a href="{{ url_for('admin_forum_posts') }}">帖子管理</a>
<a href="{{ url_for('admin_forum_comments') }}">评论管理</a>
<a href="{{ url_for('admin_forum_categories') }}">论坛分类</a>
<a href="{{ url_for('admin_forum_reports') }}">举报审核</a>
2026-02-09 14:18:42 +08:00
<a href="{{ url_for('admin_dashboard') }}">返回总览</a>
<a href="{{ url_for('admin_export_excel') }}">导出 Excel</a>
<a href="{{ url_for('index') }}">查看前台</a>
<a href="{{ url_for('admin_logout') }}">退出</a>
</nav>
</header>
<main class="admin-main">
2026-02-09 22:36:32 +08:00
<p class="hint">上传与导出格式一致的 .xlsx系统会与现有数据比对自动识别<strong>新增项</strong><strong>可更新项</strong>;在预览页勾选确认后再写入数据库。</p>
2026-02-09 14:18:42 +08:00
{% if error %}
<p class="error">{{ error }}</p>
{% endif %}
<form method="post" enctype="multipart/form-data" class="admin-form">
<div class="form-group">
<label for="file">选择 .xlsx 文件</label>
<input type="file" id="file" name="file" accept=".xlsx" required>
</div>
<div class="form-actions">
2026-02-09 22:36:32 +08:00
<button type="submit">上传并预览待处理项</button>
2026-02-09 14:18:42 +08:00
<a href="{{ url_for('admin_dashboard') }}" class="btn-cancel">取消</a>
</div>
</form>
</main>
</body>
</html>