Add hidden desing for hidden Attendances -ref #6880

1.9.x
Hubert Borderiou 11 years ago
parent b4d05f8e52
commit c49d736077
  1. 12
      main/inc/lib/attendance.lib.php

@ -151,8 +151,16 @@ class Attendance
}
} else {
$attendance[1] = '<a href="index.php?'.api_get_cidreq().'&action=attendance_sheet_list&attendance_id='.$attendance[0].$param_gradebook.$student_param.'"><del>'.$attendance[1].'</del></a>'.$session_star;
$attendance[1] = '<a class="muted" href="index.php?'.api_get_cidreq().'&action=attendance_sheet_list&attendance_id='.$attendance[0].$param_gradebook.$student_param.'">'.$attendance[1].'</a>'.$session_star;
}
if ($attendance[5] == 1) {
$attendance[3] = '<center>'.$attendance[3].'</center>';
}
else {
$attendance[3] = '<center><span class="muted">'.$attendance[3].'</span></center>';
}
$attendance[3] = '<center>'.$attendance[3].'</center>';
if (api_is_allowed_to_edit(null, true)) {
$actions = '';
@ -164,7 +172,7 @@ class Attendance
$actions .= '<a href="index.php?'.api_get_cidreq().'&action=attendance_delete&attendance_id='.$attendance[0].$param_gradebook.'">'.Display::return_icon('visible.png', get_lang('Hide'), array(), ICON_SIZE_SMALL).'</a>';
} else {
$actions .= '<a href="index.php?'.api_get_cidreq().'&action=attendance_restore&attendance_id='.$attendance[0].$param_gradebook.'">'.Display::return_icon('invisible.png', get_lang('Show'), array(), ICON_SIZE_SMALL).'</a>';
$attendance[2] = '<del>'.$attendance[2].'</del>';
$attendance[2] = '<span class="muted">'.$attendance[2].'</span>';
}
} else {
$is_locked_attendance = self::is_locked_attendance($attendance[0]);

Loading…
Cancel
Save