handle = function () { DB::insert([ "insert into problems", "(title, uploader, is_hidden, submission_requirement)", "values", DB::tuple(["New Problem", Auth::id(), 1, "{}"]) ]); $id = DB::insert_id(); DB::insert([ "insert into problems_contents", "(id, statement, statement_md)", "values", DB::tuple([$id, "", "## 题目描述\n\n## 输入格式\n\n## 输出格式\n\n## 输入输出样例\n\n### 输入样例 #1\n\n\n\n### 输出样例 #1\n\n\n\n### 样例解释 #1\n\n\n\n## 数据范围与约定\n\n\n"]) ]); dataNewProblem($id); }; $new_problem_form->submit_button_config['align'] = 'right'; $new_problem_form->submit_button_config['class_str'] = 'btn btn-primary'; $new_problem_form->submit_button_config['text'] = UOJLocale::get('problems::add new'); $new_problem_form->submit_button_config['smart_confirm'] = ''; $new_problem_form->runAtServer(); } function getProblemTR($info) { $problem = new UOJProblem($info); $html = '