|
|
|
@ -7566,4 +7566,115 @@ class TrackingCourseLog |
|
|
|
|
return $users; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param string $current |
|
|
|
|
*/ |
|
|
|
|
public static function actionsLeft($current, $sessionId = 0) |
|
|
|
|
{ |
|
|
|
|
$usersLink = Display::url( |
|
|
|
|
Display::return_icon('user.png', get_lang('StudentsTracking'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
'courseLog.php?'.api_get_cidreq(true, false) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$groupsLink = Display::url( |
|
|
|
|
Display::return_icon('group.png', get_lang('GroupReporting'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
'course_log_groups.php?'.api_get_cidreq() |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$resourcesLink = Display::url( |
|
|
|
|
Display::return_icon('tools.png', get_lang('ResourcesTracking'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
'course_log_resources.php?'.api_get_cidreq(true, false) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$courseLink = Display::url( |
|
|
|
|
Display::return_icon('course.png', get_lang('CourseTracking'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
'course_log_tools.php?'.api_get_cidreq(true, false) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$examLink = Display::url( |
|
|
|
|
Display::return_icon('quiz.png', get_lang('ExamTracking'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
api_get_path(WEB_CODE_PATH).'tracking/exams.php?'.api_get_cidreq() |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$eventsLink = Display::url( |
|
|
|
|
Display::return_icon('changeme.png', get_lang('EventsReport'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
api_get_path(WEB_CODE_PATH).'tracking/course_log_events.php?'.api_get_cidreq() |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
$attendanceLink = ''; |
|
|
|
|
if (!empty($sessionId)) { |
|
|
|
|
$attendanceLink = Display::url( |
|
|
|
|
Display::return_icon('attendance_list.png', get_lang('Logins'), '', ICON_SIZE_MEDIUM), |
|
|
|
|
api_get_path(WEB_CODE_PATH).'attendance/index.php?'.api_get_cidreq().'&action=calendar_logins' |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
switch ($current) { |
|
|
|
|
case 'users': |
|
|
|
|
$usersLink = Display::url( |
|
|
|
|
Display::return_icon( |
|
|
|
|
'user_na.png', |
|
|
|
|
get_lang('StudentsTracking'), |
|
|
|
|
array(), |
|
|
|
|
ICON_SIZE_MEDIUM |
|
|
|
|
), |
|
|
|
|
'#' |
|
|
|
|
); |
|
|
|
|
break; |
|
|
|
|
case 'groups': |
|
|
|
|
$groupsLink = Display::url( |
|
|
|
|
Display::return_icon('group_na.png', get_lang('GroupReporting'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
'#' |
|
|
|
|
); |
|
|
|
|
break; |
|
|
|
|
case 'courses': |
|
|
|
|
$courseLink = Display::url( |
|
|
|
|
Display::return_icon('course_na.png', get_lang('CourseTracking'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
'#' |
|
|
|
|
); |
|
|
|
|
break; |
|
|
|
|
case 'resources': |
|
|
|
|
$resourcesLink = Display::url( |
|
|
|
|
Display::return_icon( |
|
|
|
|
'tools_na.png', |
|
|
|
|
get_lang('ResourcesTracking'), |
|
|
|
|
array(), |
|
|
|
|
ICON_SIZE_MEDIUM |
|
|
|
|
), '#' |
|
|
|
|
); |
|
|
|
|
break; |
|
|
|
|
case 'exams': |
|
|
|
|
$examLink = Display::url( |
|
|
|
|
Display::return_icon('quiz_na.png', get_lang('ExamTracking'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
'#' |
|
|
|
|
); |
|
|
|
|
break; |
|
|
|
|
case 'logs': |
|
|
|
|
$eventsLink = Display::url( |
|
|
|
|
Display::return_icon('changeme_na.png', get_lang('EventsReport'), array(), ICON_SIZE_MEDIUM), |
|
|
|
|
'#' |
|
|
|
|
); |
|
|
|
|
break; |
|
|
|
|
case 'attendance': |
|
|
|
|
if (!empty($sessionId)) { |
|
|
|
|
$attendanceLink = Display::url( |
|
|
|
|
Display::return_icon('attendance_list.png', get_lang('Logins'), '', ICON_SIZE_MEDIUM), |
|
|
|
|
'#' |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$items = [ |
|
|
|
|
$usersLink, |
|
|
|
|
$groupsLink, |
|
|
|
|
$courseLink, |
|
|
|
|
$resourcesLink, |
|
|
|
|
$examLink, |
|
|
|
|
$eventsLink, |
|
|
|
|
$attendanceLink |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
return implode('', $items).' '; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|