Пример #1
0
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'edit_company_image') {
    $the_main = new main\main();
    $result = $the_main->file_upload('speakers/CompanyLogos/', $_POST['company_name']);
    if (isset($result['name'])) {
        $the_main->pic_upload(3, $_POST['company_id'], $result['name'], $_POST['company_name']);
    }
}
// company image
/*///////////// 
Speaker order
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'speaker_order') {
    $the_main = new main\main();
    foreach ($_POST['order'] as $order) {
        $the_main->speaker_order($order[0], $order[1]);
    }
    /*
    	if (isset($result)) {
    	  $_SESSION['Result'] =  'Success';
    	  echo 'Success';	
    	}
    */
}
// speaker order
/*///////////// 
Speaker mainpage order
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'speaker_mainpage_order') {
    $the_main = new main\main();
    foreach ($_POST['order'] as $order) {