fix(contest/manage): problem judge type display
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-01-27 15:47:57 +08:00
parent 26a63fac8f
commit e5b6aff008
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -596,11 +596,11 @@ EOD);
</tr> </tr>
EOD, EOD,
function ($row) { function ($row) {
$problem = UOJProblem::query($row['problem_id']); $problem = UOJContestProblem::query($row['problem_id'], UOJContest::cur());
echo '<tr>'; echo '<tr>';
echo '<td>', $row['problem_id'], '</td>'; echo '<td>', $row['problem_id'], '</td>';
echo '<td>', $problem->getLink(['with' => 'none']), '</td>'; echo '<td>', $problem->getLink(['with' => 'none']), '</td>';
echo '<td>', isset($contest['extra_config']["problem_{$problem->info['id']}"]) ? $contest['extra_config']["problem_{$problem->info['id']}"] : 'default', '</td>'; echo '<td>', $problem->getJudgeTypeInContest(), '</td>';
echo '<td>'; echo '<td>';
echo '<form class="d-inline-block" method="POST" target="_self" onsubmit=\'return confirm("你确定要将题目 #', $problem->info['id'], ' 从比赛中移除吗?")\'>'; echo '<form class="d-inline-block" method="POST" target="_self" onsubmit=\'return confirm("你确定要将题目 #', $problem->info['id'], ' 从比赛中移除吗?")\'>';
echo '<input type="hidden" name="_token" value="', crsf_token(), '">'; echo '<input type="hidden" name="_token" value="', crsf_token(), '">';