From abe7bcde0b48ee8f0a12ac9ef92e53c02fd7beb1 Mon Sep 17 00:00:00 2001 From: Ghouar-Toussaint Rafael Date: Sun, 16 Jun 2024 10:48:38 +0200 Subject: [PATCH] =?UTF-8?q?mise=20=C3=A0=20jour=20git?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CI3/application/views/evenement_info.php | 58 +++++++++++++++++++++++- CI3/application/views/footer.php | 3 -- css/style.css | 6 ++- php/evenement.php | 19 ++++---- 4 files changed, 71 insertions(+), 15 deletions(-) delete mode 100644 CI3/application/views/footer.php diff --git a/CI3/application/views/evenement_info.php b/CI3/application/views/evenement_info.php index 6faf20f..3ec9cd8 100644 --- a/CI3/application/views/evenement_info.php +++ b/CI3/application/views/evenement_info.php @@ -1 +1,57 @@ - \ No newline at end of file + + + + + + + Évènements - Jeux Olympiques + + +
+

Nom; ?>

+ +
+ + Nom; ?> + + + +"; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; +?> + + + + + + + + \ No newline at end of file diff --git a/CI3/application/views/footer.php b/CI3/application/views/footer.php deleted file mode 100644 index 6b4e3b7..0000000 --- a/CI3/application/views/footer.php +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/css/style.css b/css/style.css index 133015f..dc0cd82 100644 --- a/css/style.css +++ b/css/style.css @@ -183,6 +183,8 @@ color: #000000; } - .Event{ - color: #ffffff; + table.Event{ + color: #000000; + text-decoration: none; + column-width: 60rem; } \ No newline at end of file diff --git a/php/evenement.php b/php/evenement.php index 25b66cc..c92e370 100644 --- a/php/evenement.php +++ b/php/evenement.php @@ -7,9 +7,9 @@ $db = initDatabase(); // Initialisation des événements si la table est vide $event = "SELECT * FROM evenement"; if (mysqli_num_rows(mysqli_query($db, $event)) == 0) { - mysqli_query($db, "INSERT INTO evenement VALUES(1, 'Ceremonie d ouverture des JO', 'Tour Eiffel', '2024-07-26', 'debut des JO', 0)"); - mysqli_query($db, "INSERT INTO evenement VALUES(2, 'Football', 'Stade des Princes', '2024-07-27', 'premier match de foot', 0)"); - mysqli_query($db, "INSERT INTO evenement VALUES(3, 'Natation', 'Piscine Olympique', '2024-07-27', 'premiere course', 0)"); + mysqli_query($db, "INSERT INTO evenement VALUES(1, 'Ceremonie d ouverture des JO','Cérémonie', 'Tour Eiffel', '2024-07-26', 'debut des JO', 0)"); + mysqli_query($db, "INSERT INTO evenement VALUES(2, 'match d ouverture Football','Football', 'Stade des Princes', '2024-07-27', 'premier match de foot', 0)"); + mysqli_query($db, "INSERT INTO evenement VALUES(3, 'course d ouverture','Natation', 'Piscine Olympique', '2024-07-27', 'premiere course', 0)"); $event = mysqli_query($db, "SELECT * FROM evenement"); } @@ -88,19 +88,20 @@ $event = mysqli_stmt_get_result($stmt); -
Sport : {$event ->Sport}
Lieux : {$event ->Lieux}
Genre : {$event ->Date}
Résumé : {$event ->Description}
Pays : {$event ->NbInscrit}
Casting :
"; + + + //foreach($actors as $act){ + // echo "{$act['prenom']} {$act['nom']} as {$act['nomRole']},
"; + //} + //echo " Retour"; + + //echo "
+
-
- - - +
+ + + + "; + echo ""; } ?>
SportLieux de l'évènementDateNombre de ParticipantNomSportLieux de l'évènementDateNombre de Participant

".$row['Sport']."

".$row['Lieux']."

".$row['Date']."

".$row['NbInscrit']."

".$row['Nom']."

".$row['Sport']."

".$row['Lieux']."

".$row['Date']."

".$row['NbInscrit']."