addNew((int)$_POST['teamMembersQuantity'], 2, (int)$_POST['startTime']); } if (isset($_POST['fight_id']) && isset($_POST['team_id'])) { Arena::fight()->join((int)$_POST['fight_id'], (int)$_POST['team_id']); } Template::header('Арена'); ?> hasNoPendingFights()): ?>