// it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (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/>. /** * * @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/toiletbreakutils.class.php'; $breakID = check_var('breakID', 'GET', true, false, true); $details = ToiletBreaks::toilet_break_by_id($breakID, $mysqli); if ($details === false) { echo "<div style=\"padding:10px\">" . $string['err'] . "</div>\n"; } else { echo "<div style=\"padding:10px\">" . $string['toiletbreak'] . "</div>\n"; echo "<div style=\"padding:10px\">" . $details . "</div>\n"; } $mysqli->close();
// 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/>. /** * * @author Simon Wilkinson * @version 1.0 * @copyright Copyright (c) 2014 The University of Nottingham * @package */ require '../../include/invigilator_auth.inc'; require_once '../../include/errors.inc'; require_once '../../classes/paperutils.class.php'; require_once '../../classes/userutils.class.php'; require_once '../../classes/toiletbreakutils.class.php'; $userID = check_var('userID', 'POST', true, false, true); $paperID = check_var('paperID', 'POST', true, false, true); // Does the paper exist? if (!Paper_utils::paper_exists($paperID, $mysqli)) { exit; } // Does the student exist? if (!UserUtils::userid_exists($userID, $mysqli)) { exit; } ToiletBreaks::add_toilet_break($userID, $paperID, $mysqli); $mysqli->close();
</div> <div class="popup_row" onclick="reassignLogLate();" id="item7"> <div class="popup_icon"><img id="log_late_icon" style="display:none" src="../artwork/log_late_16.gif" width="16" height="16" alt="" /></div> <div class="popup_title"><?php echo $string['latesubmissions']; ?> </div> </div> </div> <?php for ($i = -100; $i <= 100; $i++) { $distribution[$i] = 0; } $notes = PaperNotes::get_all_notes_by_paper($paperID, $mysqli); $toilet_breaks = ToiletBreaks::get_all_breaks_by_paper($paperID, $mysqli); if ($marking == '0') { $marking_label = $string['%']; $marking_key = 'percent'; } else { $marking_label = $string['adjusted%']; $marking_key = 'adj_percent'; } // Output table heading $table_order = array('', 'Title', $string['surname'], $string['firstnames'], $string['studentid'], $string['course'], $string['mark'], $marking_label, $string['classification'], $string['rank'], $string['decile'], $string['starttime'], $string['duration']); if ($configObject->get('cfg_client_lookup') == 'name') { $table_order[] = $string['hostnames']; } else { $table_order[] = $string['ipaddress']; } if ($paper_type == '2') {