~~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 "" . ($idx + 1) . " | ${entry['team']} | ${entry['city']} | ${entry['league']} | ";
// $representative = json_decode($entry['representative'])->name;
// echo "${representative} | ";
$mod_url = "/doku.php?id=apps:public:team_entry&event_id=${event_id}&mod=1";
echo '変更 |
' . PHP_EOL;
}
echo '
';