';
foreach ($tournamentsList as $tournament) {
$level = $tournament['tid'];
$time = $tournament['start_time'];
$tournament_members_id = TournamentModel::getFreeFighters($tournament['tid']);
$members = [];
foreach ($tournament_members_id as $member) {
$members[] = TournamentModel::uidToLogin($member['uid']);
}
$tournaments .= "
Турнир для {$tournament['tid']} уровней.
Время подачи заявки: " . date('G:i', $tournament['start_time']) . "
Участники:" . implode(', ', $members) . '';
}
$tournaments .= '';
if (array_key_exists('tournament_start', $_POST)) {
(new Tournament())->join($uid);
}
?>
Турнир для =$_COOKIE['login']?>
= $tournaments ?>
Вы уже учавствуете в турнире!