From 82f013281a4eef27c1966da83663f2073bdb1240 Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 1 Aug 2023 08:55:53 +0000 Subject: [PATCH] * Refactor the consistency view. --- module/upgrade/ui/consistency.html.php | 59 ++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 module/upgrade/ui/consistency.html.php diff --git a/module/upgrade/ui/consistency.html.php b/module/upgrade/ui/consistency.html.php new file mode 100644 index 0000000000..b5200895dc --- /dev/null +++ b/module/upgrade/ui/consistency.html.php @@ -0,0 +1,59 @@ + + * @package upgrade + * @link https://www.zentao.net + */ +namespace zin; + +set::zui(true); + +div +( + set::id('main'), + div + ( + set::id('mainContent'), + set::style(array('margin' => '50px auto 0', 'width' => '800px')), + set::class('bg-white p-4'), + div + ( + set::class('article-h1 mb-4'), + $lang->upgrade->consistency + ), + div + ( + set::class('border p-4 mb-4'), + set::style(array('background-color' => 'var(--color-gray-100)')), + div + ( + set::class('article-h3 mb-2'), + $lang->upgrade->noticeSQL + ), + div + ( + set::class('text-danger leading-loose'), + html("SET @@sql_mode= '';
"), + html(nl2br($alterSQL)), + ) + ), + div + ( + set::class('text-center'), + btn + ( + on::click('loadCurrentPage'), + set::type('primary'), + set::class('px-10'), + $lang->refresh, + ) + ) + ) +); + +render('pagebase'); +