Add 2026 calendar page and admin CMS backend, update map and member pages

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-30 14:32:51 +08:00
co-authored by Claude Sonnet 5
parent 17856bd9c3
commit 6dd5a2f0b7
26 changed files with 2965 additions and 370 deletions
+14
View File
@@ -0,0 +1,14 @@
<?php
declare(strict_types=1);
require __DIR__ . '/bootstrap.php';
require_login();
if ($_SERVER['REQUEST_METHOD'] !== 'POST') { http_response_code(405); exit; }
verify_csrf();
$key = (string) ($_POST['module'] ?? '');
$module = module_config($key);
$id = (int) ($_POST['id'] ?? 0);
$stmt = db()->prepare('DELETE FROM `' . $module['table'] . '` WHERE id = ?');
$stmt->execute([$id]);
audit('delete', $module['table'], $id);
flash('success', '資料已刪除。');
redirect('records.php?module=' . urlencode($key));