mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 14:08:42 +00:00
fix(web): right column width
This commit is contained in:
parent
54b8415cf5
commit
318e618499
@ -7,10 +7,7 @@
|
||||
become403Page();
|
||||
}
|
||||
|
||||
if (!isset($_COOKIE['bootstrap4'])) {
|
||||
$REQUIRE_LIB['bootstrap5'] = '';
|
||||
}
|
||||
|
||||
requireLib('bootstrap5');
|
||||
requirePHPLib('form');
|
||||
|
||||
if (!isSuperUser($myUser)) {
|
||||
@ -59,39 +56,28 @@
|
||||
?>
|
||||
<?php echoUOJPageHeader('添加比赛') ?>
|
||||
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
<div class="row">
|
||||
<div class="col-lg-9">
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
<div class="card card-default mb-2">
|
||||
<div class="card-body">
|
||||
<?php endif ?>
|
||||
|
||||
<h1 class="page-header
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
h2 card-title
|
||||
<?php endif ?>
|
||||
">添加比赛</h1>
|
||||
<h1 class="h2 card-title">添加比赛</h1>
|
||||
|
||||
<div class="w-full" style="max-width: 400px">
|
||||
<?php $time_form->printHTML(); ?>
|
||||
</div>
|
||||
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
</div>
|
||||
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
</div>
|
||||
|
||||
<!-- right col -->
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<?php uojIncludeView('sidebar', array()) ?>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -73,7 +73,7 @@ EOD;
|
||||
<!-- end left col -->
|
||||
|
||||
<!-- right col -->
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<?php uojIncludeView('sidebar', array()) ?>
|
||||
</aside>
|
||||
<!-- end right col -->
|
||||
|
@ -88,7 +88,7 @@ EOD;
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
</div>
|
||||
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<?php uojIncludeView('sidebar', array()) ?>
|
||||
</aside>
|
||||
|
||||
|
@ -178,7 +178,7 @@
|
||||
?>
|
||||
<?php echoUOJPageHeader(HTML::stripTags($contest['name']) . ' - ' . UOJLocale::get('contests::contest registrants')) ?>
|
||||
|
||||
<h1 class="text-center"><?= $contest['name'] ?></h1>
|
||||
<h1 class="h2 text-center"><?= $contest['name'] ?></h1>
|
||||
<?php if ($contest['cur_progress'] == CONTEST_NOT_STARTED): ?>
|
||||
<?php if ($iHasRegistered): ?>
|
||||
<div class="row">
|
||||
|
@ -1,10 +1,15 @@
|
||||
<?php
|
||||
requireLib('shjs');
|
||||
requireLib('bootstrap5');
|
||||
requireLib('hljs');
|
||||
requireLib('mathjax');
|
||||
|
||||
$REQUIRE_LIB['bootstrap5'] = '';
|
||||
?>
|
||||
|
||||
<?php echoUOJPageHeader(UOJLocale::get('help')) ?>
|
||||
|
||||
<div class="row">
|
||||
<!-- left col -->
|
||||
<div class="col-lg-9">
|
||||
|
||||
<div class="card card-default">
|
||||
<article class="card-body">
|
||||
<h1 class="h3 card-title mb-3">常见问题及其解答 (FAQ)</h1>
|
||||
@ -102,4 +107,14 @@
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<!-- end left col -->
|
||||
</div>
|
||||
|
||||
<!-- right col -->
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<?php uojIncludeView('sidebar', array()) ?>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
||||
<?php echoUOJPageFooter() ?>
|
||||
|
@ -178,10 +178,11 @@
|
||||
|
||||
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
<!-- end left col -->
|
||||
</div>
|
||||
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
|
||||
<!-- right col -->
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<?php uojIncludeView('sidebar', array()); ?>
|
||||
</aside>
|
||||
|
||||
|
@ -120,7 +120,7 @@
|
||||
<!-- end left col -->
|
||||
</div>
|
||||
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<!-- right col -->
|
||||
|
||||
<?php uojIncludeView('sidebar', ['assignments_hidden' => true]); ?>
|
||||
|
@ -120,12 +120,12 @@ EOD;
|
||||
?>
|
||||
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
<!-- end left col -->
|
||||
</div>
|
||||
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<?php
|
||||
uojIncludeView('sidebar', array());
|
||||
?>
|
||||
<!-- right col -->
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<?php uojIncludeView('sidebar', array()); ?>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
@ -411,7 +411,7 @@ $('#contest-countdown').countdown(<?= $contest['end_time']->getTimestamp() - UOJ
|
||||
</div>
|
||||
<!-- End left col -->
|
||||
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<!-- Right col -->
|
||||
|
||||
<?php if ($contest): ?>
|
||||
|
@ -305,9 +305,8 @@ $('#input-show_difficulty').click(function() {
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
</div>
|
||||
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
|
||||
<?php uojIncludeView('sidebar', array()); ?>
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<?php uojIncludeView('sidebar'); ?>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
@ -155,10 +155,8 @@ EOD;
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
</div>
|
||||
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<?php
|
||||
uojIncludeView('sidebar', array());
|
||||
?>
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
<?php uojIncludeView('sidebar', array()) ?>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
@ -152,9 +152,11 @@ table-hover
|
||||
<?php endif ?>
|
||||
|
||||
<?php if (isset($REQUIRE_LIB['bootstrap5'])): ?>
|
||||
<!-- end left col -->
|
||||
</div>
|
||||
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<!-- right col -->
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
|
||||
<div class="card card-default mb-2">
|
||||
<ul class="nav nav-pills nav-fill flex-column" role="tablist">
|
||||
|
@ -273,7 +273,7 @@ $('#input-show_difficulty').click(function() {
|
||||
<!-- end left col -->
|
||||
|
||||
<!-- right col -->
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
|
||||
<!-- search bar -->
|
||||
<form method="get" class="mb-3" id="form-problem_search">
|
||||
|
@ -1,9 +1,8 @@
|
||||
<?php
|
||||
requireLib('bootstrap5');
|
||||
requirePHPLib('form');
|
||||
requirePHPLib('judger');
|
||||
|
||||
$REQUIRE_LIB['bootstrap5'] = '';
|
||||
|
||||
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
||||
redirectToLogin();
|
||||
}
|
||||
@ -237,15 +236,13 @@ EOD;
|
||||
</div>
|
||||
|
||||
<!-- Pagination -->
|
||||
<div class="text-center">
|
||||
<?= $pag->pagination(); ?>
|
||||
</div>
|
||||
<?= $pag->pagination() ?>
|
||||
|
||||
<!-- End left col -->
|
||||
</div>
|
||||
|
||||
<!-- Right col -->
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
|
||||
<div class="card card-default mb-2">
|
||||
<ul class="nav nav-pills nav-fill flex-column" role="tablist">
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php
|
||||
requireLib('bootstrap5');
|
||||
requirePHPLib('form');
|
||||
|
||||
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
||||
@ -11,8 +12,6 @@
|
||||
if (!hasProblemPermission($myUser, $problem)) {
|
||||
become403Page();
|
||||
}
|
||||
|
||||
requireLib('bootstrap5');
|
||||
|
||||
$problem_content = queryProblemContent($problem['id']);
|
||||
$problem_tags = queryProblemTags($problem['id']);
|
||||
@ -104,7 +103,7 @@
|
||||
</div>
|
||||
|
||||
<!-- right col -->
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
|
||||
<div class="card card-default mb-2">
|
||||
<ul class="nav nav-pills nav-fill flex-column" role="tablist">
|
||||
|
@ -1,4 +1,7 @@
|
||||
<?php
|
||||
requireLib('bootstrap5');
|
||||
requireLib('morris');
|
||||
|
||||
if (!Auth::check() && UOJConfig::$data['switch']['force-login']) {
|
||||
redirectToLogin();
|
||||
}
|
||||
@ -7,8 +10,6 @@
|
||||
become404Page();
|
||||
}
|
||||
|
||||
requireLib('bootstrap5');
|
||||
|
||||
$contest = validateUInt($_GET['contest_id']) ? queryContest($_GET['contest_id']) : null;
|
||||
if ($contest != null) {
|
||||
genMoreContestInfo($contest);
|
||||
@ -71,12 +72,12 @@
|
||||
|
||||
$submissions_sort_by_choice = !isset($_COOKIE['submissions-sort-by-code-length']) ? 'time' : 'tot_size';
|
||||
?>
|
||||
<?php
|
||||
$REQUIRE_LIB['morris'] = "";
|
||||
?>
|
||||
|
||||
<?php echoUOJPageHeader(HTML::stripTags($problem['title']) . ' - ' . UOJLocale::get('problems::statistics')) ?>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!-- left col -->
|
||||
<div class="col-lg-9">
|
||||
|
||||
<?php if ($contest): ?>
|
||||
@ -263,7 +264,7 @@ new Morris.Line({
|
||||
</div>
|
||||
|
||||
<!-- Right col -->
|
||||
<aside class="col mt-3 mt-lg-0">
|
||||
<aside class="col-lg-3 mt-3 mt-lg-0">
|
||||
|
||||
<?php if ($contest): ?>
|
||||
<!-- Contest card -->
|
||||
|
Loading…
Reference in New Issue
Block a user