';
if (isset($_COOKIE['show_submit_mode'])) {
$header .= '
'.UOJLocale::get('problems::ac').'
';
$header .= '
'.UOJLocale::get('problems::submit').'
';
$header .= '
'.UOJLocale::get('problems::ac ratio').'
';
}
if (isset($_COOKIE['show_difficulty'])) {
$header .= '
'.UOJLocale::get('problems::difficulty').'
';
}
$header .= '
'.UOJLocale::get('appraisal').'
';
$header .= '
';
$pag_config = [
'page_len' => 40,
'col_names' => [
'best_ac_submissions.submission_id as submission_id',
'problems.id as id',
'problems.is_hidden as is_hidden',
'problems.title as title',
'problems.submit_num as submit_num',
'problems.ac_num as ac_num',
'problems.zan as zan',
'problems.extra_config as extra_config',
'problems.uploader as uploader',
],
'table_name' => "problems left join best_ac_submissions on best_ac_submissions.submitter = '{$myUser['username']}' and problems.id = best_ac_submissions.problem_id inner join lists_problems lp on lp.list_id = {$list_id} and lp.problem_id = problems.id",
'cond' => '1',
'tail' => 'ORDER BY `id` ASC',
];
$pag = new Paginator($pag_config);
?>