1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-26 21:02:23 +00:00
plateforme-tfjm2/server_files/controllers/tournois.php
2019-09-06 13:48:50 +02:00

12 lines
541 B
PHP

<?php
require_once "../config.php";
$response = $DB->query("SELECT `name`, `date_start`, `date_end`, `date_inscription`, `date_solutions`, `size` FROM `tournaments`
WHERE `year` = '$YEAR' AND `final` = false ORDER BY `date_start`, `name`;");
$final_data = $DB->query("SELECT `name`, `date_start`, `date_end`, `date_solutions`, `size` FROM `tournaments` WHERE `final` AND `year` = $YEAR;")->fetch();
require_once "../views/header.php";
require_once "../views/tournois.php";
require_once "../views/footer.php";