このページの2つのバージョン間の差分を表示します。
| |
— | apps:public:team_entry_list [2025/06/10 02:41] (現在) – 作成 - 外部編集 127.0.0.1 |
---|
| ~~NOCACHE~~ |
| |
| <html><style> |
| th, td { |
| padding: 12px !important; |
| } |
| </style></html> |
| |
| <php> |
| require_once __DIR__.'/../../api/Pages/init.php'; |
| |
| $event_id = $_GET['event_id']; |
| $_event = Api\Model\Events::findById(['id' => $event_id]); |
| if (!$_event) { |
| echo '<span>対象イベントが見つかりません。</span>'; |
| exit(); |
| } |
| |
| $event = $_event->getData(); |
| $entries = Api\Model\TeamEntries::find([ |
| 'where' => ['event_id' => $event_id], |
| 'order_by' => ['created_at ASC'] |
| ]); |
| |
| echo "<h3>${event['title']} 参加チームリスト</h3>"; |
| |
| echo '<div class="table-responsive"><table class="table table-hover"><thead><tr style="background-color: rgb(248, 248, 248);">'; |
| echo '<th></th><th>チーム名</th><th>チーム所在地</th><th>出場クラス</th><th></th></tr></thead><tbody>'; |
| foreach ($entries as $idx => $entry) { |
| echo "<tr><td>" . ($idx + 1) . "</td><td>${entry['team']}</td> <td>${entry['city']}</td> <td>${entry['league']}</td>"; |
| // $representative = json_decode($entry['representative'])->name; |
| // echo "<td>${representative}</td>"; |
| $mod_url = "/doku.php?id=apps:public:team_entry&event_id=${event_id}&mod=1"; |
| echo '<td><a class="btn btn-primary btn-xs" href="' . $mod_url . '">変更</a></td></tr>' . PHP_EOL; |
| } |
| echo '</tbody></table></div>'; |
| </php> |