$upcoming_exams_in_class[$key]['modifiable'] = true; //If an exam is within the blackout date range, it has a specific deadline if (strtotime($upcoming_exams_in_class[$key]['exam_date']) >= strtotime($blackout_dates['start']) && strtotime($upcoming_exams_in_class[$key]['exam_date']) <= strtotime($blackout_dates['end'])) { if (time() > strtotime(PROFESSOR_NOE_SUBMISSION_BLACKOUT_STUDENT_RESPONSE_DEADLINE)) { //Exam is no longer eligible for a cancellation of withdrawal $upcoming_exams_in_class[$key]['modifiable'] = false; } } else { if (strtotime(date('Y-m-d', strtotime("+" . STUDENT_RESPONSE_TO_EXAM_ALLOWED_UNTIL_DAYS_BEFORE_EXAM . " days", time())) . " 23:59:59") > strtotime($upcoming_exams_in_class[$key]['exam_date'])) { $upcoming_exams_in_class[$key]['modifiable'] = false; } } } } $semester = \Ventus\Utilities\Functions::fetchSemester(); $student_courses = $profile->fetchStudentAllCoursesNeedingConfirmation($SESSION->student_num); foreach ($student_courses as $sc) { //For each course that a student is registered in, find the NOE for which the students can still respond $exams_awaiting_response_for_course = $model->fetchExamsAwaitingResponse($SESSION->student_num, $sc['code'], $sc['section'], $sc['session'], $sc['teaching_method']); if (!empty($exams_awaiting_response_for_course)) { $numberOfExams = sizeof($exams_awaiting_response_for_course); for ($i = 0; $i < $numberOfExams; ++$i) { //Unset = false: Exam will be shown to the user as an exam that is awaiting response $unset = false; //If an exam is within the blackout date range, it has a specific deadline if (strtotime($exams_awaiting_response_for_course[$i]['exam_date']) >= strtotime($blackout_dates['start']) && strtotime($exams_awaiting_response_for_course[$i]['exam_date']) <= strtotime($blackout_dates['end'])) { if (time() > strtotime(PROFESSOR_NOE_SUBMISSION_BLACKOUT_STUDENT_RESPONSE_DEADLINE)) { //Exam is no longer eligible for a response $unset = true; } } else {