foreach ($alphas as $abc) { $content .= '<option value="' . $abc . '">' . $abc . '</option>'; } return $content; }; //Display $content .= '</div> <!--Form container--> <div id="container">'; if (isset($_SESSION['user'])) { include_once 'controllers/main.php'; $main = new main\main(); include_once 'controllers/agenda_main.php'; $agenda = new agenda\agenda_main(); if (isset($_SESSION['Result']) && $_SESSION['Result'] != '') { $content .= '<div id="ReturnValue" style="display:none">' . $_SESSION['Result'] . '</div>'; $_SESSION['Result'] = ''; } else { $content .= '<div id="ReturnValue" style="display:none"></div>'; } $time = $agenda->display_time_admin(); $categories = $agenda->get_session_categories(); //Form Start $content .= '<form class= id="agenda" name="agenda" method="post" action="" enctype="multipart/form-data"><br /> <fieldset> <legend>Basic</legend> <input class="AdminInputField" required="required" id="AgendaTitle" type="text" placeholder="Sesssion Title" /><br />
$agenda = new agenda\agenda_main(); $result = $agenda->get_category_colors(); if (isset($result)) { echo json_encode($result); } } /*///////////// Save Booking Data ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'save_booking_data') { $the_main = new main\main(); $result = $the_main->save_booking($_POST['name'], $_POST['company'], $_POST['email'], $_POST['phone'], $_POST['program'], $_POST['number']); $the_main->marketing_email($_POST['name'], $_POST['company'], $_POST['email'], $_POST['phone'], $_POST['program'], $_POST['number']); } /*///////////// Save press Data ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'save_press_data') { $the_main = new main\main(); $the_main->press_email($_POST['first_name'], $_POST['last_name'], $_POST['company'], $_POST['email'], $_POST['phone'], $_POST['title']); } /*///////////// URL decoder ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'url_decoder') { $the_main = new agenda\agenda_main(); $result = $the_main->decode_url($_POST['url_data']); if (isset($result)) { echo json_encode($result); } }
} //change sponsor type if (isset($_POST['action']) && $_POST['action'] == 'change_sponsor_type') { $the_main = new main\main(); $agenda = new agenda\agenda_main(); $the_main->change_agenda_sponsor_type($_POST['day'], $_POST['category'], $_POST['type']); $result = $agenda->get_sponsor_data($_POST['day'], $_POST['category']); if (isset($result)) { echo $result; } } //add sponsor to agenda if (isset($_POST['action']) && $_POST['action'] == 'add_sponsor_to_agenda') { $the_main = new main\main(); $agenda = new agenda\agenda_main(); $output = $the_main->add_sponsor_to_agenda($_POST['block_id'], $_POST['sponsor_id'], $_POST['type']); $result = $agenda->get_sponsor_data($output['agenda_day'], $output['agenda_category_id']); if (isset($result)) { echo $result; } } //delete sponsor from agenda if (isset($_POST['action']) && $_POST['action'] == 'delete_sponsor_from_agenda') { $the_main = new main\main(); $agenda = new agenda\agenda_main(); $the_main->delete_sponsor_from_agenda($_POST['day'], $_POST['category'], $_POST['sponsor_id']); $result = $agenda->get_sponsor_data($_POST['day'], $_POST['category']); if (isset($result)) { echo $result; } }