초기 커밋: 5130 레거시 시스템
- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경 - DB 연결 하드코딩 → .env 기반으로 변경 - MySQL strict mode DATE 오류 수정
This commit is contained in:
50
guiderail/_rowinput.php
Normal file
50
guiderail/_rowinput.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
// /guiderail/_rowinput.php
|
||||
// insert.php 또는 process.php 에서 extract($row) 이후에 include하여
|
||||
// 방금 작업한 한 행(<tr>…</tr>)을 렌더링합니다.
|
||||
|
||||
$upload_dir = '../guiderail/images/';
|
||||
?>
|
||||
<tr
|
||||
data-num="<?= htmlspecialchars($num, ENT_QUOTES, 'UTF-8') ?>"
|
||||
onclick="redirectToView(
|
||||
'<?= htmlspecialchars($num, ENT_QUOTES, 'UTF-8') ?>',
|
||||
'<?= htmlspecialchars($tablename, ENT_QUOTES, 'UTF-8') ?>'
|
||||
)"
|
||||
>
|
||||
<td class="text-center"><?= htmlspecialchars($num, ENT_QUOTES, 'UTF-8') ?></td>
|
||||
<td class="text-center"><?= htmlspecialchars($registration_date, ENT_QUOTES, 'UTF-8') ?></td>
|
||||
<td class="text-center"><?= htmlspecialchars($firstitem, ENT_QUOTES, 'UTF-8') ?></td>
|
||||
<td class="text-center"><?= htmlspecialchars($model_UA, ENT_QUOTES, 'UTF-8') ?></td>
|
||||
<td class="text-center text-dark fw-bold">
|
||||
<?= htmlspecialchars($model_name, ENT_QUOTES, 'UTF-8') ?>
|
||||
</td>
|
||||
<td class="text-center"><?= htmlspecialchars($check_type, ENT_QUOTES, 'UTF-8') ?></td>
|
||||
<td class="text-center"><?= htmlspecialchars($finishing_type, ENT_QUOTES, 'UTF-8') ?></td>
|
||||
<td class="text-center">
|
||||
<?php if (!empty($imgdata)): ?>
|
||||
<img
|
||||
src="<?= htmlspecialchars($upload_dir . $imgdata, ENT_QUOTES, 'UTF-8') ?>"
|
||||
alt="형상 이미지"
|
||||
style="max-width:100px; max-height:50px;"
|
||||
>
|
||||
<?php else: ?>
|
||||
<span class="text-secondary">이미지 없음</span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="text-center text-primary">
|
||||
<?= htmlspecialchars($rail_length, ENT_QUOTES, 'UTF-8') ?> × <?= htmlspecialchars($rail_width, ENT_QUOTES, 'UTF-8') ?>
|
||||
</td>
|
||||
<td class="text-center text-secondary"
|
||||
title="<?= htmlspecialchars($search_keyword, ENT_QUOTES, 'UTF-8') ?>">
|
||||
<?= htmlspecialchars($search_keyword, ENT_QUOTES, 'UTF-8') ?>
|
||||
</td>
|
||||
<td class="text-center text-secondary"
|
||||
title="<?= htmlspecialchars($author, ENT_QUOTES, 'UTF-8') ?>">
|
||||
<?= htmlspecialchars($author, ENT_QUOTES, 'UTF-8') ?>
|
||||
</td>
|
||||
<td class="text-center text-secondary"
|
||||
title="<?= htmlspecialchars($remark, ENT_QUOTES, 'UTF-8') ?>">
|
||||
<?= htmlspecialchars($remark, ENT_QUOTES, 'UTF-8') ?>
|
||||
</td>
|
||||
</tr>
|
||||
Reference in New Issue
Block a user