33 lines
1.1 KiB
PHP
33 lines
1.1 KiB
PHP
<?php
|
|
$stmt_fdbck = $db["data"]->prepare(
|
|
"SELECT round_number, score, comment FROM assignments WHERE completed IS NOT NULL AND submission_id = :submission_id"
|
|
);
|
|
$stmt_fdbck->execute([
|
|
"submission_id" => $submission->id,
|
|
]);
|
|
$feedback = $stmt_fdbck->fetchAll(PDO::FETCH_OBJ);
|
|
?>
|
|
<div role="region" aria-labelledby="details-caption" tabindex="0">
|
|
<table>
|
|
<caption id="details-caption">Submission details</caption>
|
|
<tbody>
|
|
<tr>
|
|
<th scope="row">Title</th>
|
|
<td><a href="/docs/<?= $submission->hash ?>"><?= $submission->title ?></a></td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row" rowspan="3">Ranking</th>
|
|
<th scope="row">Round One</th>
|
|
<td><?= $submission->rank_round_1 ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Round Two</th>
|
|
<td><?= $submission->rank_round_2 ?></td>
|
|
</tr>
|
|
<tr>
|
|
<th scope="row">Round Three</th>
|
|
<td><?= $submission->rank_round_3 ?></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|