From 8a9fe39063dc6c828f37a3019a25165f6620f13e Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Tue, 23 Feb 2021 09:08:56 +0800 Subject: [PATCH 1/5] * Adjust the table style. --- module/personnel/view/putinto.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/personnel/view/putinto.html.php b/module/personnel/view/putinto.html.php index e3a12ef3af..74ff77e190 100644 --- a/module/personnel/view/putinto.html.php +++ b/module/personnel/view/putinto.html.php @@ -11,7 +11,8 @@ ?>
From 535fb750b3d81b977110104379960a3a195f9231 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 23 Feb 2021 09:12:20 +0800 Subject: [PATCH 2/5] * code for change after15mode to mode. --- module/custom/control.php | 10 +++++----- module/custom/view/header.html.php | 2 +- module/custom/view/mode.html.php | 2 +- module/upgrade/control.php | 8 ++++---- module/upgrade/view/to15guide.html.php | 4 ++-- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/module/custom/control.php b/module/custom/control.php index 025c6d528a..80829f22e8 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -604,13 +604,13 @@ class custom extends control { if($_POST) { - $after15mode = fixer::input('post')->get('after15mode'); - $this->loadModel('setting')->setItem('system.custom.after15mode', $after15mode); - if($after15mode == 'new') $this->locate($this->createLink('upgrade', 'mergeTips')); + $mode = fixer::input('post')->get('mode'); + $this->loadModel('setting')->setItem('system.common.global.mode', $mode); + if($mode == 'new') $this->locate($this->createLink('upgrade', 'mergeTips')); } - $after15mode = zget($this->config->custom, 'after15mode', 'old'); - if($after15mode == 'new') + $mode = zget($this->config->global, 'mode', 'old'); + if($mode == 'new') { if(isset($this->config->global->upgradeStep) and $this->config->global->upgradeStep == 'mergeProgram') $this->locate($this->createLink('upgrade', 'mergeProgram')); diff --git a/module/custom/view/header.html.php b/module/custom/view/header.html.php index d6ff2052d6..babd1f48d3 100644 --- a/module/custom/view/header.html.php +++ b/module/custom/view/header.html.php @@ -12,7 +12,7 @@ { common::printLink('custom', $sysObject, "", "{$lang->custom->$sysObject}", '', "class='btn btn-link' id='{$sysObject}Tab'"); } - if(isset($config->custom->after15mode) and $config->custom->after15mode == 'old') + if(isset($config->global->mode) and $config->global->mode == 'old') { common::printLink('custom', 'mode', "", "{$lang->custom->mode}", '', "class='btn btn-link' id='modeTab'"); } diff --git a/module/custom/view/mode.html.php b/module/custom/view/mode.html.php index d9b5cfe816..1b481d7a90 100644 --- a/module/custom/view/mode.html.php +++ b/module/custom/view/mode.html.php @@ -22,7 +22,7 @@ custom->mode;?> -

+

upgrade->selectedModeTips['new'];?>

diff --git a/module/upgrade/control.php b/module/upgrade/control.php index fbce010d4b..98e42a3459 100644 --- a/module/upgrade/control.php +++ b/module/upgrade/control.php @@ -161,11 +161,11 @@ class upgrade extends control { if($_POST) { - $after15mode = fixer::input('post')->get('after15mode'); - $this->loadModel('setting')->setItem('system.custom.after15mode', $after15mode); + $mode = fixer::input('post')->get('mode'); + $this->loadModel('setting')->setItem('system.common.global.mode', $mode); - if($after15mode == 'old') $this->locate(inlink('afterExec', "fromVersion=$fromVersion")); - if($after15mode == 'new') $this->locate(inlink('mergeTips')); + if($mode == 'old') $this->locate(inlink('afterExec', "fromVersion=$fromVersion")); + if($mode == 'new') $this->locate(inlink('mergeTips')); } $this->view->title = $this->lang->upgrade->to15Guide; diff --git a/module/upgrade/view/to15guide.html.php b/module/upgrade/view/to15guide.html.php index 876b7bc985..03d2ef6c21 100644 --- a/module/upgrade/view/to15guide.html.php +++ b/module/upgrade/view/to15guide.html.php @@ -18,7 +18,7 @@
upgrade->to15Desc;?> - upgrade->to15Mode, 'old');?> + upgrade->to15Mode, 'old');?>
upgrade->selectedModeTips['old'];?>
@@ -30,7 +30,7 @@