From 4f131b3d33b972953e772fbfe54a9520a8c86a35 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 29 Aug 2024 16:22:10 +0800 Subject: [PATCH] * [refac bug #54638] Adjust code. --- module/execution/ui/activate.html.php | 6 +----- module/execution/ui/close.html.php | 12 ++---------- module/execution/ui/putoff.html.php | 6 +----- module/execution/ui/start.html.php | 7 +------ module/execution/ui/suspend.html.php | 6 +----- 5 files changed, 6 insertions(+), 31 deletions(-) diff --git a/module/execution/ui/activate.html.php b/module/execution/ui/activate.html.php index f3c5cdc56e..d1e6f77e03 100644 --- a/module/execution/ui/activate.html.php +++ b/module/execution/ui/activate.html.php @@ -11,11 +11,7 @@ declare(strict_types=1); namespace zin; $space = common::checkNotCN() ? ' ' : ''; -modalHeader -( - set::title($lang->execution->activate . $space . $lang->executionCommon) -); - +modalHeader(set::title($lang->execution->activate . $space . $lang->executionCommon)); formPanel ( set::submitBtnText($lang->execution->activate . $space . $lang->executionCommon), diff --git a/module/execution/ui/close.html.php b/module/execution/ui/close.html.php index b89ab51f6e..56267e31d4 100644 --- a/module/execution/ui/close.html.php +++ b/module/execution/ui/close.html.php @@ -11,11 +11,7 @@ declare(strict_types=1); namespace zin; $space = common::checkNotCN() ? ' ' : ''; -modalHeader -( - set::title($lang->execution->close . $space . $lang->executionCommon), -); - +modalHeader(set::title($lang->execution->close . $space . $lang->executionCommon)); formPanel ( set::submitBtnText($lang->execution->close . $space . $lang->executionCommon), @@ -30,11 +26,7 @@ formPanel formGroup ( set::label($lang->comment), - editor - ( - set::name('comment'), - set::rows('6') - ) + editor(set::name('comment'), set::rows('6')) ) ); hr(); diff --git a/module/execution/ui/putoff.html.php b/module/execution/ui/putoff.html.php index b2f4bdefb7..d00bd7e639 100644 --- a/module/execution/ui/putoff.html.php +++ b/module/execution/ui/putoff.html.php @@ -12,12 +12,8 @@ namespace zin; jsVar('weekend', $config->execution->weekend); -modalHeader -( - set::title($lang->execution->putoff . $space . $lang->executionCommon), -); - $space = common::checkNotCN() ? ' ' : ''; +modalHeader(set::title($lang->execution->putoff . $space . $lang->executionCommon)); formPanel ( set::submitBtnText($lang->execution->putoff . $space . $lang->executionCommon), diff --git a/module/execution/ui/start.html.php b/module/execution/ui/start.html.php index 8f5d2090d5..0a1d9a0288 100644 --- a/module/execution/ui/start.html.php +++ b/module/execution/ui/start.html.php @@ -11,12 +11,7 @@ declare(strict_types=1); namespace zin; $space = common::checkNotCN() ? ' ' : ''; - -modalHeader -( - set::title($lang->execution->start . $space . $lang->executionCommon), -); - +modalHeader(set::title($lang->execution->start . $space . $lang->executionCommon)); formPanel ( set::submitBtnText($lang->execution->start . $space . $lang->executionCommon), diff --git a/module/execution/ui/suspend.html.php b/module/execution/ui/suspend.html.php index ff94a4082e..8f5b2e853a 100644 --- a/module/execution/ui/suspend.html.php +++ b/module/execution/ui/suspend.html.php @@ -10,12 +10,8 @@ declare(strict_types=1); */ namespace zin; -modalHeader -( - set::title($lang->execution->suspend . $space . $lang->executionCommon) -); - $space = common::checkNotCN() ? ' ' : ''; +modalHeader(set::title($lang->execution->suspend . $space . $lang->executionCommon)); formPanel ( set::submitBtnText($lang->execution->suspend . $space . $lang->executionCommon),