Пример #1
0
        $output[2] .= $agenda->get_block_data($elems[0], $elems[1]);
    }
    //Get the new colors and styles
    $colorData = $agenda->get_category_styles($_POST['category']);
    $output[3]['category'] = $colorData['category'];
    $output[3]['color'] = $colorData['color_class'];
    if (isset($output[0]) && isset($output[1]) && isset($output[3])) {
        echo json_encode($output);
    }
}
/**********************
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') {