mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 06:22:22 +00:00
Lien du tournoi cliquable
This commit is contained in:
parent
864d94c51d
commit
885723af5f
@ -10,6 +10,9 @@ if (isset($_POST["validate"])) {
|
|||||||
|
|
||||||
$team_data = $DB->query("SELECT * FROM `teams` WHERE `trigram` = '$trigram' AND `year` = $YEAR;")->fetch();
|
$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();
|
$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;");
|
$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>
|
<h2>Informations sur l'équipe</h2>
|
||||||
|
|
||||||
Nom de l'équipe : <?php echo $team_data["name"] ?><br />
|
Nom de l'équipe : <?= $team_data["name"] ?><br />
|
||||||
Trigramme : <?php echo $team_data["trigram"] ?><br />
|
Trigramme : <?= $team_data["trigram"] ?><br />
|
||||||
Tournoi : <?php echo $tournament_data["name"] ?><br />
|
Tournoi : <a href="<?= $URL_BASE . "/tournoi/" . $tournament_data["name"] ?>"><?= $tournament_data["name"] ?></a><br />
|
||||||
<?php
|
<?php
|
||||||
for ($i = 1; $i <= 2; ++$i) {
|
for ($i = 1; $i <= 2; ++$i) {
|
||||||
if ($team_data["encadrant_" . $i] == NULL)
|
if ($team_data["encadrant_" . $i] == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user