mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 12:58:40 +00:00
chore: update page_len
This commit is contained in:
parent
5db6977c85
commit
17a69b006c
@ -42,7 +42,7 @@
|
|||||||
EOD;
|
EOD;
|
||||||
$config = [
|
$config = [
|
||||||
'table_classes' => ['table', 'table-hover'],
|
'table_classes' => ['table', 'table-hover'],
|
||||||
'page_len' => 100
|
'page_len' => 40
|
||||||
];
|
];
|
||||||
?>
|
?>
|
||||||
<?php echoUOJPageHeader(UOJLocale::get('announcements')) ?>
|
<?php echoUOJPageHeader(UOJLocale::get('announcements')) ?>
|
||||||
|
@ -62,7 +62,7 @@ EOD;
|
|||||||
$table_header .= '</tr>';
|
$table_header .= '</tr>';
|
||||||
echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by id desc', $table_header,
|
echoLongTable(array('*'), 'contests', "status != 'finished'", 'order by id desc', $table_header,
|
||||||
echoContest,
|
echoContest,
|
||||||
array('page_len' => 100)
|
array('page_len' => 40)
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($rest_second <= 86400) {
|
if ($rest_second <= 86400) {
|
||||||
@ -87,7 +87,7 @@ EOD;
|
|||||||
<?php
|
<?php
|
||||||
echoLongTable(array('*'), 'contests', "status = 'finished'", 'order by id desc', $table_header,
|
echoLongTable(array('*'), 'contests', "status = 'finished'", 'order by id desc', $table_header,
|
||||||
echoContest,
|
echoContest,
|
||||||
array('page_len' => 100,
|
array('page_len' => 40,
|
||||||
'print_after_table' => function() {
|
'print_after_table' => function() {
|
||||||
global $myUser;
|
global $myUser;
|
||||||
if (isSuperUser($myUser)) {
|
if (isSuperUser($myUser)) {
|
||||||
|
@ -69,7 +69,7 @@ EOD;
|
|||||||
$from, $cond, 'group by a.id order by a.id asc',
|
$from, $cond, 'group by a.id order by a.id asc',
|
||||||
$header,
|
$header,
|
||||||
'echoGroup',
|
'echoGroup',
|
||||||
array('page_len' => 100,
|
array('page_len' => 40,
|
||||||
'table_classes' => array('table', 'table-bordered', 'table-hover', 'table-striped'),
|
'table_classes' => array('table', 'table-bordered', 'table-hover', 'table-striped'),
|
||||||
'print_after_table' => function() {
|
'print_after_table' => function() {
|
||||||
global $myUser;
|
global $myUser;
|
||||||
|
@ -134,7 +134,7 @@ EOD;
|
|||||||
);
|
);
|
||||||
?>*/
|
?>*/
|
||||||
|
|
||||||
$pag_config = array('page_len' => 100);
|
$pag_config = array('page_len' => 40);
|
||||||
$pag_config['col_names'] = array('*');
|
$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['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;
|
$pag_config['cond'] = $cond;
|
||||||
|
Loading…
Reference in New Issue
Block a user