공통화 작업 및 워커 해더

This commit is contained in:
2026-04-07 15:39:41 +09:00
parent cba387de9d
commit 6a72ccebd5
51 changed files with 1185 additions and 2497 deletions

View File

@@ -1,6 +1,6 @@
<?php
$usr_level = session('usr_level');
$isV2 = (($data['isSiteVRVerification'] ?? '') === 'Y');
?>
<?= $this->extend('layouts/main') ?>
<?= $this->section('content') ?>
@@ -256,8 +256,9 @@ $usr_level = session('usr_level');
<div class="d-flex align-items-center justify-content-end gap-1 mt-2">
<button type="button" class="btn btn-sm btn-outline-light btn-edit"
onclick="editPriceInfo();">수정</button>
<button type="button" class="btn btn-sm btn-outline-success btn-save"
onclick="modifyPriceInfo();">가격수정</button>
<button type="button" class="btn btn-sm btn-outline-success btn-save"
data-hscp_no="<?php echo $data['rcpt_hscp_no'];?>" data-ptp_no="<?php echo $data['rcpt_ptp_no'];?>"
onclick="modifyPriceInfo(this);">가격수정</button>
</div>
</div>
</td>
@@ -1288,12 +1289,16 @@ $usr_level = session('usr_level');
<div class="my-3">
<div class="border rounded-3 p-2">
<div class="d-flex justify-content-between align-items-center mb-2">
<div class="fw-semibold">매물사진 (최대 15장)</div>
<?php
$isV2 = (($data['isSiteVRVerification'] ?? '') === 'Y');
$maxPhotos = $isV2 ? 1 : 15;
?>
<div class="fw-semibold">매물사진 (최대 <?= $maxPhotos ?>장)</div>
<div class="d-flex gap-1 flex-wrap">
<button type="button" class="btn btn-sm btn-outline-secondary" onclick="viewFilePop('I4', '')">파일</button>
<button type="button" class="btn btn-sm btn-outline-primary"
onclick="savePropertyImageOrder()">순서저장</button>
onclick="savePropertyImageOrder()" <?= $isV2 ? 'disabled' : '' ?>>순서저장</button>
<button type="button" class="btn btn-sm btn-outline-success"
onclick="downloadImagesByType('I4', '매물사진')">일괄다운로드</button>
<button type="button" class="btn btn-sm btn-outline-danger"
@@ -1348,6 +1353,7 @@ $usr_level = session('usr_level');
</div>
<!-- 동영상 / 평면도 / 체크리스트 -->
<?php if (!$isV2): ?>
<div class="row g-3">
<!-- 동영상 -->
<div class="col-12 col-lg-10p">
@@ -1463,6 +1469,8 @@ $usr_level = session('usr_level');
</div>
</div>
<?php endif; ?>
<!-- 평면도중복 -->
<?php if (!empty($dupleGroundPlan)): ?>
<div class="border rounded-3 p-3 mb-3 bg-white">
@@ -1762,6 +1770,7 @@ $usr_level = session('usr_level');
</div>
<!-- 360이미지 / 촬영위치 -->
<?php if (!$isV2): ?>
<div class="my-3">
<div class="border rounded-3 p-2">
<div class="d-flex justify-content-between align-items-center mb-2">
@@ -1816,6 +1825,7 @@ $usr_level = session('usr_level');
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
@@ -2036,7 +2046,8 @@ $usr_level = session('usr_level');
</div>
<!-- Dropzone 영역 -->
<div id="myDropzone" class="dropzone border rounded-3 p-2" style="max-height: 520px;overflow-y: auto; overflow-x: hidden; min-height: 250px;">
<div id="myDropzone" class="dropzone border rounded-3 p-2" style="max-height: 520px;overflow-y: auto; overflow-x: hidden; min-height: 250px;"
data-is-v2="<?= (($data['isSiteVRVerification'] ?? '') === 'Y') ? 'true' : 'false' ?>">
<div class="dz-message dz-message-fixed needsclick text-center py-3">
<i class="pe-7s-upload" style="font-size:28px; color: #6c757d;"></i><br>
<span style="font-size: 13px; color: #6c757d;">파일을 드래그하거나 위 [파일선택] 버튼을 클릭하세요</span>