chore(web): page_len
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-12 15:39:17 +08:00
parent 56344b759d
commit 4347189794
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
4 changed files with 6 additions and 6 deletions

View File

@ -140,7 +140,7 @@ UOJGroup::cur()->userCanView(Auth::user(), ['ensure' => true]);
<?= UOJLocale::get('top solver') ?> <?= UOJLocale::get('top solver') ?>
</h2> </h2>
<?php UOJRanklist::printHTML([ <?php UOJRanklist::printHTML([
'page_len' => 25, 'page_len' => 15,
'group_id' => UOJGroup::info('id'), 'group_id' => UOJGroup::info('id'),
]) ?> ]) ?>
</div> </div>

View File

@ -409,7 +409,7 @@ EOD);
echo '</tr>'; echo '</tr>';
}, },
[ [
'page_len' => 20, 'page_len' => 10,
'div_classes' => ['table-responsive'], 'div_classes' => ['table-responsive'],
'table_classes' => ['table', 'align-middle'], 'table_classes' => ['table', 'align-middle'],
] ]
@ -469,7 +469,7 @@ EOD);
echo HTML::tag('td', [], UOJUser::getLink($row['username'])); echo HTML::tag('td', [], UOJUser::getLink($row['username']));
echo '<td>'; echo '<td>';
echo '<form class="d-inline-block" method="POST" onsubmit=\'return confirm("你真的要从小组中移除这个用户吗?")\'>' echo '<form class="d-inline-block" method="POST" onsubmit=\'return confirm("你真的要从小组中移除这个用户吗?")\'>'
. '<input type="hidden" name="_token" value="' . crsf_token() . '">' . HTML::hiddenToken()
. '<input type="hidden" name="remove_username" value="' . $row['username'] . '">' . '<input type="hidden" name="remove_username" value="' . $row['username'] . '">'
. '<button class="btn btn-link text-danger text-decoration-none p-0" type="submit" name="submit-remove_user" value="remove_user">移除</button>' . '<button class="btn btn-link text-danger text-decoration-none p-0" type="submit" name="submit-remove_user" value="remove_user">移除</button>'
. '</form>'; . '</form>';
@ -477,7 +477,7 @@ EOD);
echo HTML::tag_end('tr'); echo HTML::tag_end('tr');
}, },
[ [
'page_len' => 20, 'page_len' => 10,
'div_classes' => ['table-responsive'], 'div_classes' => ['table-responsive'],
'table_classes' => ['table', 'align-middle'], 'table_classes' => ['table', 'align-middle'],
] ]

View File

@ -64,7 +64,7 @@ $header .= '<th class="text-center" style="width:50px;">' . UOJLocale::get('appr
$header .= '</tr>'; $header .= '</tr>';
$pag_config = [ $pag_config = [
'page_len' => 40, 'page_len' => 20,
'col_names' => [ 'col_names' => [
'best_ac_submissions.submission_id as submission_id', 'best_ac_submissions.submission_id as submission_id',
'problems.id as id', 'problems.id as id',

View File

@ -341,7 +341,7 @@ EOD);
echo HTML::tag_end('tr'); echo HTML::tag_end('tr');
}, },
[ [
'page_len' => 20, 'page_len' => 10,
'div_classes' => ['table-responsive'], 'div_classes' => ['table-responsive'],
'table_classes' => ['table', 'align-middle'], 'table_classes' => ['table', 'align-middle'],
'print_after_table' => function () use ($n_problems) { 'print_after_table' => function () use ($n_problems) {