mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 06:58:41 +00:00
This commit is contained in:
parent
18c501354c
commit
2baeac115e
@ -36,7 +36,7 @@ EOD,
|
|||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
'page_len' => 40,
|
'page_len' => 25,
|
||||||
'div_classes' => ['card', 'my-3'],
|
'div_classes' => ['card', 'my-3'],
|
||||||
'table_classes' => ['table', 'uoj-table', 'mb-0'],
|
'table_classes' => ['table', 'uoj-table', 'mb-0'],
|
||||||
]
|
]
|
||||||
|
@ -394,7 +394,7 @@ if ($_POST['image_upload_file_submit'] == 'submit') {
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
$pag_config = [
|
$pag_config = [
|
||||||
'page_len' => 40,
|
'page_len' => 20,
|
||||||
'col_names' => ['*'],
|
'col_names' => ['*'],
|
||||||
'table_name' => 'users_images',
|
'table_name' => 'users_images',
|
||||||
'cond' => "uploader = '{$myUser['username']}'",
|
'cond' => "uploader = '{$myUser['username']}'",
|
||||||
|
@ -86,7 +86,7 @@ $table_header .= '<th style="width:180px;">' . UOJLocale::get('appraisal') . '</
|
|||||||
$table_header .= '</tr>';
|
$table_header .= '</tr>';
|
||||||
|
|
||||||
$table_config = [
|
$table_config = [
|
||||||
'page_len' => 40,
|
'page_len' => 50,
|
||||||
'div_classes' => ['card', 'mb-3'],
|
'div_classes' => ['card', 'mb-3'],
|
||||||
'table_classes' => ['table', 'uoj-table', 'mb-0', 'text-center'],
|
'table_classes' => ['table', 'uoj-table', 'mb-0', 'text-center'],
|
||||||
];
|
];
|
||||||
@ -104,7 +104,7 @@ echoLongTable(
|
|||||||
'order by start_time asc, id asc',
|
'order by start_time asc, id asc',
|
||||||
$table_header,
|
$table_header,
|
||||||
'echoContest',
|
'echoContest',
|
||||||
$table_config
|
$table_config + ['echo_full' => true],
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($rest_second <= 86400) {
|
if ($rest_second <= 86400) {
|
||||||
|
@ -81,7 +81,7 @@ if (UOJGroup::userCanCreateGroup(Auth::user())) {
|
|||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
'page_len' => 40,
|
'page_len' => 50,
|
||||||
'div_classes' => ['card', 'my-3'],
|
'div_classes' => ['card', 'my-3'],
|
||||||
'table_classes' => ['table', 'uoj-table', 'mb-0'],
|
'table_classes' => ['table', 'uoj-table', 'mb-0'],
|
||||||
'head_pagination' => true,
|
'head_pagination' => true,
|
||||||
|
@ -92,7 +92,7 @@ $pag_config = [
|
|||||||
],
|
],
|
||||||
'cond' => '1',
|
'cond' => '1',
|
||||||
'tail' => "order by id asc",
|
'tail' => "order by id asc",
|
||||||
'page_len' => 40,
|
'page_len' => 50,
|
||||||
'post_filter' => function ($problem) {
|
'post_filter' => function ($problem) {
|
||||||
return (new UOJProblem($problem))->userCanView(Auth::user());
|
return (new UOJProblem($problem))->userCanView(Auth::user());
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ $pag = new Paginator([
|
|||||||
'table_name' => 'lists',
|
'table_name' => 'lists',
|
||||||
'cond' => $cond,
|
'cond' => $cond,
|
||||||
'tail' => "order by id desc",
|
'tail' => "order by id desc",
|
||||||
'page_len' => 40,
|
'page_len' => 50,
|
||||||
'post_filter' => function ($info) {
|
'post_filter' => function ($info) {
|
||||||
return (new UOJList($info))->userCanView(Auth::user());
|
return (new UOJList($info))->userCanView(Auth::user());
|
||||||
}
|
}
|
||||||
|
@ -229,7 +229,7 @@ $pag = new Paginator([
|
|||||||
],
|
],
|
||||||
'cond' => $cond,
|
'cond' => $cond,
|
||||||
'tail' => "order by id asc",
|
'tail' => "order by id asc",
|
||||||
'page_len' => 40,
|
'page_len' => 50,
|
||||||
'post_filter' => function ($problem) {
|
'post_filter' => function ($problem) {
|
||||||
return (new UOJProblem($problem))->userCanView(Auth::user());
|
return (new UOJProblem($problem))->userCanView(Auth::user());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user