add_presentation($presenter_names, $org_name, $rm_id, $pres_max_seats, $wkshp_id, $ses_id); } $presentationList = get_presentation_list(); include 'presentation_list.php'; break; case 'show_modify_presentation': $pres_id = filter_input(INPUT_GET, 'pres_id'); $presentation = get_presentation($pres_id); $presenter_names = $presentation['presenter_names']; $org_name = $presentation['org_name']; $wkshp_id = $presentation['wkshp_id']; $rm_id = $presentation['rm_id']; $pres_max_seats = $presentation['pres_max_seats']; $ses_id = $presentation['ses_id']; $workshopList = get_workshop_list(); $roomList = get_room_list(); include 'presentation_modify.php'; exit; break; case 'modify_presentation': $choice = filter_input(INPUT_POST, 'choice'); $presenter_names = filter_input(INPUT_POST, 'presenters'); $org_name = filter_input(INPUT_POST, 'organization'); $rm_id = filter_input(INPUT_POST, 'room'); $pres_max_seats = filter_input(INPUT_POST, 'pres_max_capacity'); $wkshp_id = filter_input(INPUT_POST, 'workshop'); $ses_id = filter_input(INPUT_POST, 'session'); if (filter_input(INPUT_POST, 'choice') == "Modify") { modify_presentation($presenter_names, $org_name, $rm_id, $pres_max_seats, $wkshp_id, $ses_id); } $presentationList = get_presentation_list();
include "edit_room.php"; exit; } else { if ($action == "edit_room") { $choice = filter_input(INPUT_POST, "choice"); $rm_nbr = filter_input(INPUT_POST, "rm_nbr"); $rm_cap = filter_input(INPUT_POST, "rm_cap"); $rm_id = filter_input(INPUT_POST, "rm_id"); if ($choice == "Make Changes") { $error_msg = ""; if (empty($rm_nbr)) { $error_msg .= "A room number is required. <BR>"; } if (empty($rm_cap)) { $error_msg .= "A capacity for the room is required <BR>"; } if ($error_msg != "") { include "edit_room.php"; exit; } else { modify_room($rm_id, $rm_nbr, $rm_cap); } } } } } } } $rm_list = get_room_list(); include "view.php"; exit;