refactor: 优化预约系统代码结构并改进日期处理

- 移除packages.php中的会话检查,改为统一入口控制
- 在index.php中优化日期初始化逻辑并添加默认日期选择
- 重构bookings.php的查询逻辑,关联套餐表并改进时间显示格式
This commit is contained in:
2025-11-19 01:22:36 +08:00
parent 3b3e1c577a
commit 5561291dbe
3 changed files with 10 additions and 13 deletions
-7
View File
@@ -1,13 +1,6 @@
<?php
session_start();
require_once 'db_connect.php';
// 检查是否已登录
if (!isset($_SESSION['admin_logged_in']) || $_SESSION['admin_logged_in'] !== true) {
header('Location: index.php');
exit();
}
$message = '';
// 处理套餐操作