File manager - Edit - /home/webapp69.cm.in.th/u69319090028/Shop/views/policy/show.php
Back
<div class="row g-4 my-2"> <!-- Left Sidebar: Policy Directory Navigation --> <div class="col-lg-3"> <div class="cargoo-card p-3 position-sticky" style="top: 80px;"> <h6 class="fw-bold text-dark mb-3 px-2 d-flex align-items-center gap-2"> <i class="bi bi-journal-text text-primary"></i> นโยบายทั้งหมด </h6> <div class="nav flex-column account-sidebar-nav gap-1"> <?php foreach ($allPolicies as $ap): ?> <a href="<?= url('/policy/' . $ap['type']) ?>" class="nav-link <?= $policy['type'] === $ap['type'] ? 'active fw-bold' : '' ?> py-2 px-3 small rounded-2"> <?= e($ap['title']) ?> </a> <?php endforeach; ?> </div> <hr class="my-3"> <a href="<?= url('/policy') ?>" class="text-muted small text-decoration-none px-2 d-flex align-items-center gap-1"> <i class="bi bi-arrow-left"></i> กลับหน้ารวมนโยบาย </a> </div> </div> <!-- Right Main Area: Policy Document Content --> <div class="col-lg-9"> <div class="cargoo-card p-4 p-md-5"> <!-- Document Header --> <div class="d-flex flex-column flex-sm-row justify-content-between align-items-sm-start gap-3 pb-4 mb-4 border-bottom"> <div> <span class="badge bg-primary-subtle text-primary border border-primary-subtle px-3 py-1 rounded-pill mb-2 small"> <?= e(UserAgreement::$types[$policy['type']] ?? $policy['type']) ?> </span> <h2 class="fw-bold text-dark mb-2"><?= e($policy['title']) ?></h2> <div class="d-flex flex-wrap align-items-center gap-3 small text-muted"> <span><i class="bi bi-clock me-1"></i> มีผลบังคับใช้: <strong><?= date('d/m/Y', strtotime($policy['effective_date'] ?? $policy['created_at'])) ?></strong></span> <span><i class="bi bi-tag me-1"></i> เวอร์ชัน: <strong>v<?= e($policy['version']) ?></strong></span> <?php if ($policy['status'] === 'active'): ?> <span class="badge bg-success-subtle text-success border border-success-subtle">ฉบับปัจจุบัน</span> <?php else: ?> <span class="badge bg-warning-subtle text-warning-emphasis border border-warning-subtle">ฉบับประวัติย้อนหลัง (Archived)</span> <?php endif; ?> </div> </div> <!-- Version History Selector Dropdown --> <?php if (!empty($policy['versions']) && count($policy['versions']) > 1): ?> <div class="dropdown"> <button class="btn btn-outline-secondary btn-sm dropdown-toggle px-3" type="button" data-bs-toggle="dropdown" aria-expanded="false"> <i class="bi bi-clock-history me-1"></i> ประวัติเวอร์ชัน </button> <ul class="dropdown-menu dropdown-menu-end shadow-sm border-0 small"> <?php foreach ($policy['versions'] as $v): ?> <li> <a class="dropdown-item d-flex justify-content-between align-items-center gap-3 py-2 <?= $v['version'] === $policy['version'] ? 'active fw-bold' : '' ?>" href="<?= url('/policy/' . $policy['type'] . '?v=' . urlencode($v['version'])) ?>"> <span>v<?= e($v['version']) ?></span> <small class="text-muted"><?= $v['status'] === 'active' ? '(ปัจจุบัน)' : date('d/m/Y', strtotime($v['effective_date'] ?? $v['created_at'])) ?></small> </a> </li> <?php endforeach; ?> </ul> </div> <?php endif; ?> </div> <!-- Document Legal Content Body --> <div class="policy-document-body lh-lg text-dark" style="font-size: 0.95rem; white-space: pre-line;"> <?= e($policy['content']) ?> </div> <!-- Document Footer --> <div class="pt-4 mt-5 border-top d-flex justify-content-between align-items-center small text-muted"> <span>© <?= date('Y') ?> CARGOO Marketplace Platform. สงวนลิขสิทธิ์ตามกฎหมาย</span> <button type="button" class="btn btn-outline-secondary btn-sm" onclick="window.print();"> <i class="bi bi-printer me-1"></i> พิมพ์เอกสาร </button> </div> </div> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings