* @package chamilo.attendance */ if (api_is_allowed_to_edit(null, true)) { $param_gradebook = ''; if (isset($_SESSION['gradebook'])) { $param_gradebook = '&gradebook='.$_SESSION['gradebook']; } echo '
'; echo ''.Display::return_icon('calendar_up.gif',get_lang('AttendanceCalendar')).' '.get_lang('AttendanceCalendar').''; echo '
'; $message_information = get_lang('informationAttendanceSheet'); if (!empty($message_information)) { $message = ''.get_lang('Information').'
'; $message .= $message_information; Display::display_normal_message($message, false); } ?> 0) { ?>
0 ) { foreach ($attendant_calendar as $calendar) { $date = $calendar['date']; $time = $calendar['time']; $datetime = $date.'
'.$time; $img_lock = Display::return_icon('lock.gif',get_lang('DateLock'),array('class'=>'img_lock','id'=>'datetime_column_'.$calendar['id'])); if (!empty($calendar['done_attendance'])){ $datetime = ''.$date.'
'.$time.'
'; } $disabled_check = 'disabled'; $input_hidden = ''; if ($next_attendance_calendar_id == $calendar['id']) { $input_hidden = ''; $disabled_check = ''; $img_lock = Display::return_icon('unlock.gif',get_lang('DateUnlock'),array('class'=>'img_unlock','id'=>'datetime_column_'.$calendar['id'])); } ?> 0 ) { foreach ($attendant_calendar as $calendar) { $checked = 'checked'; if (isset($users_presence[$user['user_id']][$calendar['id']]['presence'])) { $presence = $users_presence[$user['user_id']][$calendar['id']]['presence']; if (intval($presence) == 1) { $checked = 'checked'; } else { $checked = ''; } } $disabled = 'disabled'; $style_td = ''; if ($next_attendance_calendar_id == $calendar['id']) { $style_td = 'background-color:#e1e1e1'; $disabled = ''; } ?>
'.$datetime.' '.$img_lock.'
'.$input_hidden.'
' ?>
/>
 
'.get_lang('ThereAreNoRegisteredLearnersInsidetheCourse').''; } } else { // View for students ?>