|
|
|
@ -160,7 +160,7 @@ echo '<a href="javascript: void(0);" onclick="javascript: window.print()">'. |
|
|
|
|
Display::return_icon('printer.png', get_lang('Print'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
|
echo '</span>'; |
|
|
|
|
|
|
|
|
|
if (!empty($session_id) && !in_array($display, array('accessoverview','lpprogressoverview','progressoverview'))) { |
|
|
|
|
if (!empty($session_id) && !in_array($display, array('accessoverview','lpprogressoverview','progressoverview','exerciseprogress'))) { |
|
|
|
|
echo '<a href="index.php">'.Display::return_icon('back.png', get_lang('Back'),'',ICON_SIZE_MEDIUM).'</a>'; |
|
|
|
|
if (!api_is_platform_admin()) { |
|
|
|
|
if (api_get_setting('add_users_by_coach') == 'true') { |
|
|
|
@ -183,7 +183,7 @@ if (!empty($session_id) && !in_array($display, array('accessoverview','lpprogres |
|
|
|
|
|
|
|
|
|
// Actions menu |
|
|
|
|
$nb_menu_items = count($menu_items); |
|
|
|
|
if (empty($session_id) || in_array($display, array('accessoverview','lpprogressoverview', 'progressoverview'))) { |
|
|
|
|
if (empty($session_id) || in_array($display, array('accessoverview','lpprogressoverview', 'progressoverview', 'exerciseprogress'))) { |
|
|
|
|
if ($nb_menu_items > 1) { |
|
|
|
|
foreach ($menu_items as $key => $item) { |
|
|
|
|
echo $item; |
|
|
|
@ -204,7 +204,7 @@ $sessionFilter->addElement('select_ajax', 'session_name', get_lang('SearchCourse |
|
|
|
|
$courseListUrl = api_get_self(); |
|
|
|
|
|
|
|
|
|
#show filter by session |
|
|
|
|
if ($is_platform_admin && $view == 'admin' && in_array($display, array('accessoverview','lpprogressoverview', 'progressoverview'))) { |
|
|
|
|
if ($is_platform_admin && $view == 'admin' && in_array($display, array('accessoverview','lpprogressoverview', 'progressoverview', 'exerciseprogress'))) { |
|
|
|
|
echo '<div class="pull-right">'; |
|
|
|
|
echo $sessionFilter->return_form(); |
|
|
|
|
echo '</div>'; |
|
|
|
@ -608,6 +608,7 @@ if ($is_platform_admin && in_array($view, array('admin')) && $display != 'yourst |
|
|
|
|
echo ' | <a href="'.api_get_self().'?view=admin&display=accessoverview">'.get_lang('DisplayAccessOverview').'</a>'; |
|
|
|
|
echo ' | <a href="'.api_get_self().'?view=admin&display=lpprogressoverview">'.get_lang('DisplayLpProgressOverview').'</a>'; |
|
|
|
|
echo ' | <a href="'.api_get_self().'?view=admin&display=progressoverview">'.get_lang('DisplayProgressOverview').'</a>'; |
|
|
|
|
echo ' | <a href="'.api_get_self().'?view=admin&display=exerciseprogress">'.get_lang('DisplayExerciseProgress').'</a>'; |
|
|
|
|
echo ' | <a href="'.api_get_self().'?view=admin&display=courseoverview">'.get_lang('DisplayCourseOverview').'</a>'; |
|
|
|
|
echo ' | <a href="'.api_get_path(WEB_CODE_PATH).'tracking/question_course_report.php?view=admin">'.get_lang('LPQuestionListResults').'</a>'; |
|
|
|
|
echo ' | <a href="'.api_get_path(WEB_CODE_PATH).'tracking/course_session_report.php?view=admin">'.get_lang('LPExerciseResultsBySession').'</a>'; |
|
|
|
@ -625,13 +626,19 @@ if ($is_platform_admin && in_array($view, array('admin')) && $display != 'yourst |
|
|
|
|
} |
|
|
|
|
} else if($display == 'lpprogressoverview') { |
|
|
|
|
if (!empty($_GET['session_id'])) { |
|
|
|
|
echo MySpace::display_tracking_lp_progress_overview($_GET['session_id']); |
|
|
|
|
echo MySpace::display_tracking_lp_progress_overview(intval($_GET['session_id'])); |
|
|
|
|
} else { |
|
|
|
|
Display::display_warning_message(get_lang('ChooseSession')); |
|
|
|
|
} |
|
|
|
|
} else if($display == 'progressoverview') { |
|
|
|
|
if (!empty($_GET['session_id'])) { |
|
|
|
|
echo MySpace::display_tracking_progress_overview($_GET['session_id']); |
|
|
|
|
echo MySpace::display_tracking_progress_overview(intval($_GET['session_id'])); |
|
|
|
|
} else { |
|
|
|
|
Display::display_warning_message(get_lang('ChooseSession')); |
|
|
|
|
} |
|
|
|
|
} else if($display == 'exerciseprogress') { |
|
|
|
|
if (!empty($_GET['session_id'])) { |
|
|
|
|
echo MySpace::display_tracking_exercise_progress_overview(intval($_GET['session_id'])); |
|
|
|
|
} else { |
|
|
|
|
Display::display_warning_message(get_lang('ChooseSession')); |
|
|
|
|
} |
|
|
|
|