This commit is contained in:
2024-10-04 22:17:48 +04:00
parent 2ea676adae
commit cf90143b77
5 changed files with 104 additions and 26 deletions
@@ -15,9 +15,14 @@ if(isset($_FILES['f_csv'])) {
$arr_associate = $arr_associate_data->Results;
if(count($arr_associate) > 0) { //check define columns
$spreadsheet = IOFactory::load($file, IReader::READ_DATA_ONLY);
$spreadsheet = IOFactory::load($file);
$worksheet = $spreadsheet->getActiveSheet();
$arr_info = $worksheet->toArray();
$arr_info = $worksheet->toArray();
// remove empty rows
$arr_info = array_filter($arr_info, function($row) {
return count(array_filter($row)) > 0;
});
$productsRefNumber_excelName = '';
$reportsNumberLab_excelName = '';
@@ -76,7 +81,7 @@ if(isset($_FILES['f_csv'])) {
$verify_flag = false;
break;
}
}
}
if($verify_flag) {
//check result_TestName field