diff --git a/frontend/admin/admins.php b/frontend/admin/admins.php
index 7129166..fc992e9 100644
--- a/frontend/admin/admins.php
+++ b/frontend/admin/admins.php
@@ -223,8 +223,8 @@ include __DIR__ . '/../includes/header.php';
-
-
-
+
+
+
diff --git a/frontend/admin/attendance.php b/frontend/admin/attendance.php
index d7091a6..9ff1ba1 100644
--- a/frontend/admin/attendance.php
+++ b/frontend/admin/attendance.php
@@ -164,7 +164,7 @@ include __DIR__ . '/../includes/header.php';
-
-
+
+
diff --git a/frontend/admin/conduct.php b/frontend/admin/conduct.php
index 057a48f..0314a56 100644
--- a/frontend/admin/conduct.php
+++ b/frontend/admin/conduct.php
@@ -58,9 +58,9 @@ include __DIR__ . '/../includes/header.php';
-
-
-
+
+
+
diff --git a/frontend/admin/dashboard.php b/frontend/admin/dashboard.php
index 7f85a8b..35143a3 100644
--- a/frontend/admin/dashboard.php
+++ b/frontend/admin/dashboard.php
@@ -88,7 +88,7 @@ include __DIR__ . '/../includes/header.php';
-
+
-
-
-
+
+
+
diff --git a/frontend/admin/homework.php b/frontend/admin/homework.php
index 74d9fd6..e05fcc4 100644
--- a/frontend/admin/homework.php
+++ b/frontend/admin/homework.php
@@ -289,8 +289,8 @@ include __DIR__ . '/../includes/header.php';
-
-
-
+
+
+
\ No newline at end of file
diff --git a/frontend/admin/logs.php b/frontend/admin/logs.php
index 87a180b..85af4eb 100644
--- a/frontend/admin/logs.php
+++ b/frontend/admin/logs.php
@@ -72,6 +72,6 @@ include __DIR__ . '/../includes/header.php';
-
+
diff --git a/frontend/admin/record_query.php b/frontend/admin/record_query.php
index 2ade218..59f15f3 100644
--- a/frontend/admin/record_query.php
+++ b/frontend/admin/record_query.php
@@ -106,7 +106,7 @@ include __DIR__ . '/../includes/header.php';
-
-
+
+
diff --git a/frontend/admin/reports.php b/frontend/admin/reports.php
index e7d6853..b57bbc3 100644
--- a/frontend/admin/reports.php
+++ b/frontend/admin/reports.php
@@ -99,6 +99,6 @@ include __DIR__ . '/../includes/header.php';
-
+
diff --git a/frontend/admin/semesters.php b/frontend/admin/semesters.php
index b65bf89..2243f00 100644
--- a/frontend/admin/semesters.php
+++ b/frontend/admin/semesters.php
@@ -198,7 +198,7 @@ include __DIR__ . '/../includes/header.php';
-
-
+
+
diff --git a/frontend/admin/settings.php b/frontend/admin/settings.php
index 0088ee7..3d86a24 100644
--- a/frontend/admin/settings.php
+++ b/frontend/admin/settings.php
@@ -51,6 +51,6 @@ include __DIR__ . '/../includes/header.php';
-
+
diff --git a/frontend/admin/students.php b/frontend/admin/students.php
index 4c88765..225638a 100644
--- a/frontend/admin/students.php
+++ b/frontend/admin/students.php
@@ -174,10 +174,10 @@ include __DIR__ . '/../includes/header.php';
-
-
-
-
+
+
+
+
diff --git a/frontend/config.php b/frontend/config.php
index 9686882..399f42a 100644
--- a/frontend/config.php
+++ b/frontend/config.php
@@ -153,5 +153,16 @@ function current_group_name() {
return $_SESSION['role'] ?? '';
}
+/**
+ * 静态资源版本号:按文件修改时间附加 ?v=,部署更新后浏览器自动拉取新文件,避免旧 JS/CSS 缓存
+ */
+function asset_url($path) {
+ $file = __DIR__ . $path;
+ if (is_file($file)) {
+ return $path . '?v=' . filemtime($file);
+ }
+ return $path;
+}
+
// 管理员页面自动同步权限(权限组变更后自动生效)
refresh_admin_permissions();
\ No newline at end of file
diff --git a/frontend/forgot_password.php b/frontend/forgot_password.php
index 94d9bec..2827d6e 100644
--- a/frontend/forgot_password.php
+++ b/frontend/forgot_password.php
@@ -18,7 +18,7 @@ require_once __DIR__ . '/config.php';
- 忘记密码
-
+
diff --git a/frontend/includes/header.php b/frontend/includes/header.php
index 67d866e..f3a0051 100644
--- a/frontend/includes/header.php
+++ b/frontend/includes/header.php
@@ -25,9 +25,9 @@ $page_title = $page_title ?? '首页';
-
-
+
-
+
@@ -81,8 +81,8 @@ $page_title = $page_title ?? '首页';
}
})();
-
-
+
+
-
+
\ No newline at end of file
diff --git a/frontend/parent/dashboard.php b/frontend/parent/dashboard.php
index 7a3286a..af36e7b 100644
--- a/frontend/parent/dashboard.php
+++ b/frontend/parent/dashboard.php
@@ -95,6 +95,6 @@ async function loadDashboard() {
}
loadDashboard();
-
+
\ No newline at end of file
diff --git a/frontend/parent/history.php b/frontend/parent/history.php
index 25be726..da22c72 100644
--- a/frontend/parent/history.php
+++ b/frontend/parent/history.php
@@ -114,6 +114,6 @@ function changePage(delta) {
loadHistory(1);
-
+
diff --git a/frontend/reset_password.php b/frontend/reset_password.php
index 503bff1..b73025f 100644
--- a/frontend/reset_password.php
+++ b/frontend/reset_password.php
@@ -20,7 +20,7 @@ $token = isset($_GET['token']) ? preg_replace('/[^A-Za-z0-9_\-]/', '', $_GET['to
- 重置密码
-
+
@@ -62,7 +62,7 @@ $token = isset($_GET['token']) ? preg_replace('/[^A-Za-z0-9_\-]/', '', $_GET['to
-
+
-
+
\ No newline at end of file
diff --git a/frontend/student/homework.php b/frontend/student/homework.php
index 9cea791..766ed17 100644
--- a/frontend/student/homework.php
+++ b/frontend/student/homework.php
@@ -45,7 +45,7 @@ include __DIR__ . '/../includes/header.php';
-
-
+
+
\ No newline at end of file
diff --git a/frontend/student/password.php b/frontend/student/password.php
index b154131..5962e3b 100644
--- a/frontend/student/password.php
+++ b/frontend/student/password.php
@@ -82,6 +82,6 @@ document.getElementById('passwordForm').addEventListener('submit', async (e) =>
}
});
-
+
\ No newline at end of file
diff --git a/frontend/student/semester_history.php b/frontend/student/semester_history.php
index 257960c..40de014 100644
--- a/frontend/student/semester_history.php
+++ b/frontend/student/semester_history.php
@@ -201,6 +201,6 @@ async function loadSemesterRecords() {
loadSemesterRecords();
-
+