Ejemplo n.º 1
0
}
//Add speaker to session
if (isset($_POST['action']) && $_POST['action'] == 'add_speaker_to_session') {
    $the_main = new main\main();
    $agenda = new agenda\agenda_main();
    $the_main->add_speaker_to_session($_POST['agenda_id'], $_POST['speaker_id']);
    $result = $agenda->get_speakers_for_agenda_modal($_POST['agenda_id']);
    if (isset($result)) {
        echo $result;
    }
}
//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