chore: update page_len

This commit is contained in:
Baoshuo Ren 2022-09-18 21:06:18 +08:00
parent 5db6977c85
commit 17a69b006c
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
4 changed files with 5 additions and 5 deletions

View File

@ -42,7 +42,7 @@
EOD;
$config = [
'table_classes' => ['table', 'table-hover'],
'page_len' => 100
'page_len' => 40
];
?>
<?php echoUOJPageHeader(UOJLocale::get('announcements')) ?>

View File

@ -62,7 +62,7 @@ EOD;
$table_header .= '</tr>';
echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by id desc', $table_header,
echoContest,
array('page_len' => 100)
array('page_len' => 40)
);
if ($rest_second <= 86400) {
@ -87,7 +87,7 @@ EOD;
<?php
echoLongTable(array('*'), 'contests', "status = 'finished'", 'order by id desc', $table_header,
echoContest,
array('page_len' => 100,
array('page_len' => 40,
'print_after_table' => function() {
global $myUser;
if (isSuperUser($myUser)) {

View File

@ -69,7 +69,7 @@ EOD;
$from, $cond, 'group by a.id order by a.id asc',
$header,
'echoGroup',
array('page_len' => 100,
array('page_len' => 40,
'table_classes' => array('table', 'table-bordered', 'table-hover', 'table-striped'),
'print_after_table' => function() {
global $myUser;

View File

@ -134,7 +134,7 @@ EOD;
);
?>*/
$pag_config = array('page_len' => 100);
$pag_config = array('page_len' => 40);
$pag_config['col_names'] = array('*');
$pag_config['table_name'] = "problems left join best_ac_submissions on best_ac_submissions.submitter = '{$myUser['username']}' and problems.id = best_ac_submissions.problem_id";
$pag_config['cond'] = $cond;