handle = function() {
DB::query("insert into lists (title, is_hidden) values ('未命名题单', 1)");
};
$new_list_form->submit_button_config['align'] = 'right';
$new_list_form->submit_button_config['class_str'] = 'btn btn-primary';
$new_list_form->submit_button_config['text'] = UOJLocale::get('problems::add new list');
$new_list_form->submit_button_config['smart_confirm'] = '';
$new_list_form->runAtServer();
}
function echoList($list) {
global $myUser, $REQUIRE_LIB;
echo '
';
if ($list['problem_count'] == $list['accepted'] && $list['problem_count'] > 0) {
echo '';
} else {
echo ' | ';
}
echo '#', $list['list_id'], ' | ';
if (isset($REQUIRE_LIB['bootstrap5'])) {
echo '';
} else {
echo ' | ';
}
if ($list['is_hidden']) {
echo ' [隐藏] ';
}
echo '', $list['title'], ' ';
foreach (queryProblemListTags($list['list_id']) as $tag) {
if (isset($REQUIRE_LIB['bootstrap5'])) {
echo '';
echo '';
} else {
echo '';
echo '';
}
echo HTML::escape($tag), '', '';
}
echo ' | ';
echo "{$list['accepted']} | ";
echo "{$list['problem_count']} | ";
echo '
';
}
?>