mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 13:38:41 +00:00
feat(contest/submissions): problem title in chooser
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
571d5cddc3
commit
df7d1784d3
@ -426,8 +426,11 @@ function echoMySubmissions() {
|
|||||||
$options = [];
|
$options = [];
|
||||||
$options[] = ['value' => 'all', 'text' => '所有题目'];
|
$options[] = ['value' => 'all', 'text' => '所有题目'];
|
||||||
for ($i = 0; $i < count($problems); $i++) {
|
for ($i = 0; $i < count($problems); $i++) {
|
||||||
$letter = chr(ord('A') + $i);
|
$problem = UOJContestProblem::query($problems[$i]);
|
||||||
$options[] = ['value' => $letter, 'text' => "{$letter} 题"];
|
$options[] = [
|
||||||
|
'value' => $problem->getLetter(),
|
||||||
|
'text' => $problem->getTitle(['with' => 'letter', 'simplify' => true]),
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
$chosen = UOJRequest::get('p');
|
$chosen = UOJRequest::get('p');
|
||||||
@ -455,7 +458,7 @@ function echoMySubmissions() {
|
|||||||
'show_all_submissions_status' => Cookie::get('show_all_submissions') !== null,
|
'show_all_submissions_status' => Cookie::get('show_all_submissions') !== null,
|
||||||
'options' => $options,
|
'options' => $options,
|
||||||
'chosen' => $chosen,
|
'chosen' => $chosen,
|
||||||
'conds' => $conds
|
'conds' => $conds,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user