<?php require_once('includes/requirecompere.inc.php'); $clsr_id=0+TGET('clsr_id'); $plc_id=0+TGET('plc_id'); $mb_id=current_mb_id(); $DBConn->connect(true); $classroom=db_load_classroom($DBConn,$clsr_id); $place=db_load_place($DBConn,$plc_id); if ($classroom['mb_id_owner']!=$mb_id || $place['mb_id_owner']!=$mb_id) { redirect("./"); return; } $seats=db_load_unassigned_seats_at_place($DBConn,$plc_id); $dataset+=$classroom; $dataset+=$place; $dataset['SEAT']=$seats; $dataset+=prepare_wizard_dataset(); ?>