From e4955896da59c9eacb878c300a7130fef8ad22aa Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 10 Jul 2017 17:45:04 -0500 Subject: [PATCH] Show user followed by HRM in User Information page - refs BT#12955 --- main/admin/user_information.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/main/admin/user_information.php b/main/admin/user_information.php index bd576175da..7f5f859755 100755 --- a/main/admin/user_information.php +++ b/main/admin/user_information.php @@ -613,6 +613,34 @@ if ($hrmList) { echo ''; } +if ($user['status'] == DRH) { + $usersAssigned = UserManager::get_users_followed_by_drh($userId); + + if ($usersAssigned) { + echo Display::page_subheader(get_lang('AssignedUsersListToHumanResourcesManager')); + echo '
'; + + foreach ($usersAssigned as $userAssigned) { + $userAssigned = api_get_user_info($userAssigned['user_id']); + $userPicture = isset($userAssigned["avatar_medium"]) ? $userAssigned["avatar_medium"] : $userAssigned["avatar"]; + + echo '
'; + echo '
'; + echo '
'; + echo Display::img($userPicture, $userAssigned['complete_name'], ['class' => 'media-object'], false); + echo '
'; + echo '
'; + echo '

'.$userAssigned['complete_name'].'

'; + echo $userAssigned['username']; + echo '
'; + echo '
'; + echo '
'; + } + + echo '
'; + } +} + if (api_get_setting('allow_social_tool') === 'true') { echo Display::page_subheader(get_lang('SocialData')); echo $socialInformation;