From a05075735d0bcfae8296004bd00f6112fb944258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=BD=E5=B7=A5=E5=91=98?= Date: Tue, 1 Sep 2026 09:26:15 +0800 Subject: [PATCH] HEL-327: apply frost-obsidian day/night theme across the live PHP UI. Replace the old teal top-nav shell with the fusion sidebar layout, token CSS, and HEL-325 logos without changing business rules, APIs, or calculator formulas. Co-authored-by: Cursor Co-authored-by: multica-agent --- app/auth.php | 9 +- app/views/acceptance_discount_calculator.php | 203 ++- app/views/interest_calculator.php | 160 ++- app/views/layout.php | 362 +++++ public/assets/fusion.css | 1062 ++++++++++++++ public/assets/fusion.js | 147 ++ public/assets/logo-day.png | Bin 0 -> 211920 bytes public/assets/logo-night.png | Bin 0 -> 204172 bytes public/index.php | 1298 ++++++++++-------- 9 files changed, 2449 insertions(+), 792 deletions(-) create mode 100644 app/views/layout.php create mode 100644 public/assets/fusion.css create mode 100644 public/assets/fusion.js create mode 100644 public/assets/logo-day.png create mode 100644 public/assets/logo-night.png diff --git a/app/auth.php b/app/auth.php index 299c662..4385c26 100755 --- a/app/auth.php +++ b/app/auth.php @@ -37,7 +37,14 @@ function requireAdmin(): void requireLogin(); if (!isAdmin()) { http_response_code(403); - echo 'Forbidden'; + $me = currentUser(); + if ($me && function_exists('pageHeader') && function_exists('fusionRestrictedCard')) { + pageHeader($me); + fusionRestrictedCard(); + pageFooter(); + } else { + echo '需要管理员权限'; + } exit; } } diff --git a/app/views/acceptance_discount_calculator.php b/app/views/acceptance_discount_calculator.php index 32209a3..3c6b74a 100644 --- a/app/views/acceptance_discount_calculator.php +++ b/app/views/acceptance_discount_calculator.php @@ -2,121 +2,100 @@ declare(strict_types=1); /** @var array $me */ ?> -
-

承兑贴现计算器

-