Exemple #1
0
}
/**********************
Agenda backend
****************************/
if (isset($_POST['action']) && $_POST['action'] == 'save_agenda') {
    $the_main = new main\main();
    $result = $the_main->save_agenda();
    if (isset($result)) {
        $_SESSION['Result'] = 'Success';
        echo 'Success';
    }
}
//Get abstract
if (isset($_POST['action']) && $_POST['action'] == 'get_session_modal_abstract') {
    $agenda = new agenda\agenda_main();
    $result = $agenda->get_session_abstract($_POST['agenda_id']);
    if (isset($result)) {
        echo $result;
    }
}
//Modify abstract
if (isset($_POST['action']) && $_POST['action'] == 'agenda_session_modal_abstract') {
    $the_main = new main\main();
    $result = $the_main->modify_session_abstract($_POST['agenda_id']);
    if (isset($result)) {
        $_SESSION['Result'] = 'Success';
        echo 'Success';
    }
}
//Get speakers for agenda_modal
if (isset($_POST['action']) && $_POST['action'] == 'new_speaker_agenda_session') {