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?> query("SHOW COLUMNS FROM `$DB`.`$tablename`"); $columns = array(); while ($row = $columnQuery->fetch(PDO::FETCH_ASSOC)) { $columns[] = $row['Field']; } $searchConditions = array(); foreach ($columns as $i => $column) { $paramName = ":search" . $i; $searchConditions[] = "`$column` LIKE $paramName"; $bindParams[$paramName] = "%$search%"; } if (!empty($searchConditions)) { $conditions[] = "(" . implode(" OR ", $searchConditions) . ")"; } } // 최종 WHERE 조건 조립 $sqlWhere = implode(" AND ", $conditions); $sql = "SELECT * FROM `$DB`.`$tablename` WHERE $sqlWhere $order_by"; // 실행 및 데이터 가져오기 try { $stmh = $pdo->prepare($sql); $stmh->execute($bindParams); $total_row = $stmh->rowCount(); ?>
    
건,  접수일    ~    
> > >
 
   
fetch(PDO::FETCH_ASSOC)) { include '_row.php'; if($outdate!="") { $week = array("(일)" , "(월)" , "(화)" , "(수)" , "(목)" , "(금)" ,"(토)") ; $outdate = $outdate . $week[ date('w', strtotime($outdate) ) ] ; } $contents = ''; $shutterSurang = 0; // 셔터 수량 합계를 저장할 변수 초기화 $shutterSurang_slat = 0; // 철재 // JSON 데이터를 배열로 디코딩 $estimateListData = json_decode($estimateList, true); $estimateSlatListData = json_decode($estimateSlatList, true); // $screen_prodcode = ''; // $slat_prodcode = ''; // // 반복문을 통해 col14 값을 누적 // if (is_array($estimateListData)) { // foreach ($estimateListData as $item) { // $shutterSurang += isset($item['col14']) ? (int)$item['col14'] : 0; // if(intval(isset($item['col14']))>0) // $screen_prodcode = isset($item['col4']) ? $item['col4'] : '' ; // } // } // // slat 반복문을 통해 col15 값을 누적 slat // if (is_array($estimateSlatListData)) { // foreach ($estimateSlatListData as $item) { // $shutterSurang_slat += isset($item['col15']) ? (int)$item['col15'] : 0; // if(intval(isset($item['col15']))>0) // $slat_prodcode = isset($item['col4']) ? $item['col4'] : '' ; // } // } // $prodcode = $screen_prodcode . $slat_prodcode; ?> getMessage(); } ?>
번호 접수일 견적번호 구분 제품코드 수량 금액 발주처 담당자 연락처 현장명 작성자 비고