<?php require_once('includes/requirecompere.inc.php'); require_once('includes/requirepost.inc.php'); require_once('includes/options.inc.php'); $rsv_id=TPOST('rsv_id'); $optc=TPOST('optc'); $DBConn->connect(); $seatreserv=db_load_seat_reservation_by_id($DBConn,$rsv_id); if (!$seatreserv) { redirect("./"); return; } $course=db_load_course_by_id($DBConn,$seatreserv[0]['cs_id']); $lecture=db_load_lecture_by_id($DBConn,$seatreserv[0]['lctr_id']); $DBConn->begin(true); compute_reservation_options($DBConn,$course,$optc,$optrec,false,$lecture); db_set_reservation_option($DBConn,$rsv_id,$optrec); $DBConn->commit(); redirect("qx-cmd-course.lecture.reservation.option-rsv_id-".$rsv_id."-op-saved.html"); ?>