$_SESSION['Result'] = 'Success'; echo 'Data Saved!'; } } //Get abstract if (isset($_POST['action']) && $_POST['action'] == 'get_quote_data_for_edit') { $agenda = new agenda\agenda_main(); $result = $agenda->get_quote_data($_POST['quote_id']); if (isset($result)) { echo $result; } } //Modify Quote if (isset($_POST['action']) && $_POST['action'] == 'edit_quote') { $the_main = new main\main(); $result = $the_main->edit_quote($_POST['quote_id']); if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success'; } } //Get Sponsor Data if (isset($_POST['action']) && $_POST['action'] == 'get_agenda_sponsor_data') { $agenda = new agenda\agenda_main(); $result = $agenda->get_sponsor_data($_POST['day'], $_POST['category']); if (isset($result)) { echo $result; } } //change sponsor type if (isset($_POST['action']) && $_POST['action'] == 'change_sponsor_type') {