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'; $mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : ''; $num = isset($_REQUEST["num"]) ? $_REQUEST["num"] : ""; $tablename = isset($_REQUEST["tablename"]) ? $_REQUEST["tablename"] : ""; $first_writer = ''; if ($mode === 'copy') { $title_message = "(데이터복사) 절곡 BOM단가"; } else { $title_message = "절곡 BOM단가"; } ?> <?= $title_message ?> prepare($sql); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); // $row 배열로 DB 정보를 불러온다. $item_bend = $row['itemList']; } catch (PDOException $Exception) { print "오류: ".$Exception->getMessage(); } $today = date("Y-m-d"); // 현재일자 변수지정 if ($mode == "modify" || $mode == "view") { try { $sql = "select * from " . $DB . "." . $tablename . " where num = ?"; $stmh = $pdo->prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_STR); $stmh->execute(); $count = $stmh->rowCount(); if ($count < 1) { print "검색결과가 없습니다.
"; } else { $row = $stmh->fetch(PDO::FETCH_ASSOC); include "_row.php"; } } catch (PDOException $Exception) { print "오류: " . $Exception->getMessage(); } } if ($mode !== "modify" and $mode !== "copy" and $mode !== "view") { include '_request.php'; $first_writer = $user_name; $basicdate = $today; } if ($mode == "copy") { try { $sql = "select * from " . $DB . "." . $tablename . " where num = ?"; $stmh = $pdo->prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_STR); $stmh->execute(); $count = $stmh->rowCount(); if ($count < 1) { print "검색결과가 없습니다.
"; } else { $row = $stmh->fetch(PDO::FETCH_ASSOC); } include "_row.php"; } catch (PDOException $Exception) { print "오류: " . $Exception->getMessage(); } // 자료번호 초기화 $num = 0; // $basicdate = $today; } $unitList = isset($row['unitList']) ? $row['unitList'] : []; // unitList가 문자열일 때만 json_decode 실행 if (is_string($unitList)) { $unitList = json_decode($unitList, true); } // unitList가 유효한 배열이 아닐 경우 빈 배열로 초기화 if (!is_array($unitList)) { $unitList = []; } ?>

         
작성 기준일 대분류 중분류 모델명 품목명 재질 단위 수량 산출단가/M 메모
0) { foreach ($unitList as $index => $item) { ?> "; } ?>
번호 품목명 품목번호 마감 재질 두께 상수 폭 (W) 길이 (L) 면적 (㎡) 면적단가 단위 수량 산출단가/M 자동계산 폭 계산 산식
No Data Available