} } } echo '</td>'; echo $logo_html; } else { echo '<tr><td>'; } $midexam_clarification = $configObject->get('midexam_clarification'); if ($propertyObj->get_paper_type() === '3') { $calculator = 0; } else { $calculator = $propertyObj->get_calculator(); } if (in_array('students', $midexam_clarification)) { $exam_announcementObj = new ExamAnnouncements($paperID, $mysqli, $string); echo $exam_announcementObj->display_student_announcements(); } echo "<table cellpadding=\"0\" cellspacing=\"4\" border=\"0\" width=\"100%\" style=\"table-layout:fixed\">\n"; echo "<col width=\"40\"><col>\n"; // Display the questions foreach ($questions_array as &$question) { if ($question['screen'] == $current_screen) { if ($screen_pre_submitted == 1 and $q_displayed == 0) { echo "<tr style=\"display:none\" id=\"unansweredkey\"><td colspan=\"2\"><span class=\"unans\"> </span> " . $string['unansweredquestion'] . "</td></tr>\n"; } if ($q_displayed == 0 and $current_screen == 1 and $propertyObj->get_paper_prologue() != '') { echo '<tr><td colspan="2" style="padding:20px; text-align:justify">' . $propertyObj->get_paper_prologue() . '</td></tr>'; } if ($q_displayed == 0 and $question['theme'] == '') { echo "<tr><td colspan=\"2\"> </td></tr>\n";
// (at your option) any later version. // // Rogō is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Rogō. If not, see <http://www.gnu.org/licenses/>. require_once '../include/invigilator_auth.inc'; require_once '../classes/exam_announcements.class.php'; $paperID = $_GET['paperID']; if (!isset($string)) { $string = array(); } $exam_announcementObj = new ExamAnnouncements($paperID, $mysqli, $string); $exam_announcements = $exam_announcementObj->get_announcements(); if (count($exam_announcements) == 0) { echo '<span class="blankclarification">' . $string['examquestionclarifications'] . '</span>'; exit; } echo "<table><tbody>"; foreach ($exam_announcements as $exam_announcement) { $msg = $exam_announcement['msg']; if (substr_count($msg, '<p>')) { $msg = str_replace('<p>', '', $msg); $msg = str_replace('</p>', '', $msg); } echo "<tr><td class=\"q_no\">Q" . $exam_announcement['q_number'] . "</td><td class=\"q_msg\">" . $msg . "</td></tr>"; } echo "</tbody></table>";
$exam_clarifications = false; } // Check the paper is not set to be linear. // Check if paper is Summative Exam. // Check if paper is not live. if (!$exam_clarifications) { $msg = sprintf($string['furtherassistance'], $configObject->get('support_email'), $configObject->get('support_email')); $notice->display_notice_and_exit($mysqli, $string['pagenotfound'], $msg, $string['pagenotfound'], '../artwork/page_not_found.png', '#C00000', true, true); } // Check that the questionID exists $q_id = check_var('q_id', 'REQUEST', true, false, true); if (!QuestionUtils::question_exists($q_id, $mysqli)) { $msg = sprintf($string['furtherassistance'], $configObject->get('support_email'), $configObject->get('support_email')); $notice->display_notice_and_exit($mysqli, $string['pagenotfound'], $msg, $string['pagenotfound'], '../artwork/page_not_found.png', '#C00000', true, true); } $exam_announcementObj = new ExamAnnouncements($paperID, $mysqli, $string); if (isset($_POST['submit'])) { $screenNo = check_var('screenNo', 'POST', true, false, true); $questionNo = check_var('questionNo', 'POST', true, false, true); $msg = check_var('msg', 'POST', true, false, true); $exam_announcementObj->replace_announcement($q_id, $questionNo, $screenNo, $msg); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="content-type" content="text/html;charset=<?php echo $configObject->get('cfg_page_charset'); ?> " />