diff --git a/CI3/application/controllers/Evenement.php b/CI3/application/controllers/Evenement.php
deleted file mode 100644
index e69de29..0000000
diff --git a/CI3/application/controllers/Evenement_info.php b/CI3/application/controllers/Evenement_info.php
new file mode 100644
index 0000000..ccd4ab1
--- /dev/null
+++ b/CI3/application/controllers/Evenement_info.php
@@ -0,0 +1,15 @@
+load->model('Model_site');
+ $event=$this->Model_site->get_evenement($id);
+ $com=$this->Model_site->get_commentaire($id);
+ $data=array('event' => $event, 'com' => $com);
+ $this->load->view('header');
+ $this->load->view('evenement_info',$data);
+ $this->load->view('footer');
+ }
+
+}
\ No newline at end of file
diff --git a/CI3/application/models/Model_site.php b/CI3/application/models/Model_site.php
index 4c3c180..0a9fab5 100644
--- a/CI3/application/models/Model_site.php
+++ b/CI3/application/models/Model_site.php
@@ -7,28 +7,17 @@ class Model_site extends CI_MODEL {
$this->load->database();
}
- public function get_films()
- {
- $res=$this->db->query("SELECT Film.titre, Film.annee, Film.idFilm,
- Film.genre, Artiste.nom, Artiste.prenom
- from Film INNER JOIN Artiste
- where Film.idMes=Artiste.idArtiste
- ORDER by Film.titre
- ");
- return $res->result_array();
-}
+
- public function get_fiche($id)
+ public function get_evenement($id)
{
- $res=$this->db->query("SELECT * from Film INNER JOIN Artiste
- where Film.idMes=Artiste.idArtiste AND idFilm=$id");
+ $res=$this->db->query("SELECT * from evenement WHERE id=$id");
return $res->row();
}
- public function get_actors($id)
+ public function get_commentaire($id)
{
- $res=$this->db->query("SELECT prenom, nom, nomRole from Artiste INNER JOIN Role
- where Role.idActeur=Artiste.idArtiste AND Role.idFilm=$id");
+ $res=$this->db->query("SELECT * FROM commentaire WHERE id_event=$id");
return $res->result_array();
}
diff --git a/CI3/application/views/evenement.php b/CI3/application/views/evenement.php
deleted file mode 100644
index e69de29..0000000
diff --git a/CI3/application/views/evenement_info.php b/CI3/application/views/evenement_info.php
new file mode 100644
index 0000000..6faf20f
--- /dev/null
+++ b/CI3/application/views/evenement_info.php
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/css/style.css b/css/style.css
index bdc3423..133015f 100644
--- a/css/style.css
+++ b/css/style.css
@@ -1,9 +1,4 @@
/*Pour toutes les pages : */
-@font-face {
- font-family: "RobotoFlex";
- src: url(/assets/RobotoFlex.ttf);
- font-display: swap;
- }
html, body {
height: 100%;
@@ -20,7 +15,6 @@
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
- font-family: "RobotoFlex";
}
body::before{
@@ -31,7 +25,8 @@
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
- z-index: -1;}
+ z-index: -1;
+ }
#content.index {
flex: 1;
@@ -59,6 +54,7 @@
background-image: url(../img/ouiouibaguette.jpg);
padding: 10px 0;
text-align: center;
+
}
a.categorie{
@@ -183,6 +179,10 @@
border-radius: 50px;
text-align: center;
font-size: 140%;
- line-height: 160px;
+ line-height: 170%;
+ color: #000000;
}
+ .Event{
+ color: #ffffff;
+ }
\ No newline at end of file
diff --git a/php/evenement.php b/php/evenement.php
index 694967d..25b66cc 100644
--- a/php/evenement.php
+++ b/php/evenement.php
@@ -62,9 +62,18 @@ $event = mysqli_stmt_get_result($stmt);
Liste des Évènements
Sport | -Lieux de l'évènement | -Date | -Nombre de Participant | +Sport | +Lieux de l'évènement | +Date | +Nombre de Participant | ".$row['Sport']." | ".$row['Lieux']." | ".$row['Date']." | ".$row['NbInscrit']." | "; + echo "
---|---|---|---|---|---|---|---|
".$row['Sport']." | ".$row['Lieux']." | ".$row['Date']." | ".$row['NbInscrit']." |