From c526f65782f3a5d9436ef3df22478df1f2ec6f54 Mon Sep 17 00:00:00 2001 From: hadjem-b Date: Sun, 16 Jun 2024 15:02:27 +0200 Subject: [PATCH] Upload files to "php" --- php/creer_event.php | 100 ++++++++++++++++++++++++++++++++++++++ php/créer_commentaire.php | 7 ++- php/evenement.php | 10 +++- php/event.php | 93 +++++++++++++++++++++++++++++++++++ 4 files changed, 205 insertions(+), 5 deletions(-) create mode 100644 php/creer_event.php create mode 100644 php/event.php diff --git a/php/creer_event.php b/php/creer_event.php new file mode 100644 index 0000000..a8f3e19 --- /dev/null +++ b/php/creer_event.php @@ -0,0 +1,100 @@ + + + + + + + Création évènement - Jeux Olympiques + + + + + +
+

Page de création d'évènement

+ +
+ +
+

Inscription


+
+
+

+
+

+
+

+
+

+
+

+ +
+
+ + + + + diff --git a/php/créer_commentaire.php b/php/créer_commentaire.php index 63f63cb..dd29631 100644 --- a/php/créer_commentaire.php +++ b/php/créer_commentaire.php @@ -1,14 +1,14 @@ \n"; } ?> -
diff --git a/php/evenement.php b/php/evenement.php index c92e370..6b74e70 100644 --- a/php/evenement.php +++ b/php/evenement.php @@ -76,6 +76,14 @@ $event = mysqli_stmt_get_result($stmt); ?> +Connexion"; + } +} +?> +

Liste des Évenements :

@@ -101,7 +109,7 @@ $event = mysqli_stmt_get_result($stmt);
".$row['Nom']."
".$row['Sport']."
".$row['Lieux']."
".$row['Date']."
".$row['NbInscrit'].""; + echo "

".$row['Nom']."
".$row['Sport']."
".$row['Lieux']."
".$row['Date']."
".$row['NbInscrit'].""; } ?> diff --git a/php/event.php b/php/event.php new file mode 100644 index 0000000..acb4466 --- /dev/null +++ b/php/event.php @@ -0,0 +1,93 @@ + + + + + + + Évènements - Jeux Olympiques + + +
+

Évènement

+
+
+ + + + + +' + . '

'. $event['title'] .'

' + . '
' . $event['description'] . '
'; + +echo '
Commentaires
'; +if (empty($commentaire)) { + echo '

Aucun

'; +} else { + foreach ($commentaire as $com) { + echo '
'; + echo "".$com['title']."" + . (isset($_SESSION['user']['id']) && $com['id_user'] == $_SESSION['user']['id'] ? + ' Modifier ce commentaire' : + '') + . '

' . $comment['content'] ."

" + . "

".$comment['login']."

"; + echo "
"; + } +} +echo "
"; + +if (empty($_SESSION['user'])) { + echo '

Il faut être identifié pour poster un commentaire.

'; +} else { + if ($article['closed']) { + echo "

Article fermé, non modifiable.

"; + } else { + echo '

Ajouter un commentaire avec votre compte : ' . $_SESSION['user']['name'] + .'

'; + } +} +?> + +

Retour à la liste des articles

+ + + + +