1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-11-27 09:33:02 +00:00
plateforme-tfjm2/server_files/views/syntheses_orga.php

34 lines
1.3 KiB
PHP
Raw Normal View History

2019-09-07 23:35:05 +00:00
<?php
require_once "server_files/views/header.php";
2019-12-19 12:02:01 +00:00
?>
<div class="mt-4 mb-4">
<h1 class="display-4">Notes de synthèse</h1>
</div>
2019-09-07 23:35:05 +00:00
2019-12-19 12:02:01 +00:00
<?php
2019-09-07 23:35:05 +00:00
/** @var Tournament $tournament */
foreach ($tournaments as $tournament) {
echo "<h1>Tournoi de " . $tournament->getName() . "</h1>\n";
$syntheses = $tournament->getAllSyntheses();
/** @var Synthesis $synthesis */
foreach ($syntheses as $synthesis) {
$file_id = $synthesis->getFileId();
$dest = $synthesis->getDest();
2020-05-04 23:06:57 +00:00
$round = $synthesis->getRound();
2019-09-07 23:35:05 +00:00
$version = $synthesis->getVersion();
$team = Team::fromId($synthesis->getTeamId());
$team_name = $team->getName();
$team_trigram = $team->getTrigram();
2019-12-19 12:02:01 +00:00
echo "<div class=\"alert alert-info\"><strong>Note de synthèse de l'équipe $team_name ($team_trigram) pour " . ($dest == DestType::OPPOSANT ? "l'opposant" : "le rapporteur")
2020-05-04 23:06:57 +00:00
. ", tour $round</strong>, version $version : <a data-turbolinks=\"false\" href=\"/file/$file_id\">Télécharger</a></div>";
2019-09-07 23:35:05 +00:00
}
echo "<form method=\"POST\">\n";
echo "<input type=\"hidden\" name=\"tournament\" value=\"" . $tournament->getId() . "\" />\n";
2019-12-19 12:02:01 +00:00
echo "<input class=\"btn btn-lg btn-primary btn-block\" type=\"submit\" name=\"download_zip\" value=\"Télécharger l'archive\" />\n";
echo "</form>\n";
2019-09-07 23:35:05 +00:00
}
require_once "server_files/views/footer.php";