// You should have received a copy of the GNU General Public License // along with Rogō. If not, see <http://www.gnu.org/licenses/>. /** * * @author Simon Wilkinson * @version 1.0 * @copyright Copyright (c) 2014 The University of Nottingham * @package */ require '../../include/staff_auth.inc'; require '../../include/errors.inc'; require '../../classes/noteutils.class.php'; require '../../classes/reviews.class.php'; $userID = check_var('userID', 'GET', true, false, true); $paperID = check_var('paperID', 'GET', true, false, true); if ($userObject->has_role('External Examiner')) { // Security: Check the external can access this paper. if (!ReviewUtils::is_external_on_paper($userObject->get_user_ID(), $paperID, $mysqli)) { echo "<div style=\"padding:10px\">" . $string['pagenotfound'] . "</div>\n"; $mysqli->close(); exit; } } $details = StudentNotes::get_note($paperID, $userID, $mysqli); if ($details === false) { echo "<div style=\"padding:10px\">" . $string['err'] . "</div>\n"; } else { echo "<div style=\"padding:10px\">" . $details['note'] . "</div>\n"; echo "<div style=\"padding:10px\"><em>" . $details['author_title'] . " " . $details['author_initials'] . " " . $details['author_surname'] . " - " . $details['date'] . "</em></div>\n"; } $mysqli->close();
} } echo '</div>'; if ($reviewed == '') { echo '<span style="color:white; background-color:#FF4040; padding-left:5px; padding-right:5px">' . $string['notreviewed'] . '</span>'; } else { echo '<span style="color:#808080">' . sprintf($string['reviewed'], date($configObject->get('cfg_short_date_php') . ' ' . $configObject->get('cfg_short_time_php'), $reviewed)) . '</span>'; } echo "</td></tr>\n<tr><td colspan=\"2\" style=\"font-size:80%\"> </td>\n</tr>\n"; } if ($result->num_rows == 0) { echo "<tr><td colspan=\"2\"><p style=\"color:red\">" . $string['nopapersfound'] . "</p></td></tr>\n"; } $result->close(); echo "</table>\n"; $released_papers = ReviewUtils::get_past_papers($userObject->get_user_ID(), $mysqli); echo '<h1>' . $string['postexamreviews'] . '</h1>'; echo "<p style=\"margin-left:15px; margin-right:15px; text-align:justify\">" . $string['msg3'] . "</p>\n"; echo "<table style=\"margin-left:15px\">\n"; foreach ($released_papers as $paperID => $paper_details) { echo "<tr><td><a href=\"class_totals.php?id=" . $paper_details['crypt_name'] . "\"><img src=\"../artwork/summative_16.gif\" width=\"16\" height=\"16\" style=\"margin-right:5px\" />" . $paper_details['paper_title'] . "</a></td><td class=\"datepad\">" . $paper_details['start_date'] . "</td></tr>\n"; } echo "</table>\n"; echo "</div>\n"; $mysqli->close(); ?> <br /> <table class="oss"> <tr>