From d037b2bef4f66d8636c7e9336aa22bcc4def2229 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Fri, 20 Oct 2023 14:07:49 +0700 Subject: [PATCH] move alert --- system/boot.php | 15 ++------------- ui/ui/sections/header.tpl | 9 ++++++++- ui/ui/sections/user-header.tpl | 10 +++++++++- 3 files changed, 19 insertions(+), 15 deletions(-) diff --git a/system/boot.php b/system/boot.php index ae52e93..98e4682 100644 --- a/system/boot.php +++ b/system/boot.php @@ -164,19 +164,8 @@ function _msglog($type, $msg) if (isset($_SESSION['notify'])) { $notify = $_SESSION['notify']; $ntype = $_SESSION['ntype']; - if ($ntype == 's') { - $ui->assign('notify', '
- -
' . $notify . '
'); - } else { - $ui->assign('notify', '
- -
' . $notify . '
'); - } + $ui->assign('notify', $notify); + $ui->assign('notify_t', $ntype); unset($_SESSION['notify']); unset($_SESSION['ntype']); } diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index 1c2faba..bb5de55 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -301,4 +301,11 @@
-{if isset($notify)}{$notify}{/if} \ No newline at end of file +{if isset($notify)} +
+ +
{$notify}
+
+{/if} \ No newline at end of file diff --git a/ui/ui/sections/user-header.tpl b/ui/ui/sections/user-header.tpl index 1ad1720..5ce0398 100644 --- a/ui/ui/sections/user-header.tpl +++ b/ui/ui/sections/user-header.tpl @@ -165,4 +165,12 @@
-{if isset($notify)}{$notify}{/if} \ No newline at end of file + +{if isset($notify)} +
+ +
{$notify}
+
+{/if} \ No newline at end of file