prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_INT); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); include '_row.php'; } catch (PDOException $Exception) { echo "오류: ".$Exception->getMessage(); exit; } $title_message = '가이드레일 절곡 전개'; // echo '
'; // print_r($row); // echo ''; // 기존에 저장된 값이 있는 경우 해당 값을 설정 $selected_check_type = isset($row['check_type']) ? $row['check_type'] : '벽면형'; $selected_model_name = isset($row['model_name']) ? $row['model_name'] : ''; $selected_finishing_type = isset($row['finishing_type']) ? $row['finishing_type'] : ''; // 추가 변수들 정의 $model_UA = isset($row['model_UA']) ? $row['model_UA'] : ''; $model_name = isset($row['model_name']) ? $row['model_name'] : ''; $check_type = isset($row['check_type']) ? $row['check_type'] : ''; $finishing_type = isset($row['finishing_type']) ? $row['finishing_type'] : ''; $search_keyword = isset($row['search_keyword']) ? $row['search_keyword'] : ''; // getProductData 함수를 위해 숫자로 변환 $rail_length_num = isset($row['rail_length']) ? (int)$row['rail_length'] : 0; $rail_width_num = isset($row['rail_width']) ? (int)$row['rail_width'] : 0; // $model_name = 'KSS01'; // $finishing_type = 'SUS마감'; // $rail_length = 100; // 예시 값 // $rail_width = 50; // 예시 값 // $check_type = '벽면형'; // 또는 '측면형' include $_SERVER['DOCUMENT_ROOT'] . "/guiderail/fun_guiderail.php" ; $productData = getProductData($model_name, $finishing_type, $rail_length_num, $rail_width_num, $check_type); ?>
| 등록일 | 작성자 |
|
비고 | ||||
|
가이드레일 외형치수
가로(너비)
X
세로(폭)
|
|||||||
|
제품코드
형태
마감 :
|
|||||||
|
품목검색어
|
|||||||
|
(=$model_UA?>) (=$model_name?>) (=$check_type?>) (=$finishing_type?>)
레일 가로(너비): =$rail_length?> 레일폭 : =$rail_width?>
품목검색어 : =$search_keyword?>
|
| 번호 | 재질 | 구분 | 상세내역 | ' . $product['label'] . ' | '; echo '' . $product['material'] . ' | '; echo '번호 | '; echo ''; foreach ($product['inputValues'] as $index => $value) { echo '' . ($index + 1) . ''; } echo ' | '; echo ''; // 입력 값 행 echo '
|---|---|---|---|
| 입력 | '; echo ''; foreach ($product['inputValues'] as $value) { echo '' . $value . ''; } echo ' | '; echo '||
| 연신율 (-) | '; echo ''; foreach ($product['bendingRates'] as $rate) { echo '' . $rate . ''; } echo ' | '; echo '||
| 연신율계산 후 | '; echo ''; foreach ($product['inputValues'] as $index => $value) { $calculatedValue = $value + $product['bendingRates'][$index]; echo '' . $calculatedValue . ''; } echo ' | '; echo '||
| 합계 | '; echo ''; foreach ($product['sums'] as $sum) { echo '' . $sum . ''; } echo ' | '; echo '||
| 음영 | '; echo ''; foreach ($product['colors'] as $color) { $style = $color ? 'bg-dark text-white' : ''; echo '' . ($color ? '음영' : ' ') . ''; } echo ' | '; echo '||
| A각 표시 | '; echo ''; foreach ($product['aAngles'] as $angle) { $style = $angle ? 'bg-primary text-white' : ''; echo '' . ($angle ? 'A각' : ' ') . ''; } echo ' | '; echo '