userCanParticipateNow(Auth::user()) || UOJResponse::page403(); UOJContest::cur()->userHasMarkedParticipated(Auth::user()) && redirectTo(UOJContest::cur()->getUri()); $confirm_form = new UOJForm('confirm'); $confirm_form->config['submit_button']['class'] = 'btn btn-primary'; $confirm_form->config['submit_button']['text'] = '我已核对信息,确认参加比赛'; $confirm_form->handle = function () { UOJContest::cur()->markUserAsParticipated(Auth::user()); }; $confirm_form->succ_href = '/contest/' . UOJContest::info('id'); $confirm_form->runAtServer(); ?>

确认参赛

您即将参加比赛 “”,请在正式参赛前仔细核对以下比赛信息:

比赛名称
参赛选手
开始时间
结束时间
比赛赛制 basicRule() ?>
printHTML() ?>