From 2baeac115ead92897627b3f1c9434070389eeb14 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Fri, 17 Feb 2023 21:50:04 +0800 Subject: [PATCH] chore: page length --- web/app/controllers/announcements.php | 2 +- web/app/controllers/apps/image_hosting.php | 2 +- web/app/controllers/contests.php | 4 ++-- web/app/controllers/groups.php | 2 +- web/app/controllers/list.php | 2 +- web/app/controllers/lists.php | 2 +- web/app/controllers/problem_set.php | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/app/controllers/announcements.php b/web/app/controllers/announcements.php index 7fe037b..d6623e5 100644 --- a/web/app/controllers/announcements.php +++ b/web/app/controllers/announcements.php @@ -36,7 +36,7 @@ EOD, echo ''; }, [ - 'page_len' => 40, + 'page_len' => 25, 'div_classes' => ['card', 'my-3'], 'table_classes' => ['table', 'uoj-table', 'mb-0'], ] diff --git a/web/app/controllers/apps/image_hosting.php b/web/app/controllers/apps/image_hosting.php index e09cf27..0902d61 100644 --- a/web/app/controllers/apps/image_hosting.php +++ b/web/app/controllers/apps/image_hosting.php @@ -394,7 +394,7 @@ if ($_POST['image_upload_file_submit'] == 'submit') { 40, + 'page_len' => 20, 'col_names' => ['*'], 'table_name' => 'users_images', 'cond' => "uploader = '{$myUser['username']}'", diff --git a/web/app/controllers/contests.php b/web/app/controllers/contests.php index 488ad7f..fa2c4ce 100644 --- a/web/app/controllers/contests.php +++ b/web/app/controllers/contests.php @@ -86,7 +86,7 @@ $table_header .= '' . UOJLocale::get('appraisal') . ''; $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) { diff --git a/web/app/controllers/groups.php b/web/app/controllers/groups.php index a253da5..e04aa6c 100644 --- a/web/app/controllers/groups.php +++ b/web/app/controllers/groups.php @@ -81,7 +81,7 @@ if (UOJGroup::userCanCreateGroup(Auth::user())) { echo ''; }, [ - 'page_len' => 40, + 'page_len' => 50, 'div_classes' => ['card', 'my-3'], 'table_classes' => ['table', 'uoj-table', 'mb-0'], 'head_pagination' => true, diff --git a/web/app/controllers/list.php b/web/app/controllers/list.php index 021d435..8a98d2f 100644 --- a/web/app/controllers/list.php +++ b/web/app/controllers/list.php @@ -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()); } diff --git a/web/app/controllers/lists.php b/web/app/controllers/lists.php index 42e24b4..69aaf66 100644 --- a/web/app/controllers/lists.php +++ b/web/app/controllers/lists.php @@ -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()); } diff --git a/web/app/controllers/problem_set.php b/web/app/controllers/problem_set.php index 697501a..6dbeea8 100644 --- a/web/app/controllers/problem_set.php +++ b/web/app/controllers/problem_set.php @@ -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()); }