chore: page length
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-17 21:50:04 +08:00
parent 18c501354c
commit 2baeac115e
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
7 changed files with 8 additions and 8 deletions

View File

@ -36,7 +36,7 @@ EOD,
echo '</tr>';
},
[
'page_len' => 40,
'page_len' => 25,
'div_classes' => ['card', 'my-3'],
'table_classes' => ['table', 'uoj-table', 'mb-0'],
]

View File

@ -394,7 +394,7 @@ if ($_POST['image_upload_file_submit'] == 'submit') {
<?php
$pag_config = [
'page_len' => 40,
'page_len' => 20,
'col_names' => ['*'],
'table_name' => 'users_images',
'cond' => "uploader = '{$myUser['username']}'",

View File

@ -86,7 +86,7 @@ $table_header .= '<th style="width:180px;">' . UOJLocale::get('appraisal') . '</
$table_header .= '</tr>';
$table_config = [
'page_len' => 40,
'page_len' => 50,
'div_classes' => ['card', 'mb-3'],
'table_classes' => ['table', 'uoj-table', 'mb-0', 'text-center'],
];
@ -104,7 +104,7 @@ echoLongTable(
'order by start_time asc, id asc',
$table_header,
'echoContest',
$table_config
$table_config + ['echo_full' => true],
);
if ($rest_second <= 86400) {

View File

@ -81,7 +81,7 @@ if (UOJGroup::userCanCreateGroup(Auth::user())) {
echo '</tr>';
},
[
'page_len' => 40,
'page_len' => 50,
'div_classes' => ['card', 'my-3'],
'table_classes' => ['table', 'uoj-table', 'mb-0'],
'head_pagination' => true,

View File

@ -92,7 +92,7 @@ $pag_config = [
],
'cond' => '1',
'tail' => "order by id asc",
'page_len' => 40,
'page_len' => 50,
'post_filter' => function ($problem) {
return (new UOJProblem($problem))->userCanView(Auth::user());
}

View File

@ -94,7 +94,7 @@ $pag = new Paginator([
'table_name' => 'lists',
'cond' => $cond,
'tail' => "order by id desc",
'page_len' => 40,
'page_len' => 50,
'post_filter' => function ($info) {
return (new UOJList($info))->userCanView(Auth::user());
}

View File

@ -229,7 +229,7 @@ $pag = new Paginator([
],
'cond' => $cond,
'tail' => "order by id asc",
'page_len' => 40,
'page_len' => 50,
'post_filter' => function ($problem) {
return (new UOJProblem($problem))->userCanView(Auth::user());
}