| @@ 2801-2812 (lines=12) @@ | ||
| 2798 | $content .= '<li>'; |
|
| 2799 | $content .= Display::tag('h3', Security::remove_XSS($group['name'])); |
|
| 2800 | $users = self::getTutors($group); |
|
| 2801 | if (!empty($users)) { |
|
| 2802 | $content .= '<ul>'; |
|
| 2803 | $content .= "<li>".Display::tag('h4', get_lang('Tutors'))."</li><ul>"; |
|
| 2804 | foreach ($users as $user) { |
|
| 2805 | $user_info = api_get_user_info($user['user_id']); |
|
| 2806 | $content .= '<li title="'.$user_info['username'].'">'. |
|
| 2807 | $user_info['complete_name_with_username']. |
|
| 2808 | '</li>'; |
|
| 2809 | } |
|
| 2810 | $content .= '</ul>'; |
|
| 2811 | $content .= '</ul>'; |
|
| 2812 | } |
|
| 2813 | ||
| 2814 | $users = self::getStudents($group['iid']); |
|
| 2815 | if (!empty($users)) { |
|
| @@ 2815-2826 (lines=12) @@ | ||
| 2812 | } |
|
| 2813 | ||
| 2814 | $users = self::getStudents($group['iid']); |
|
| 2815 | if (!empty($users)) { |
|
| 2816 | $content .= '<ul>'; |
|
| 2817 | $content .= "<li>".Display::tag('h4', get_lang('Students'))."</li><ul>"; |
|
| 2818 | foreach ($users as $user) { |
|
| 2819 | $user_info = api_get_user_info($user['user_id']); |
|
| 2820 | $content .= '<li title="'.$user_info['username'].'">'. |
|
| 2821 | $user_info['complete_name_with_username']. |
|
| 2822 | '</li>'; |
|
| 2823 | } |
|
| 2824 | $content .= '</ul>'; |
|
| 2825 | $content .= '</ul>'; |
|
| 2826 | } |
|
| 2827 | $content .= '</li>'; |
|
| 2828 | } |
|
| 2829 | } |
|