1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 17:42:23 +00:00

Lien du tournoi cliquable

This commit is contained in:
Yohann 2019-09-02 19:56:41 +02:00
parent 864d94c51d
commit 885723af5f

View File

@ -10,6 +10,9 @@ if (isset($_POST["validate"])) {
$team_data = $DB->query("SELECT * FROM `teams` WHERE `trigram` = '$trigram' AND `year` = $YEAR;")->fetch();
if ($team_data === false)
include "../404.php";
$tournament_data = $DB->query("SELECT `name`, `date_start` FROM `tournaments` WHERE `id` = '" . $team_data["tournament"] . "' AND `year` = '$YEAR';")->fetch();
$documents_req = $DB->prepare("SELECT `file_id`, `user`, `type`, COUNT(`type`) AS `version` FROM `documents` WHERE `team` = ? GROUP BY `user`, `type` ORDER BY `user`, `type` ASC, MAX(`uploaded_at`) DESC;");
@ -21,9 +24,9 @@ $documents_req->execute([$team_data["id"]]);
<h2>Informations sur l'équipe</h2>
Nom de l'équipe : <?php echo $team_data["name"] ?><br />
Trigramme : <?php echo $team_data["trigram"] ?><br />
Tournoi : <?php echo $tournament_data["name"] ?><br />
Nom de l'équipe : <?= $team_data["name"] ?><br />
Trigramme : <?= $team_data["trigram"] ?><br />
Tournoi : <a href="<?= $URL_BASE . "/tournoi/" . $tournament_data["name"] ?>"><?= $tournament_data["name"] ?></a><br />
<?php
for ($i = 1; $i <= 2; ++$i) {
if ($team_data["encadrant_" . $i] == NULL)