From 819731ca7b595892a071a90275d5a4798755885c Mon Sep 17 00:00:00 2001 From: antux18 Date: Fri, 1 Sep 2023 20:36:37 -0400 Subject: [PATCH] =?UTF-8?q?Remplacement=20de=20la=20liste=20des=20=C3=A9qu?= =?UTF-8?q?ipes=20par=20un=20input.=20V=C3=A9rification=20du=20num=C3=A9ro?= =?UTF-8?q?=20d'=C3=A9quipe=20avant=20d'envoyer=20=C3=A0=20la=20page=20tea?= =?UTF-8?q?m=5Fconfirm.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.php | 26 ++++++++++++++++++-------- require/database.php | 7 +++++++ require/locales/en.php | 5 +++-- require/locales/fr.php | 5 +++-- style.css | 2 +- team_confirm.php | 16 ++++++---------- todo.md | 4 ++-- 7 files changed, 40 insertions(+), 25 deletions(-) diff --git a/index.php b/index.php index 5e45407..33c18fe 100644 --- a/index.php +++ b/index.php @@ -1,15 +1,26 @@ checkTeamExists($team_id)) { + header("Location: puzzles.php?team=" . $team_id); + die(); + } + + else { + $stmt = $database->pdo_teams->prepare("SELECT * FROM teams"); + $stmt->execute(); + $teams = $stmt->fetchAll(); + } } // Sinon, on affiche la liste des équipes : else { - $database = new Database(); $stmt = $database->pdo_teams->prepare("SELECT * FROM teams"); $stmt->execute(); $teams = $stmt->fetchAll(); @@ -37,11 +48,10 @@

- +
+ + +