Files
vps_web/templates/admin/import.html
ddrwode 5fe60fdd57 哈哈
2026-02-09 22:36:32 +08:00

38 lines
1.6 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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>
<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">
<p class="hint">上传与导出格式一致的 .xlsx系统会与现有数据比对自动识别<strong>新增项</strong><strong>可更新项</strong>;在预览页勾选确认后再写入数据库。</p>
{% 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">
<button type="submit">上传并预览待处理项</button>
<a href="{{ url_for('admin_dashboard') }}" class="btn-cancel">取消</a>
</div>
</form>
</main>
</body>
</html>