Adding link when a teacher goes to the \"My reporting\" tab

skala
Julio Montoya 15 years ago
parent 9d740228c5
commit 6f3835f3d2
  1. 13
      main/mySpace/index.php

@ -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">&nbsp;'.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">&nbsp;'.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">&nbsp;'.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();

Loading…
Cancel
Save