* Set working way when install it.

This commit is contained in:
daitingting
2017-05-02 17:07:18 +08:00
parent 4b2202d3f6
commit 00126f3d97
3 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -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'));
}
+6
View File
@@ -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 = '数据库创建失败';
+4
View File
@@ -49,6 +49,10 @@
<th class='w-100px'><?php echo $lang->install->company;?></th>
<td><?php echo html::input('company', '', "class='form-control' autocomplete='off'");?></td>
</tr>
<tr>
<th><?php echo $lang->install->working;?></th>
<td><?php echo html::select('flow', $lang->install->workingList, 'full', "class='form-control chosen'");?></td>
</tr>
<tr>
<th><?php echo $lang->install->account;?></th>
<td><?php echo html::input('account', '', "class='form-control' autocomplete='off'");?></td>