userCanRegister(Auth::user(), ['ensure' => true]); $register_form = new UOJForm('register'); $register_form->handle = function () { UOJContest::cur()->userRegister(Auth::user()); }; $register_form->config['submit_button']['class'] = 'btn btn-primary'; $register_form->config['submit_button']['text'] = '我已阅读规则,确认报名比赛'; if (UOJContest::cur()->progress() == CONTEST_IN_PROGRESS) { $register_form->succ_href = '/contest/' . UOJContest::info('id') . '/confirm'; } else { $register_form->succ_href = '/contests'; } $register_form->runAtServer(); ?>
您即将报名比赛 “= UOJContest::info('name') ?>”,请在报名前仔细阅读以下比赛规则: