prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_INT); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); // _row.php를 통해 $row의 모든 컬럼이 변수로 할당됩니다. // (사용자가 제공한 _row.php에는 $bending_components가 포함되어 있습니다) if ($row) { include '_row.php'; } if ($mode === 'copy') { $registration_date = date('Y-m-d'); $num_display = ''; // 복사 모드에서는 번호 비움 $author = isset($user_name) ? $user_name : ''; } } catch (PDOException $Exception) { echo "오류: " . $Exception->getMessage(); exit; } } else { // 신규(insert) 모드 include '_request.php'; // 혹시 모를 파라미터 처리 $mode = 'insert'; $registration_date = date('Y-m-d'); $author = isset($user_name) ? $user_name : ''; } $title_message = ($mode === 'view') ? "레일 조회 (#{$num_display})" : '레일 등록'; $title_message = ($mode === 'modify') ? "레일 수정 (#{$num_display})" : $title_message; $title_message = ($mode === 'copy') ? '레일 (데이터 복사)' : $title_message; // 기존에 저장된 값이 있는 경우 해당 값을 설정, 없으면 기본값 if(empty($firstitem)) { $firstitem = '스크린'; } if(empty($model_UA)) { $model_UA = '비인정'; } $check_type = isset($row['check_type']) ? $row['check_type'] : '벽면형'; $finishing_type = isset($row['finishing_type']) ? $row['finishing_type'] : 'SUS마감'; $is_assembly_model = !empty($bending_components); // 조립 모델 여부 판단 ?>
등록일 작성자 비고
외형치수
가로(너비) X 세로(폭)
대분류: > > 모델 유형: > > 형태 : > >
모델 마감 품목검색어:
조회 모드, 그리기 기능 불가
$value) { if (empty($item[$key]) || $item[$key] !== $value) { $matched = false; break; } } if ($matched && !empty($item['image'])) { return $item['image']; } } return ''; } if (file_exists($jsonFile)) { $jsonData = file_get_contents($jsonFile); $guiderailImages = json_decode($jsonData, true); if (is_array($guiderailImages)) { // 검색 조건 우선순위대로 정렬 $searchCases = []; if (!empty($row['search_keyword'])) { // 1순위: 검색 키워드 $searchCases[] = ['search_keyword' => $row['search_keyword']]; } // 2순위: 모든 조건 일치 $searchCases[] = [ 'model_name' => $row['model_name'], 'check_type' => $row['check_type'], 'finishing_type'=> $row['finishing_type'], 'firstitem' => $row['firstitem'], 'UA' => $row['model_UA'], ]; // 3순위: 모델명+형태+마감 $searchCases[] = [ 'model_name' => $row['model_name'], 'check_type' => $row['check_type'], 'finishing_type'=> $row['finishing_type'], ]; // 4순위: 모델명+형태 $searchCases[] = [ 'model_name' => $row['model_name'], 'check_type' => $row['check_type'], ]; // 5순위: 모델명만 $searchCases[] = ['model_name' => $row['model_name']]; foreach ($searchCases as $case) { $found = findImageByConditions($guiderailImages, $case); if ($found) { $imgUrl = $found; break; } else{ $imgUrl = '../img/empty.png'; } } } } ?> 편집할 이미지

이미지가 없습니다.

재질별 폭합
※ 각 부품의 합계 마지막 값을 재질별로 집계
재질 폭합계
절곡 부품 조립
※ 순서변경은 위/아래 버튼을 사용하세요