|
|
|
@ -198,8 +198,9 @@ if ($is_drh || $_GET['display'] == 'yourstudents') { |
|
|
|
|
$nb_menu_items = count($menu_items); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($nb_teacher_courses > 0 ) { |
|
|
|
|
echo '<div class="actions-title" style ="font-size:10pt;">'; |
|
|
|
|
echo '<div class="actions-title" style ="font-size:10pt;">'; |
|
|
|
|
if ($nb_menu_items > 1) { |
|
|
|
|
foreach ($menu_items as $key => $item) { |
|
|
|
|
echo $item; |
|
|
|
@ -214,11 +215,17 @@ if ($nb_teacher_courses > 0 ) { |
|
|
|
|
} else { |
|
|
|
|
echo (isset($_GET['display']) && $_GET['display'] == 'useroverview')? '' : '<a href="'.api_get_self().'?export=csv&view='.$view.'"><img align="absbottom" src="../img/csv.gif"> '.get_lang('ExportAsCSV').'</a>'; |
|
|
|
|
} |
|
|
|
|
echo '</div>'; |
|
|
|
|
echo '<a href="'.api_get_path(WEB_CODE_PATH).'auth/my_progress.php"><img align="absbottom" src="../img/statistics.gif"> '.get_lang('MyStudentReporting').'</a> '; |
|
|
|
|
echo '</div>'; |
|
|
|
|
} else { |
|
|
|
|
echo '<div class="actions-title" style ="font-size:10pt;">'; |
|
|
|
|
echo '<a href="'.api_get_path(WEB_CODE_PATH).'auth/my_progress.php"><img align="absbottom" src="../img/reporting.gif"> '.get_lang('MyStudentReporting').'</a> '; |
|
|
|
|
|
|
|
|
|
echo '</div>'; |
|
|
|
|
Display::display_warning_message(get_lang('HaveNoCourse')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<h4>'.$title.'</h4>'; |
|
|
|
|
|
|
|
|
|
if (($is_drh && $view == 'drh') || $_GET['display'] == 'yourstudents') { |
|
|
|
@ -768,6 +775,8 @@ if ($export_csv) { |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//footer |
|
|
|
|
if (!$export_csv) { |
|
|
|
|
Display::display_footer(); |
|
|
|
|