~~NOCACHE~~ require_once __DIR__.'/../../api/Pages/init.php'; $event_id = $_GET['event_id']; $_event = Api\Model\Events::findById(['id' => $event_id]); if (!$_event) { echo '対象イベントが見つかりません。'; exit(); } $event = $_event->getData(); $entries = Api\Model\TeamEntries::find([ 'where' => ['event_id' => $event_id], 'order_by' => ['created_at ASC'] ]); echo "

${event['title']} 参加チームリスト

"; echo '
'; echo ''; foreach ($entries as $idx => $entry) { echo ""; // $representative = json_decode($entry['representative'])->name; // echo ""; $mod_url = "/doku.php?id=apps:public:team_entry&event_id=${event_id}&mod=1"; echo '' . PHP_EOL; } echo '
チーム名チーム所在地出場クラス
" . ($idx + 1) . "${entry['team']} ${entry['city']} ${entry['league']}${representative}変更
';