| @@ 2770-2781 (lines=12) @@ | ||
| 2767 | $content .= Display::tag('h3', Security::remove_XSS($group['name'])); |
|
| 2768 | ||
| 2769 | $users = GroupManager::getTutors($group['id']); |
|
| 2770 | if (!empty($users)) { |
|
| 2771 | $content .= '<ul>'; |
|
| 2772 | $content .= "<li>".Display::tag('h4', get_lang('Tutors'))."</li><ul>"; |
|
| 2773 | foreach ($users as $user) { |
|
| 2774 | $user_info = api_get_user_info($user['user_id']); |
|
| 2775 | $content .= '<li title="'.$user_info['username'].'">'. |
|
| 2776 | $user_info['complete_name_with_username']. |
|
| 2777 | '</li>'; |
|
| 2778 | } |
|
| 2779 | $content .= '</ul>'; |
|
| 2780 | $content .= '</ul>'; |
|
| 2781 | } |
|
| 2782 | ||
| 2783 | $users = GroupManager::getStudents($group['id']); |
|
| 2784 | if (!empty($users)) { |
|
| @@ 2784-2795 (lines=12) @@ | ||
| 2781 | } |
|
| 2782 | ||
| 2783 | $users = GroupManager::getStudents($group['id']); |
|
| 2784 | if (!empty($users)) { |
|
| 2785 | $content .= '<ul>'; |
|
| 2786 | $content .= "<li>".Display::tag('h4', get_lang('Students'))."</li><ul>"; |
|
| 2787 | foreach ($users as $user) { |
|
| 2788 | $user_info = api_get_user_info($user['user_id']); |
|
| 2789 | $content .= '<li title="'.$user_info['username'].'">'. |
|
| 2790 | $user_info['complete_name_with_username']. |
|
| 2791 | '</li>'; |
|
| 2792 | } |
|
| 2793 | $content .= '</ul>'; |
|
| 2794 | $content .= '</ul>'; |
|
| 2795 | } |
|
| 2796 | $content .= '</li>'; |
|
| 2797 | } |
|
| 2798 | } |
|