1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 18:17:28 +02:00

Organisateurs multiples, modification des tournois

This commit is contained in:
galaxyoyo
2019-08-26 20:14:29 +02:00
parent 7a81d09b88
commit 8b90877088
5 changed files with 310 additions and 70 deletions

View File

@ -44,9 +44,9 @@ if (isset($_POST["download_zip"])) {
<?php
$req = $DB->query("SELECT `id`, `name` FROM `tournaments` WHERE "
$req = $DB->query("SELECT `tournaments`.`id`, `name` FROM `tournaments` JOIN `organizers` ON `tournament` = `tournaments`.`id` WHERE "
. ($_SESSION["role"] == "ADMIN" ? "" : "`organizer` = '" . $_SESSION["user_id"] . "' AND ")
. "`year` = $YEAR ORDER BY `name`;");
. "`year` = $YEAR GROUP BY `tournament` ORDER BY `name`;");
while (($data_tournament = $req->fetch()) !== false) {
echo "<h1>Tournoi de " . $data_tournament["name"] . "</h1>\n";