- URL 하드코딩 → .env APP_URL 기반 동적 URL로 변경 - DB 연결 하드코딩 → .env 기반으로 변경 - MySQL strict mode DATE 오류 수정
34 lines
2.0 KiB
PHP
34 lines
2.0 KiB
PHP
<tr data-subpart_id="<?= $subRow['subpart_id'] ?>">
|
|
<td class="text-center">
|
|
<input type="text" name="subpart_name[]" class="form-control" readonly value="<?= htmlspecialchars($subRow['subpart_name'], ENT_QUOTES, 'UTF-8') ?>">
|
|
</td>
|
|
<td class="text-center">
|
|
<input type="text" name="material[]" class="form-control" readonly value="<?= htmlspecialchars($subRow['material'], ENT_QUOTES, 'UTF-8') ?>">
|
|
</td>
|
|
<td class="text-center">
|
|
<input type="text" name="bendSum[]" class="form-control text-end" readonly value="<?= htmlspecialchars($subRow['bendSum'], ENT_QUOTES, 'UTF-8') ?>">
|
|
</td>
|
|
<td class="text-center">
|
|
<input type="text" name="plateSum[]" class="form-control text-end" readonly value="<?= htmlspecialchars($subRow['plateSum'], ENT_QUOTES, 'UTF-8') ?>">
|
|
</td>
|
|
<td class="text-center">
|
|
<input type="text" name="finalSum[]" class="form-control text-end" readonly value="<?= htmlspecialchars($subRow['finalSum'], ENT_QUOTES, 'UTF-8') ?>">
|
|
</td>
|
|
<td class="text-center">
|
|
<input type="text" name="unitPrice[]" class="form-control text-end" readonly value="<?= htmlspecialchars($subRow['unitPrice'], ENT_QUOTES, 'UTF-8') ?>">
|
|
</td>
|
|
<td class="text-center">
|
|
<input type="text" name="computedPrice[]" class="form-control text-end" readonly value="<?= htmlspecialchars($subRow['computedPrice'], ENT_QUOTES, 'UTF-8') ?>">
|
|
</td>
|
|
<td class="text-center">
|
|
<input type="text" name="quantity[]" class="form-control text-end" readonly value="<?= htmlspecialchars($subRow['quantity'], ENT_QUOTES, 'UTF-8') ?>">
|
|
</td>
|
|
<td class="text-center">
|
|
<input type="text" name="lineTotal[]" class="form-control text-end" readonly value="<?= htmlspecialchars($subRow['lineTotal'], ENT_QUOTES, 'UTF-8') ?>">
|
|
<input type="hidden" name="subpart_id[]" value="<?= $subRow['subpart_id'] ?>">
|
|
<!-- 부모 부품 ID를 숨김필드로 포함 -->
|
|
<input type="hidden" name="parent_part_id[]" value="<?= $partRow['part_id'] ?>">
|
|
<input type="hidden" name="image_url[]" value="<?= $subRow['image_url'] ?>">
|
|
</td>
|
|
</tr>
|