} } //delete speaker from session if (isset($_POST['action']) && $_POST['action'] == 'delete_speaker_from_session') { $the_main = new main\main(); $agenda = new agenda\agenda_main(); $the_main->delete_speaker_from_session($_POST['agenda_id'], $_POST['speaker_id']); $result = $agenda->get_speakers_for_agenda_modal($_POST['agenda_id']); if (isset($result)) { echo $result; } } //Change Session Time if (isset($_POST['action']) && $_POST['action'] == 'change_session_time') { $the_main = new main\main(); $result = $the_main->modify_session_time($_POST['agenda_id'], $_POST['edit_type'], $_POST['time']); if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success'; } } //Change Session category if (isset($_POST['action']) && $_POST['action'] == 'change_session_category') { $the_main = new main\main(); $result = $the_main->modify_session_category($_POST['agenda_id'], $_POST['category']); if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success'; } } //Change Session day