fix(web): style

This commit is contained in:
Baoshuo Ren 2022-10-20 21:27:31 +08:00
parent 5c34086522
commit 65bbc99560
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -596,7 +596,6 @@ EOD);
}; };
$change_user_image_total_size_limit_form->runAtServer(); $change_user_image_total_size_limit_form->runAtServer();
} }
?> ?>
@ -1085,15 +1084,15 @@ echoSubmissionsList(
<th>IP</th> <th>IP</th>
</tr> </tr>
EOD, EOD,
function($row) { function($row) {
echo <<<EOD echo <<<EOD
<tr> <tr>
<td>{$row['judger_name']}</td> <td>{$row['judger_name']}</td>
<td>{$row['password']}</td> <td>{$row['password']}</td>
<td>{$row['ip']}</td> <td>{$row['ip']}</td>
</tr> </tr>
EOD; EOD;
}, },
[ [
'page_len' => 10, 'page_len' => 10,
'div_classes' => ['card', 'mb-3', 'table-responsive'], 'div_classes' => ['card', 'mb-3', 'table-responsive'],
@ -1111,12 +1110,12 @@ EOD;
</div> </div>
<?php elseif ($cur_tab == 'image_hosting'): ?> <?php elseif ($cur_tab == 'image_hosting'): ?>
<?php <?php
echoLongTable( echoLongTable(
['*'], ['*'],
'users_images', 'users_images',
'1', '1',
'order by id desc', 'order by id desc',
<<<EOD <<<EOD
<tr> <tr>
<th style="width: 10em">上传者</th> <th style="width: 10em">上传者</th>
<th style="width: 14em">预览</th> <th style="width: 14em">预览</th>
@ -1125,16 +1124,16 @@ echoLongTable(
<th style="width: 6em">操作</th> <th style="width: 6em">操作</th>
</tr> </tr>
EOD, EOD,
function($row) { function($row) {
$user_link = getUserLink($row['uploader']); $user_link = getUserLink($row['uploader']);
if ($row['size'] < 1024 * 512) { if ($row['size'] < 1024 * 512) {
$size = strval(round($row['size'] * 1.0 / 1024, 1)) . ' KB'; $size = strval(round($row['size'] * 1.0 / 1024, 1)) . ' KB';
} else { } else {
$size = strval(round($row['size'] * 1.0 / 1024 / 1024, 1)) . ' MB'; $size = strval(round($row['size'] * 1.0 / 1024 / 1024, 1)) . ' MB';
} }
$token = crsf_token(); $token = crsf_token();
echo <<<EOD echo <<<EOD
<tr> <tr>
<td>$user_link</td> <td>$user_link</td>
<td><img src="{$row['path']}" width="250" loading="lazy"></td> <td><img src="{$row['path']}" width="250" loading="lazy"></td>
@ -1149,12 +1148,12 @@ EOD,
</td> </td>
</tr> </tr>
EOD; EOD;
}, },
[ [
'page_len' => 20, 'page_len' => 20,
'div_classes' => ['card', 'mb-3', 'table-responsive'], 'div_classes' => ['card', 'mb-3', 'table-responsive'],
'table_classes' => ['table', 'uoj-table', 'mb-0'], 'table_classes' => ['table', 'uoj-table', 'mb-0'],
] ]
); ?> ); ?>
<div class="card mt-3"> <div class="card mt-3">
<div class="card-body"> <div class="card-body">