From 00126f3d97582c5637ebc57f3e0fda1c3cb560be Mon Sep 17 00:00:00 2001 From: daitingting Date: Tue, 2 May 2017 17:07:18 +0800 Subject: [PATCH] * Set working way when install it. --- module/install/control.php | 2 +- module/install/lang/zh-cn.php | 6 ++++++ module/install/view/step4.html.php | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/module/install/control.php b/module/install/control.php index 96e99119d8..37981d457a 100644 --- a/module/install/control.php +++ b/module/install/control.php @@ -150,7 +150,7 @@ class install extends control if(dao::isError()) echo js::alert($this->lang->install->errorImportDemoData); $this->loadModel('setting')->updateVersion($this->config->version); - $this->loadModel('setting')->setItem('system.common.global.flow', 'full'); + $this->loadModel('setting')->setItem('system.common.global.flow', $this->post->flow); $this->loadModel('setting')->setItem('system.common.global.cron', 1); die(js::locate(inlink('step5'), 'parent')); } diff --git a/module/install/lang/zh-cn.php b/module/install/lang/zh-cn.php index 268eca4d9d..bc1f36b852 100644 --- a/module/install/lang/zh-cn.php +++ b/module/install/lang/zh-cn.php @@ -81,10 +81,16 @@ $lang->install->dbName = 'PMS使用的库'; $lang->install->dbPrefix = '建表使用的前缀'; $lang->install->clearDB = '清空现有数据'; $lang->install->importDemoData = '导入demo数据'; +$lang->install->working = '工作方式'; $lang->install->requestTypes['GET'] = '普通方式'; $lang->install->requestTypes['PATH_INFO'] = '静态友好方式'; +$lang->install->workingList['full'] = '完整研发管理工具'; +$lang->install->workingList['onlyTest'] = '测试管理工具'; +$lang->install->workingList['onlyStory'] = '需求管理工具'; +$lang->install->workingList['onlyTask'] = '任务管理工具'; + $lang->install->errorConnectDB = '数据库连接失败 '; $lang->install->errorDBName = '数据库名不能含有 “.” '; $lang->install->errorCreateDB = '数据库创建失败'; diff --git a/module/install/view/step4.html.php b/module/install/view/step4.html.php index ab125c8488..59a19882cb 100644 --- a/module/install/view/step4.html.php +++ b/module/install/view/step4.html.php @@ -49,6 +49,10 @@ install->company;?> + + install->working;?> + install->workingList, 'full', "class='form-control chosen'");?> + install->account;?>