mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 03:48: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[] = ['value' => 'all', 'text' => '所有题目'];
|
||||
for ($i = 0; $i < count($problems); $i++) {
|
||||
$letter = chr(ord('A') + $i);
|
||||
$options[] = ['value' => $letter, 'text' => "{$letter} 题"];
|
||||
$problem = UOJContestProblem::query($problems[$i]);
|
||||
$options[] = [
|
||||
'value' => $problem->getLetter(),
|
||||
'text' => $problem->getTitle(['with' => 'letter', 'simplify' => true]),
|
||||
];
|
||||
}
|
||||
|
||||
$chosen = UOJRequest::get('p');
|
||||
@ -455,7 +458,7 @@ function echoMySubmissions() {
|
||||
'show_all_submissions_status' => Cookie::get('show_all_submissions') !== null,
|
||||
'options' => $options,
|
||||
'chosen' => $chosen,
|
||||
'conds' => $conds
|
||||
'conds' => $conds,
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user