5) { sleep(1); header("Location:" . $WebSite . "login/login_form.php"); exit; } ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); include $_SERVER['DOCUMENT_ROOT'] . '/load_header.php'; $title_message = '실적신고 대상 List'; ?> <?=$title_message?> = '$fromdate' AND CAST(" . $SettingDate . " AS CHAR) <= '$Transtodate' AND CAST(" . $SettingDate . " AS CHAR) != '' AND CAST(" . $SettingDate . " AS CHAR) != '0000-00-00' AND is_deleted = '0' AND ACIregDate IS NOT NULL AND ACIregDate != '' AND (ACIcheck = '' or ACIcheck IS NULL) " . $orderby; $searchwhere = " WHERE is_deleted = '0' AND ACIregDate IS NOT NULL AND ACIregDate != '' AND (ACIcheck = '' or ACIcheck IS NULL) AND searchtag LIKE '%$search%'" . $orderby; } else { $where = " WHERE CAST(" . $SettingDate . " AS CHAR) >= '$fromdate' AND CAST(" . $SettingDate . " AS CHAR) <= '$Transtodate' AND CAST(" . $SettingDate . " AS CHAR) != '' AND CAST(" . $SettingDate . " AS CHAR) != '0000-00-00' AND is_deleted = '0' AND regist_state = '$existing_status' AND ACIregDate IS NOT NULL AND ACIregDate != '' AND (ACIcheck = '' or ACIcheck IS NULL) " . $orderby; $searchwhere = " WHERE is_deleted = '0' AND regist_state = '$existing_status' AND ACIregDate IS NOT NULL AND ACIregDate != '' AND (ACIcheck = '' or ACIcheck IS NULL) AND searchtag LIKE '%$search%'" . $orderby; } // 수정된 쿼리: ACIregDate이 존재하고 is_deleted가 0인 자료만 선택 if ($search == "") { $sql = "SELECT * FROM $DB.$tablename " . $where; } else { $sql = "SELECT * FROM $DB.$tablename " . $searchwhere; } // 현재일자 변수지정 $today = date("Y-m-d"); // SQL 실행 및 데이터 처리 try { $stmh = $pdo->query($sql); // 검색조건에 맞는글 stmh $total_row = $stmh->rowCount(); $total_sum=0; $total_m2=0; $total_egi=0; $total_egi_m2=0; ?>
    
    ~    
 
fetch(PDO::FETCH_ASSOC)) { include '_row.php'; if($ACIregDate!="") { $week = array("(일)" , "(월)" , "(화)" , "(수)" , "(목)" , "(금)" ,"(토)") ; $ACIregDate = $ACIregDate . $week[ date('w', strtotime($ACIregDate) ) ] ; } $shutterSurang = 0; // 셔터 수량 합계를 저장할 변수 초기화 $shutterSurang_slat = 0; // 철재 // JSON 데이터를 배열로 디코딩 $eList_screenData = json_decode($eList_screen, true); $eList_slatData = json_decode($eList_slat, true); // echo '
';
		// print_r($eList_screen);
		// echo '
'; // echo '
';
		// print_r($eList_slat);
		// echo '
'; // 반복문을 통해 col14 값을 누적 if (is_array($eList_screenData)) { foreach ($eList_screenData as $item) { $shutterSurang += isset($item['col14']) ? (int)$item['col14'] : 0; } } // slat 반복문을 통해 col15 값을 누적 slat if (is_array($eList_slatData)) { foreach ($eList_slatData as $item) { $shutterSurang_slat += isset($item['col15']) ? (int)$item['col15'] : 0; } } // 스크린,철재스라트 구분하기 JSON 데이터가 비어있는지 확인하여 값 설정 if (!empty(json_decode($eList_screen, true))) { $separate_item = '스크린'; } elseif (!empty(json_decode($eList_slat, true))) { $separate_item = '철재스라트'; } ?> getMessage(); } ?>
번호 접수 요청 완료 발주처 제품종류 제품코드 수량(틀) 현장명 메모