From 91d16c04eea2233d1ef5e93b56c0e37c4a2c10c2 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Wed, 17 Apr 2019 08:50:26 +0800 Subject: [PATCH] * Code for traingoal. --- module/dept/model.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/module/dept/model.php b/module/dept/model.php index 2873382b13..2a4fc62b28 100644 --- a/module/dept/model.php +++ b/module/dept/model.php @@ -203,6 +203,19 @@ class deptModel extends model return $linkHtml; } + /** + * Create the traingoal member link. + * + * @param int $dept + * @access public + * @return string + */ + public function traingoalMemberLink($dept, $planID) + { + $linkHtml = html::a(helper::createLink('traingoal', 'browse', "goalID={$planID}&type=company&dept={$dept->id}&"), $dept->name, '_self', "id='dept{$dept->id}'"); + return $linkHtml; + } + /** * Create the group manage members link. *