72 lines
3.5 KiB
PHP
72 lines
3.5 KiB
PHP
<?php
|
|
$sub_menu = '800900'; // 메뉴 코드 (적절히 수정 필요)
|
|
include_once('./_common.php');
|
|
|
|
$g5['title'] = '전문가 방문 예약 기능 사용법';
|
|
include_once(G5_ADMIN_PATH.'/admin.head.php');
|
|
?>
|
|
|
|
<div class="local_desc01 local_desc">
|
|
<p>
|
|
이 페이지는 사이트의 어떤 페이지에서든 <strong>전문가 방문 예약</strong> 및 <strong>나의 예약 확인</strong> 기능을 추가하는 방법을 보여주는 예제입니다.<br>
|
|
아래 코드 한 줄만 포함하면, 버튼과 팝업 기능이 모두 활성화됩니다.
|
|
</p>
|
|
<pre><code><?php include_once(G5_ADMIN_PATH . '/order_manage/components/_expert_visit_popups.php'); ?></code></pre>
|
|
</div>
|
|
|
|
<!-- ================================================================== -->
|
|
<!-- 💡 [시작] 실제 작동 예제 -->
|
|
<!-- ================================================================== -->
|
|
|
|
<div style="text-align:center; padding: 50px 20px; background-color:#f5f5f5; border-radius:10px; margin: 20px 0;">
|
|
<h3 style="margin-bottom:15px;">전문가 방문이 필요하신가요?</h3>
|
|
<p style="margin-bottom:25px; color:#666;">버튼을 눌러 간편하게 방문을 신청하거나, 기존 예약을 확인/취소할 수 있습니다.</p>
|
|
|
|
<!-- 1. 버튼들 -->
|
|
<div class="expert-buttons">
|
|
<!-- wr_id는 게시판 글 ID입니다. 없으면 0 또는 생략 가능합니다. -->
|
|
<button type="button" class="expert-request-btn-main" onclick="openExpertVisitPopup(0)">
|
|
<i class="fa fa-calendar-check-o"></i> 전문가 방문 예약하기
|
|
</button>
|
|
<button type="button" class="my-reservation-btn" onclick="openMyExpertReservationsPopup()">
|
|
<i class="fa fa-list"></i> 나의 예약 현황
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<?php
|
|
// 2. 팝업 파일들 포함 (이 코드 한 줄이면 모든 팝업 기능이 로드됩니다)
|
|
include_once(G5_ADMIN_PATH . '/order_manage/components/_expert_visit_popups.php');
|
|
?>
|
|
|
|
<!-- 3. 스타일 (CSS 파일에 추가 권장) -->
|
|
<style>
|
|
/* 버튼 스타일 */
|
|
.expert-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
|
|
.expert-request-btn-main, .my-reservation-btn {
|
|
color: white; border: none; padding: 15px 30px; border-radius: 25px;
|
|
font-size: 16px; font-weight: bold; cursor: pointer; transition: all 0.3s ease;
|
|
}
|
|
.expert-request-btn-main {
|
|
background: linear-gradient(135deg, #ff6b35 0%, #f98e5a 100%);
|
|
box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
|
|
}
|
|
.expert-request-btn-main:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4); }
|
|
.my-reservation-btn { background: #6c757d; }
|
|
.my-reservation-btn:hover { background: #5a6268; }
|
|
.expert-request-btn-main i, .my-reservation-btn i { margin-right: 8px; }
|
|
</style>
|
|
|
|
<!-- ================================================================== -->
|
|
<!-- 💡 [끝] 실제 작동 예제 -->
|
|
<!-- ================================================================== -->
|
|
|
|
<div class="local_desc02 local_desc">
|
|
<h3>📌 적용 방법</h3>
|
|
<p>위의 예제 코드를 복사하여 원하는 페이지(예: <code>tail.php</code>, <code>index.php</code> 등)에 붙여넣으세요.</p>
|
|
<p><strong>주의사항:</strong> <code>G5_ADMIN_PATH</code> 상수는 그누보드 설정에 따라 다를 수 있으므로, 실제 경로(예: <code>/adm</code>)로 직접 입력해야 할 수도 있습니다.</p>
|
|
</div>
|
|
|
|
<?php
|
|
include_once(G5_ADMIN_PATH.'/admin.tail.php');
|
|
?>
|