handle = function() { global $myUser, $contest; DB::query("insert into contests_registrants (username, user_rating, contest_id, has_participated) values ('{$myUser['username']}', {$myUser['rating']}, {$contest['id']}, 0)"); updateContestPlayerNum($contest); }; $register_form->submit_button_config['class_str'] = 'btn btn-primary'; $register_form->submit_button_config['text'] = '报名比赛'; $register_form->succ_href = "/contests"; $register_form->runAtServer(); ?>

比赛规则

printHTML(); ?>