mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 08:18:41 +00:00
This commit is contained in:
parent
03ba52b90d
commit
03e6a1cb99
@ -127,6 +127,11 @@ EOD;
|
|||||||
$table_classes = array('table', 'table-bordered', 'table-hover', 'table-striped');
|
$table_classes = array('table', 'table-bordered', 'table-hover', 'table-striped');
|
||||||
?>
|
?>
|
||||||
<?php echoUOJPageHeader(UOJLocale::get('problems')) ?>
|
<?php echoUOJPageHeader(UOJLocale::get('problems')) ?>
|
||||||
|
<?php
|
||||||
|
if (isSuperUser($myUser) || isProblemManager($myUser) || isProblemUploader($myUser)) {
|
||||||
|
$new_problem_form->printHTML();
|
||||||
|
}
|
||||||
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<?= HTML::tablist($tabs_info, $cur_tab, 'nav-pills') ?>
|
<?= HTML::tablist($tabs_info, $cur_tab, 'nav-pills') ?>
|
||||||
@ -158,30 +163,22 @@ $('#input-show_submit_mode').click(function() {
|
|||||||
location.reload();
|
location.reload();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
<div class="<?= join($div_classes, ' ') ?>">
|
||||||
|
<table class="<?= join($table_classes, ' ') ?>">
|
||||||
|
<thead><?= $header ?></thead>
|
||||||
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
echo '<div class="', join($div_classes, ' '), '">';
|
|
||||||
echo '<table class="', join($table_classes, ' '), '">';
|
foreach ($pag->get() as $idx => $row) {
|
||||||
echo '<thead>';
|
echoProblem($row);
|
||||||
echo $header;
|
echo "\n";
|
||||||
echo '</thead>';
|
}
|
||||||
echo '<tbody>';
|
if ($pag->isEmpty()) {
|
||||||
|
echo '<tr><td class="text-center" colspan="233">'.UOJLocale::get('none').'</td></tr>';
|
||||||
foreach ($pag->get() as $idx => $row) {
|
}
|
||||||
echoProblem($row);
|
|
||||||
echo "\n";
|
|
||||||
}
|
|
||||||
if ($pag->isEmpty()) {
|
|
||||||
echo '<tr><td class="text-center" colspan="233">'.UOJLocale::get('none').'</td></tr>';
|
|
||||||
}
|
|
||||||
|
|
||||||
echo '</tbody>';
|
|
||||||
echo '</table>';
|
|
||||||
echo '</div>';
|
|
||||||
|
|
||||||
if (isSuperUser($myUser) || isProblemManager($myUser) || isProblemUploader($myUser)) {
|
|
||||||
$new_problem_form->printHTML();
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $pag->pagination();
|
|
||||||
?>
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<?= $pag->pagination() ?>
|
||||||
<?php echoUOJPageFooter() ?>
|
<?php echoUOJPageFooter() ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user