$currentExam .= "</td></tr>"; $currentExam .= "<tr><td valign='top'>"; $currentExam .= print_single_button('', null, 'Exam Part II: Implementation!', 'get', '', true, '', true); $currentExam .= "</td><td>"; //echo "<br/>"; $currentExam .= showImplementation($record, $exam_length, true); $currentExam .= "</td></tr>"; } $currentExam .= "</table>"; // End Structure $currentExam .= print_container_end(true); //echo "<div id='info_$record->id'></div><br/>"; $currentExam .= "<hr/>"; } else { // Exam Over 2 $record = updateExamStatus($record, "Graded"); // Page Structure $prevExam .= "<table border='0' cellpadding='5' cellspacing='5'>"; $prevExam .= "<tr><td valign='top'>"; $prevExam .= displayInfo($record, $exam_length, true); $prevExam .= "</td></tr>"; $prevExam .= "<tr><td>"; // Print Status - Checks if the exam was taken, via the quiz grade if ($record->status == "Graded" || $record->grade1 != null && $record->status == "Implementation") { $prevExam .= examStatus($record, array(6), "", true); } else { $prevExam .= examStatus($record, array(0), "", true); } $prevExam .= "</td></tr>"; $prevExam .= "<tr><td>"; $prevExam .= displayExamInfo($record, $exam_length, true);
$currentExam .= print_single_button('', null, 'Exam Part I: Concepts!', 'get', '', true, '', true); $currentExam .= "</td><td>"; //echo "<br/>"; $currentExam .= showConcepts($record, $exam_length, true); $currentExam .= "</td></tr>"; $currentExam .= "<tr><td valign='top'>"; $opts = array('courseid' => $course->id, 'eid' => $record->id, 'view' => 2); //print_single_button("$CFG->wwwroot/question/view_instructions.php", $opts, 'Exam Part II: Implementation!', 'get', '', false, '', false); $url = "/question/view_instructions.php?courseid={$course->id}&eid={$record->id}&view=2"; $currentExam .= element_to_popup_window("button", $url, "orientation", "Exam Part II: Implementation!", 900, 800, "Exam Part II: Implementation", true, true); $currentExam .= "</td><td>"; //echo "<br/><br/>"; $currentExam .= showImplementation($record, $exam_length, true); $currentExam .= "</td></tr>"; // Update the Exam Status $record = updateExamStatus($record, "Implementation"); //'Orientation','Concepts','Implementation' } else { $currentExam .= "<tr><td colspan='2'>"; // Check if active record $currentExam .= checkActiveExam($record, $anchor_record, examStatus($record, array(4), $exam_length, true)); //$currentExam .= examStatus($record,array(4),$exam_length,true); $currentExam .= "</td></tr>"; $currentExam .= "<tr><td valign='top'>"; // Starttime to + 30 mins $opts = array('courseid' => $course->id, 'eid' => $record->id, 'view' => 1); $url = "/question/view_instructions.php?courseid={$course->id}&eid={$record->id}&view=1"; //print_single_button("$CFG->wwwroot/question/view_instructions.php", $opts, 'Exam Orientation', 'get', '', false, '', false); $currentExam .= element_to_popup_window("button", $url, "orientation", "Exam Orientation", 900, 800, "Exam Orientation", true, true); $currentExam .= "</td><td>"; //echo "<br/><br/>";