userCanParticipateNow(Auth::user()) || UOJResponse::page403(); UOJContest::cur()->userHasMarkedParticipated(Auth::user()) && redirectTo(UOJContest::cur()->getUri()); $confirm_form = new UOJBs4Form('confirm'); $confirm_form->submit_button_config['class_str'] = 'btn btn-primary mt-3'; $confirm_form->submit_button_config['text'] = '我已核对信息,确认参加比赛'; $confirm_form->handle = function () { UOJContest::cur()->markUserAsParticipated(Auth::user()); }; $confirm_form->succ_href = '/contest/' . UOJContest::info('id'); $confirm_form->runAtServer(); ?>
您即将参加比赛 “= UOJContest::info('name') ?>”,请在正式参赛前仔细核对以下比赛信息:
比赛名称 | = UOJContest::info('name') ?> |
参赛选手 | = UOJUser::getLink(Auth::user()) ?> |
开始时间 | = UOJContest::info('start_time_str') ?> |
结束时间 | = UOJContest::info('end_time_str') ?> |
比赛赛制 | = UOJContest::cur()->basicRule() ?> |