mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-25 01:00:32 +02:00
Séparation vue et contrôleur
This commit is contained in:
11
server_files/controllers/tournois.php
Normal file
11
server_files/controllers/tournois.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?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";
|
Reference in New Issue
Block a user