File manager - Edit - /home/webapp69.cm.in.th/u69319090028/Shop/views/admin/announcements/history.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-clock-history text-primary me-2"></i>ประวัติการดำเนินการประกาศ #<?= (int)$announcement['id'] ?></h5> <p class="text-muted small mb-0">หัวข้อ: <strong><?= e($announcement['title']) ?></strong></p> </div> <a href="<?= url('/admin/announcements') ?>" 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($history)): ?> <div class="text-center py-4 text-muted small"> ยังไม่มีประวัติการดำเนินการสำหรับประกาศนี้ </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>การกระทำ (Action)</th> <th>ผู้ดำเนินการ (Admin)</th> <th class="pe-3">รายละเอียด (Details)</th> </tr> </thead> <tbody> <?php foreach ($history as $h): ?> <tr> <td class="ps-3 small text-muted"> <?= date('d/m/Y H:i:s', strtotime($h['created_at'])) ?> </td> <td class="small"> <?php if ($h['action'] === 'created'): ?> <span class="badge bg-success-subtle text-success border">สร้างประกาศ</span> <?php elseif ($h['action'] === 'updated'): ?> <span class="badge bg-primary-subtle text-primary border">แก้ไขประกาศ</span> <?php elseif ($h['action'] === 'status_changed'): ?> <span class="badge bg-warning-subtle text-warning border">เปลี่ยนสถานะ</span> <?php elseif ($h['action'] === 'deleted'): ?> <span class="badge bg-danger-subtle text-danger border">ลบประกาศ</span> <?php else: ?> <span class="badge bg-light text-dark border"><?= e($h['action']) ?></span> <?php endif; ?> </td> <td class="small fw-semibold text-dark"> <?= e($h['performer_username'] ?? 'System') ?> </td> <td class="pe-3 small text-secondary"> <?= e($h['details'] ?? '-') ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php endif; ?> </div> </div>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings