From 723394fd3b9ab5e7c5d9862a3db69029c879432f Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Mon, 27 May 2019 15:17:03 +0800 Subject: [PATCH 1/7] * Finish task #5458. --- module/action/model.php | 2 +- module/company/view/dynamic.html.php | 11 ++++++++++- module/product/view/dynamic.html.php | 11 ++++++++++- module/project/view/dynamic.html.php | 11 ++++++++++- 4 files changed, 31 insertions(+), 4 deletions(-) diff --git a/module/action/model.php b/module/action/model.php index 11a69d2cc8..12af391227 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -1052,7 +1052,7 @@ class actionModel extends model foreach($actions as $action) { $timeStamp = strtotime(isset($action->originalDate) ? $action->originalDate : $action->date); - $date = date(DT_DATE4, $timeStamp); + $date = $this->app->getClientLang() == 'en' ? date('M d', $timeStamp) : date(DT_DATE4, $timeStamp); $action->time = date(DT_TIME2, $timeStamp); $dateGroup[$date][] = $action; } diff --git a/module/company/view/dynamic.html.php b/module/company/view/dynamic.html.php index 895a431dd5..6ab0150ea0 100644 --- a/module/company/view/dynamic.html.php +++ b/module/company/view/dynamic.html.php @@ -39,7 +39,16 @@
$actions):?> - + app->getClientLang() == 'en') + { + $isToday = date('M d') == $date; + } + else + { + $isToday = date(DT_DATE4) == $date; + } + ?>
diff --git a/module/product/view/dynamic.html.php b/module/product/view/dynamic.html.php index de1858fe8a..a6a9adbe3f 100755 --- a/module/product/view/dynamic.html.php +++ b/module/product/view/dynamic.html.php @@ -39,7 +39,16 @@ $actions):?> - + app->getClientLang() == 'en') + { + $isToday = date('M d') == $date; + } + else + { + $isToday = date(DT_DATE4) == $date; + } + ?>
diff --git a/module/project/view/dynamic.html.php b/module/project/view/dynamic.html.php index c1875b3433..b77efcea5a 100755 --- a/module/project/view/dynamic.html.php +++ b/module/project/view/dynamic.html.php @@ -40,7 +40,16 @@
$actions):?> - + app->getClientLang() == 'en') + { + $isToday = date('M d') == $date; + } + else + { + $isToday = date(DT_DATE4) == $date; + } + ?>
From 1607193c434830a3bf91cf6e350b88b8a3129150 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Mon, 27 May 2019 16:42:44 +0800 Subject: [PATCH 2/7] * Code for dayup. --- module/tree/control.php | 8 ++++++++ module/tree/view/browse.html.php | 14 +++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/module/tree/control.php b/module/tree/control.php index 6f0323946e..dd4ee7b392 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -163,6 +163,14 @@ class tree extends control $title = $this->lang->tree->manageTrainskill; $position[] = $this->lang->tree->manageTrainskill; } + elseif($viewType == 'trainpost') + { + $this->lang->set('menugroup.tree', 'train'); + $this->lang->tree->menu = $this->lang->trainpost->menu; + + $title = $this->lang->tree->manageTrainpost; + $position[] = $this->lang->tree->manageTrainpost; + } $parentModules = $this->tree->getParents($currentModuleID); $this->view->title = $title; diff --git a/module/tree/view/browse.html.php b/module/tree/view/browse.html.php index ba380cf525..6b2351bac4 100644 --- a/module/tree/view/browse.html.php +++ b/module/tree/view/browse.html.php @@ -15,7 +15,7 @@ app->loadLang('doc');?> type) && $root->type != 'normal')) ? true : false;?> tree->line : (($viewType == 'doc' or $viewType == 'feedback') ? $lang->tree->cate : $lang->tree->name);?> -doc->childType : $lang->tree->child);?> +doc->childType : $lang->tree->child);?>