mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-07-03 02:42:53 +02:00
Support de la finale
This commit is contained in:
@ -54,7 +54,7 @@ $req = $DB->query("SELECT `tournaments`.`id`, `name` FROM `tournaments` JOIN `or
|
||||
while (($data_tournament = $req->fetch()) !== false) {
|
||||
echo "<h1>Tournoi de " . $data_tournament["name"] . "</h1>\n";
|
||||
$id = $data_tournament["id"];
|
||||
$files_req = $DB->query("SELECT *, COUNT(`problem`) AS `version` FROM `solutions` WHERE `tournament` = '$id' GROUP BY `team`, `problem` ORDER BY `team`, `problem`, `uploaded_at` DESC;");
|
||||
$files_req = $DB->query("SELECT *, COUNT(`problem`) AS `version` FROM `solutions` WHERE `tournament` = '$id' GROUP BY `team` ORDER BY `team`, `problem`, `uploaded_at` DESC;");
|
||||
while (($data_file = $files_req->fetch()) !== false) {
|
||||
$file_id = $data_file["file_id"];
|
||||
$problem = $data_file["problem"];
|
||||
@ -70,8 +70,9 @@ while (($data_tournament = $req->fetch()) !== false) {
|
||||
<form method="POST">
|
||||
<input type="hidden" name="tournament" value="<?= $id ?>" />
|
||||
<input type="hidden" name="tournament_name" value="<?= $data_tournament["name"] ?>" />
|
||||
<input type="submit" name="download_zip" value="Télécharger l'archive" />
|
||||
<input style="width: 100%" type="submit" name="download_zip" value="Télécharger l'archive" />
|
||||
</form>
|
||||
<hr />
|
||||
<?php
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user