diff --git a/module/common/lang/en.php b/module/common/lang/en.php index 9366dac90b..862286a9a4 100644 --- a/module/common/lang/en.php +++ b/module/common/lang/en.php @@ -69,6 +69,7 @@ $lang->hideNotCheck = 'Hide not checked field'; $lang->quitNovice = 'Quit novice'; $lang->enterNovice = 'Enter novice'; $lang->homepage = 'Set homepage'; +$lang->tutorial = 'Novice tutorial'; $lang->customMenu = 'Custom menu'; $lang->preShortcutKey = '[Shortcut key:←]'; diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php index 0f80b6d6b5..77f2011e81 100644 --- a/module/common/lang/zh-cn.php +++ b/module/common/lang/zh-cn.php @@ -69,6 +69,7 @@ $lang->hideNotCheck = '页面隐藏取消选中字段'; $lang->quitNovice = '退出新手'; $lang->enterNovice = '进入新手'; $lang->homepage = '设为主页'; +$lang->tutorial = '新手教程'; $lang->customMenu = '自定义导航'; $lang->preShortcutKey = '[快捷键:←]'; diff --git a/module/common/model.php b/module/common/model.php index 4d9b40e429..ee5baf17c5 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -298,6 +298,7 @@ class commonModel extends model if($app->company->website) echo html::a($app->company->website, $lang->company->website, '_blank'); if($app->company->backyard) echo html::a($app->company->backyard, $lang->company->backyard, '_blank'); + echo html::a(helper::createLink('tutorial', 'start'), $lang->tutorial, '', "class='iframe' data-width='800' data-headerless='true'"); echo html::a('javascript:;', $lang->help, '', "class='open-help-tab'"); echo html::a(helper::createLink('misc', 'about'), $lang->aboutZenTao, '', "class='about iframe' data-width='900' data-headerless='true' data-class='modal-about'"); } diff --git a/module/tutorial/control.php b/module/tutorial/control.php new file mode 100644 index 0000000000..edf2fbd8c2 --- /dev/null +++ b/module/tutorial/control.php @@ -0,0 +1,33 @@ + + * @package tutorial + * @version $Id: control.php 5002 2013-07-03 08:25:39Z chencongzhi520@gmail.com $ + * @link http://www.zentao.net + */ +class tutorial extends control +{ + /** + * Start page + * @access public + * @return void + */ + public function start() + { + $this->display(); + } + + /** + * Index page + * @access public + * @return void + */ + public function index() + { + $this->display(); + } +} diff --git a/module/tutorial/css/start.css b/module/tutorial/css/start.css new file mode 100644 index 0000000000..ccc5479f90 --- /dev/null +++ b/module/tutorial/css/start.css @@ -0,0 +1,6 @@ +#start {background: #EBF2F9; padding: 40px; text-align: center;} +.start-icon {position: relative; width: 140px; height: 140px; margin: 0 auto; line-height: 140px;} +.start-icon > .icon-back {font-size: 140px; color: #114f8e} +.start-icon > .icon-front {font-size: 56px; position: absolute; top: 35px; left: 35px; color: #EBF2F9; z-index: 10; width: 70px; height: 70px; text-align: center; line-height: 70px;} +.start-icon > .icon-spin {-moz-animation: spin 15s infinite linear;-o-animation: spin 15s infinite linear;-webkit-animation: spin 15s infinite linear;animation: spin 15s infinite linear;} +#start > h1, #start > p {margin-bottom: 20px} diff --git a/module/tutorial/lang/en.php b/module/tutorial/lang/en.php new file mode 100644 index 0000000000..198d5eb287 --- /dev/null +++ b/module/tutorial/lang/en.php @@ -0,0 +1,15 @@ + + * @package ZenTaoPMS + * @version $Id: zh-cn.php 5116 2013-07-12 06:37:48Z sunhao@cnezsoft.com $ + * @link http://www.zentao.net + */ +$lang->tutorial = new stdclass(); +$lang->tutorial->common = 'Novice tutorial'; +$lang->tutorial->desc = 'Learn zentao through a series of tasks. This may cost you 10 minutes, you can quit anytime.'; +$lang->tutorial->start = 'Let\'s go!'; diff --git a/module/tutorial/lang/zh-cn.php b/module/tutorial/lang/zh-cn.php new file mode 100644 index 0000000000..7716a5a7b5 --- /dev/null +++ b/module/tutorial/lang/zh-cn.php @@ -0,0 +1,16 @@ + + * @package ZenTaoPMS + * @version $Id: zh-cn.php 5116 2013-07-12 06:37:48Z sunhao@cnezsoft.com $ + * @link http://www.zentao.net + */ + +$lang->tutorial = new stdclass(); +$lang->tutorial->common = '新手教程'; +$lang->tutorial->desc = '通过完成一系列任务,快速了解禅道的基本使用方法。这可能会花费您10分钟,你可以随时退出任务。'; +$lang->tutorial->start = '立即开始'; diff --git a/module/tutorial/view/start.html.php b/module/tutorial/view/start.html.php new file mode 100644 index 0000000000..a57d19d531 --- /dev/null +++ b/module/tutorial/view/start.html.php @@ -0,0 +1,23 @@ + + * @package tutorial + * @version $Id: browse.html.php 4728 2013-05-03 06:14:34Z sunhao@cnezsoft.com $ + * @link http://www.zentao.net + */ +?> + +
+
+ + +
+

tutorial->common ?>

+

tutorial->desc ?>

+ tutorial->start, '_top', "class='btn btn-primary btn-lg'");;?> +
+