diff --git a/module/custom/control.php b/module/custom/control.php index 414aecfdfd..025c6d528a 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -594,6 +594,34 @@ class custom extends control $this->display(); } + /** + * Set Mode. + * + * @access public + * @return void + */ + public function mode() + { + 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')); + } + + $after15mode = zget($this->config->custom, 'after15mode', 'old'); + if($after15mode == 'new') + { + if(isset($this->config->global->upgradeStep) and $this->config->global->upgradeStep == 'mergeProgram') $this->locate($this->createLink('upgrade', 'mergeProgram')); + + unset($_SESSION['upgrading']); + $this->locate(inlink('index')); + } + + $this->app->loadLang('upgrade'); + $this->display(); + } + /** * Ajax save custom fields. * diff --git a/module/custom/lang/zh-cn.php b/module/custom/lang/zh-cn.php index 6339b67a74..92ee02828e 100644 --- a/module/custom/lang/zh-cn.php +++ b/module/custom/lang/zh-cn.php @@ -38,6 +38,7 @@ $lang->custom->URStory = "用户需求"; $lang->custom->SRStory = "软件需求"; $lang->custom->epic = "史诗"; $lang->custom->default = "默认"; +$lang->custom->mode = "模式"; $lang->custom->scrumStory = "故事"; $lang->custom->waterfallCommon = "瀑布"; $lang->custom->buildin = "系统内置"; diff --git a/module/custom/view/header.html.php b/module/custom/view/header.html.php index f2644be41e..d6ff2052d6 100644 --- a/module/custom/view/header.html.php +++ b/module/custom/view/header.html.php @@ -12,6 +12,10 @@ { common::printLink('custom', $sysObject, "", "{$lang->custom->$sysObject}", '', "class='btn btn-link' id='{$sysObject}Tab'"); } + if(isset($config->custom->after15mode) and $config->custom->after15mode == '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 new file mode 100644 index 0000000000..d9b5cfe816 --- /dev/null +++ b/module/custom/view/mode.html.php @@ -0,0 +1,36 @@ + + * @package custom + * @version $Id$ + * @link http://www.zentao.net + */ +?> + +
尊敬的用户,感谢对禅道的支持。自20版本开始,禅道全面升级成为通用的项目管理平台。相关介绍请看如下视频(如视频无法正常播放,请直接访问 禅道20版本介绍):
友情提示:
-您可以在线体验最新版本的功能以决定是否启用的模式:演示链接。
+请问您计划如何使用禅道的新版本呢?
EOD; $lang->upgrade->mergeProgramDesc = <<