From 720db7727a15bf2f28ef07abad5ea91a5f1940d0 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 4 Dec 2022 20:44:51 +0800 Subject: [PATCH] feat(web/problem): problem info card --- web/app/controllers/problem.php | 46 ++++++++++++++++++--- web/app/controllers/problem_data_manage.php | 1 - web/app/controllers/problem_solutions.php | 44 ++++++++++++++++++-- web/app/controllers/problem_statistics.php | 43 +++++++++++++++++-- 4 files changed, 122 insertions(+), 12 deletions(-) diff --git a/web/app/controllers/problem.php b/web/app/controllers/problem.php index 42eecfc..d58f991 100644 --- a/web/app/controllers/problem.php +++ b/web/app/controllers/problem.php @@ -250,8 +250,6 @@ if (UOJContest::cur()) { 时间限制:   空间限制: -   - 上传者: getUploaderLink() ?>
@@ -381,9 +379,46 @@ if (UOJContest::cur()) { - + + + +
+
@@ -411,6 +446,7 @@ if (UOJContest::cur()) { if (UOJContest::cur() && UOJContest::cur()->progress() <= CONTEST_IN_PROGRESS) { $sidebar_config['upcoming_contests_hidden'] = ''; } + uojIncludeView('sidebar', $sidebar_config); ?> diff --git a/web/app/controllers/problem_data_manage.php b/web/app/controllers/problem_data_manage.php index 65da7c2..60412b6 100644 --- a/web/app/controllers/problem_data_manage.php +++ b/web/app/controllers/problem_data_manage.php @@ -656,7 +656,6 @@ $info_form->runAtServer();
-

#. 管理

diff --git a/web/app/controllers/problem_solutions.php b/web/app/controllers/problem_solutions.php index d6f8d68..66c69fc 100644 --- a/web/app/controllers/problem_solutions.php +++ b/web/app/controllers/problem_solutions.php @@ -206,6 +206,7 @@ $pag = new Paginator($pag_config);