File manager - Edit - /home/webapp69.cm.in.th/u69319090028/Shop/views/admin/policies/acceptances.php
Back
<div class="cargoo-card"> <div class="cargoo-card-header d-flex justify-content-between align-items-center"> <div> <h5 class="mb-1 fw-bold"><i class="bi bi-people text-primary me-2"></i>บันทึกการยอมรับข้อกำหนด (User Acceptance Logs)</h5> <p class="text-muted small mb-0">เอกสาร: <strong><?= e($policy['title']) ?></strong> | เวอร์ชัน: <strong>v<?= e($policy['version']) ?></strong></p> </div> <a href="<?= url('/admin/policies') ?>" class="btn btn-outline-secondary btn-sm px-3"> <i class="bi bi-arrow-left me-1"></i> กลับหน้ารายการ </a> </div> <div class="cargoo-card-body p-0"> <?php if (empty($acceptances)): ?> <div class="text-center py-5"> <i class="bi bi-person-x text-muted fs-1"></i> <h6 class="mt-2 text-dark">ยังไม่มีผู้ใช้งานกดยอมรับเวอร์ชันนี้</h6> </div> <?php else: ?> <div class="table-responsive"> <table class="table align-middle mb-0"> <thead class="table-light small"> <tr> <th class="ps-3">ผู้ใช้งาน</th> <th>อีเมล</th> <th>เวอร์ชันที่ยอมรับ</th> <th>IP Address</th> <th>Device / Browser (User Agent)</th> <th class="pe-3 text-end">วันและเวลาที่กดยอมรับ</th> </tr> </thead> <tbody> <?php foreach ($acceptances as $a): ?> <tr> <td class="ps-3 small"> <strong><?= e($a['first_name'] . ' ' . $a['last_name']) ?></strong> <small class="text-muted d-block">@<?= e($a['username']) ?></small> </td> <td class="small text-muted"><?= e($a['email']) ?></td> <td class="small"><code>v<?= e($a['version']) ?></code></td> <td class="small"><code><?= e($a['ip_address'] ?? '-') ?></code></td> <td class="small text-truncate" style="max-width: 200px;" title="<?= e($a['user_agent'] ?? '') ?>"> <?= e($a['user_agent'] ?? '-') ?> </td> <td class="pe-3 text-end small text-muted"> <?= date('d/m/Y H:i:s', strtotime($a['accepted_at'])) ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <!-- Pagination --> <?php if ($pages > 1): ?> <nav aria-label="Acceptances pagination" class="d-flex justify-content-center p-3 border-top"> <ul class="pagination pagination-sm mb-0"> <?php for ($i = 1; $i <= $pages; $i++): ?> <li class="page-item <?= $i === $page ? 'active' : '' ?>"> <a class="page-link" href="<?= url('/admin/policies/' . $policy['id'] . '/acceptances?page=' . $i) ?>"><?= $i ?></a> </li> <?php endfor; ?> </ul> </nav> <?php endif; ?> <?php endif; ?> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.22 |
proxy
|
phpinfo
|
Settings