require_once 'PHPExcel_1.8.0_doc/Classes/PHPExcel.php'; include "functions"; if (!$logged_me_in_successfully234) return; if ($new == "1") { ?>
} else { if (isset($assign_id) && isset($assign_act)) { StartProject($assign_act, $assign_id); } if ($new == "2") { $current_cell = $c1.".".$c2.".".$c3.".".$c4; echo "Запись добавлена!"; $qstr = "insert into input_tables (project_number, pallet_number, current_cell, action, whereto, company, status) values (".$project_number.",".$pallet_number.",'".$current_cell."',".$action.",".$where.",".$companyID.",1)"; // echo "query string ".$qstr; mysqli_query($link, $qstr); } else if ($new == "3") { echo "Запись $del_id удалена!"; mysqli_query($link, "delete from input_tables where id =".$del_id); } else if ($new == "4") { // echo "", print_r($_FILES), ""; if ( $_FILES ) { $data = XLSRead($_FILES['filename']['tmp_name'], 1); //TODO преобразовать файл в таблицу for ($i=3; $i