prepare('SELECT COUNT(*) FROM dance_applications' . $whereSql); $countStmt->execute($params); $total = (int) $countStmt->fetchColumn(); $pages = max(1, (int) ceil($total / $perPage)); $page = min($page, $pages); $offset = ($page - 1) * $perPage; $stmt = db()->prepare('SELECT * FROM dance_applications' . $whereSql . " ORDER BY created_at DESC, id DESC LIMIT $perPage OFFSET $offset"); $stmt->execute($params); $rows = $stmt->fetchAll(); render_header('30TH 應援報名', 'dance-applications'); ?>
共 = $total ?> 筆;Email 與上傳檔案僅供企劃聯絡使用
| 編號 | 暱稱 | 想參與 | 歌曲 | 狀態 | 送出時間 | 操作 | |
|---|---|---|---|---|---|---|---|
| #= (int) $row['id'] ?> | = h($row['nickname']) ?> | = h(mb_strimwidth((string) $row['email'], 0, 34, '…', 'UTF-8')) ?> | = h(implode('、', dance_content_labels($row['participate_content']))) ?> | = h(dance_song_label($row['song'])) ?> | = h($statusOptions[$row['status']] ?? $row['status']) ?> | = h($row['created_at']) ?> | 查看/處理 |
| 目前沒有符合條件的報名資料。 | |||||||