prepare($sql); $stmh->bindValue(1, $num, PDO::PARAM_INT); $stmh->execute(); $row = $stmh->fetch(PDO::FETCH_ASSOC); 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 { 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 ; // 기존에 저장된 값이 있는 경우 해당 값을 설정 $selected_exit_direction = isset($row['exit_direction']) ? $row['exit_direction'] : '양면 점검구'; $is_assembly_model = true; ?>
| 등록일 | 작성자 |
가로(폭)
x
세로(높이)
전면밑
레일폭
|
||
|
|
품목 검색어
비고
|
|||