$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 `type` ORDER BY `user`, `type` ASC, `uploaded_at` DESC;");
$documents_req->execute([$team_data["id"]]);
?>
<?phpinclude"header.php"?>
<h2>Informationssurl'équipe</h2>
Nomdel'équipe:<?phpecho$team_data["name"]?><br />
Trigramme:<?phpecho$team_data["trigram"]?><br />
Tournoi:<?phpecho$tournament_data["name"]?><br />
<?php
for($i=1;$i<=2;++$i){
if($team_data["encadrant_".$i]==NULL)
continue;
$user_data=$DB->query("SELECT `surname`, `first_name` FROM `users` WHERE `id` = ".$team_data["encadrant_".$i]." AND `year` = '$YEAR';")->fetch();