$PAGE->set_url('/local/scheduleexam/index.php'); //Header and the navigation bar $PAGE->set_heading($SITE->fullname); $PAGE->navbar->add(get_string('pageheading', 'local_scheduleexam'), new moodle_url('/local/scheduleexam/index.php')); $PAGE->navbar->add(get_string('info', 'local_scheduleexam')); echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('pageheading', 'local_scheduleexam')); //Heading of the page $systemcontext =context_system::instance(); if (has_capability('local/scheduleexam:manage', $systemcontext)) { $currenttab = 'info'; //adding tabs $exams->tabs($currenttab); } else { $currenttab = 'info'; //adding tabs $exams->studentside_tabs($currenttab); } // for description if (isset($CFG->allowframembedding) and ! $CFG->allowframembedding) { echo $OUTPUT->box(get_string('helpinfo', 'local_scheduleexam')); } $content = get_string('info_help', 'local_scheduleexam'); echo '<div class="help_cont">' . $content . '<div>'; echo $OUTPUT->footer();
$params = $DB->get_records_sql($sql_msg); foreach ($params as $param) { $msg = new object(); $msg->exam_name = $param->examtype . '-' . $param->lecturetype; $msg->course_name = $param->coursename; $msg->sem_name = $param->semestername; } $msg->classname = $class_name; // Create new if ($cres) { $message = get_string('createsuccess', 'local_scheduleexam', $msg); $options = array('style' => 'notifysuccess'); $hierarchy->set_confirmation($message, $returnurl, $options); } } redirect($returnurl); } echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('pageheading', 'local_scheduleexam')); $currenttab = 'create'; $exams->tabs($currenttab, $id); if ($id < 0) echo $OUTPUT->box(get_string('createexamdes', 'local_scheduleexam')); else echo $OUTPUT->box(get_string('editexamdes', 'local_scheduleexam')); $scheduleexamobj->display(); echo $OUTPUT->footer();
echo '<h4> No changes occured in Excel sheet.</h4>'; } if ($examserrors) { echo '<h4> Please fill the sheet without any errors. Refer Help Manual for assistance.</h4>'; } if ($examsskipped) { echo $OUTPUT->box_start('generalbox'); if ($examsskipped == 1) echo '<h4> Exam skipped because record with that name is already exists.</h4>'; else echo '<h4>' . $examsskipped . ' Exams skipped because records with those names are already exist.</h4>'; echo $OUTPUT->box_end(); } echo '<div style="margin-left:35%;"><a href="index.php"><button>Continue</button></a></div>'; echo $OUTPUT->footer(); die; } // Print the header echo $OUTPUT->header(); echo $OUTPUT->heading(get_string('uploadexamspreview', 'local_scheduleexam')); $currenttab = 'upload'; $ob = new schedule_exam(); $ob->tabs($currenttab); // Print the form if valid values are available $noerror = true; if ($noerror) { $mform2->display(); } echo $OUTPUT->footer(); die;