= '$current_date' GROUP BY access_user_id"; $result = Database::query($sql); while($user_list = Database::fetch_array($result)) { $students_online[$user_list['access_user_id']] = $user_list; } } if (count($students_online) > 0) { foreach ($students_online as $student_online) { echo " "; } } else { echo ' '; } } ?>
"; echo $student_online['name']; echo " "; $courseInfo = api_get_course_info_by_id($student_online['c_id']); echo $courseInfo['title']; echo " "; if (!empty($student_online['email'])) { echo $student_online['email']; } else { echo get_lang('NoEmail'); } echo " "; echo ' -> '; echo "
'.get_lang('NoOnlineStudents').'