echo 'Success'; } } //Delete Session if (isset($_POST['action']) && $_POST['action'] == 'delete_session') { $the_main = new main\main(); $result = $the_main->delete_session($_POST['agenda_id']); if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success'; } } //Edit agenda title if (isset($_POST['action']) && $_POST['action'] == 'edit_agenda_title') { $the_main = new main\main(); $result = $the_main->modify_session_title($_POST['agenda_id'], $_POST['value']); if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success'; } } //Get Testimonial Data if (isset($_POST['action']) && $_POST['action'] == 'get_testimonial_data') { $agenda = new agenda\agenda_main(); $result = $agenda->get_testimonial_data($_POST['day'], $_POST['category'], $_POST['block_num']); if (isset($result)) { echo $result; } } //change testimonial type if (isset($_POST['action']) && $_POST['action'] == 'change_testimonial_type') {