<?php require_once('includes/requirecompere.inc.php'); require_once('includes/options.inc.php'); $rsv_id=TGET('rsv_id'); $op=TGET('op'); $mb_id_owner=current_mb_id(); $DBConn->connect(true); $seatreserv=db_load_seat_reservation_by_id($DBConn,$rsv_id); if (!$seatreserv) { redirect("qx-cmd-course.manage.html"); return; } $course=db_load_course_by_id($DBConn,$seatreserv[0]['cs_id']); $lecture=db_load_lecture_by_id($DBConn,$seatreserv[0]['lctr_id']); $rsv_options=db_load_reservation_options($DBConn,$rsv_id,false); $optc=rowset2map($rsv_options,'o_id','ro_count'); $dataset['rsv_id']=$rsv_id; $dataset+=$course; $dataset+=$lecture; $dataset+=prepare_options_dataset( $DBConn, $cs_id, $mb_id_owner, null, $tunermap=array( 'input_count'=>true, 'total_price'=>true, 'auto_min_num_off'=>true, 'optc'=>$optc )+$course+$lecture ); $dataset['SAVED']=$op=='saved'?array(0):array(); ?>