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 = '품질인정제품 판매실적'; ?> <?=$title_message?> = 1 && $month <= 3) { $quarter = 1; $fromdate = "$year-01-01"; $todate = "$year-03-31"; } elseif ($month >= 4 && $month <= 6) { $quarter = 2; $fromdate = "$year-04-01"; $todate = "$year-06-30"; } elseif ($month >= 7 && $month <= 9) { $quarter = 3; $fromdate = "$year-07-01"; $todate = "$year-09-30"; } else { $quarter = 4; $fromdate = "$year-10-01"; $todate = "$year-12-31"; } $Transtodate = $todate; } else { // fromdate와 todate가 모두 설정된 경우 (기존 로직 유지) $Transtodate = $todate; } if ($separate_date == "1") { $SettingDate = "ACIdoneDate"; } else { $SettingDate = "ACIdoneDate"; } // 진행상태에 대한 검색 $orderby = " ORDER BY " . $SettingDate . " DESC, num DESC"; // 내림차순 정렬 if ($existing_status == '전체') { $where = " WHERE " . $SettingDate . " IS NOT NULL AND " . $SettingDate . " >= '$fromdate' AND " . $SettingDate . " <= '$Transtodate' AND is_deleted = '0' AND ACIdoneDate IS NOT NULL " . $orderby; $searchwhere = " WHERE is_deleted = '0' AND ACIdoneDate IS NOT NULL AND searchtag LIKE '%$search%'" . $orderby; } else { $where = " WHERE " . $SettingDate . " IS NOT NULL AND " . $SettingDate . " >= '$fromdate' AND " . $SettingDate . " <= '$Transtodate' AND is_deleted = '0' AND regist_state = '$existing_status' AND ACIdoneDate IS NOT NULL " . $orderby; $searchwhere = " WHERE is_deleted = '0' AND regist_state = '$existing_status' AND ACIdoneDate IS NOT NULL AND searchtag LIKE '%$search%'" . $orderby; } // 수정된 쿼리: ACIdoneDate이 존재하고 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; ?>
    
상호(법인명) ㈜경동기업
법인등록번호 124411-0174300
사업자등록번호 139-87-00333
제조현장(공장) 소재지 김포시 통진읍 옹정로 45-22
전화번호 031-983-5130
    ~    
 
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(); } ?>
일련번호 품질관리서번호 작성일자 인정품목 품질인정번호 내화성능시간 상품명 구조 또는 제품명 사용부위 로트번호 규격 수량 현장명 대지위치 지번 성명 사무소명 사무소주소 사무소전화번호 성명 회사명 회사주소 회사전화번호 성명 회사명 회사주소 회사전화번호