Loading 00_requetes.sql→SQL/00_requetes.sql +0 −0 File moved. View file SQL/01_schemas.sql +3 −1 Original line number Diff line number Diff line Loading @@ -370,3 +370,5 @@ select * from etudiant_etudiant -- id = 'ESAM_minapinpin479@gmail.com' ; select * from unicaen_utilisateur_user where email = 'minapinpin479@gmail.com' ; alter table public.unicaen_mail_mail add attachment_paths text ; No newline at end of file module/Atelier/src/Entity/Db/Atelier.php +25 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,31 @@ class Atelier implements HistoriqueAwareInterface return $villes->toArray(); } public function getNomVilles(): string { $villes = $this->getVilles(); $nomVilles = []; foreach ($villes as $ville) { $nomVilles[] = $ville->getNom(); } $nomVilles = array_unique($nomVilles); //supprimer les valeurs null $nomVilles = array_filter($nomVilles); return implode(', ', $nomVilles); } public function getSites(): string { $sites = []; foreach ($this->getSessions() as $session) { $sites[] = $session->getSite()?->getLibelle(); } $sites = array_unique($sites); //supprimer les valeurs null $sites = array_filter($sites); return implode(', ', $sites); } public function getLibelleEtVilles(): string { $libelle = $this->getLibelle(); Loading module/Atelier/view/atelier/atelier/index.phtml +2 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ $this->headTitle("Ateliers"); <thead> <tr> <th> Libellé</th> <th> Site(s) </th> <th> Groupe</th> <th class="action"> Action</th> </tr> Loading @@ -67,6 +68,7 @@ $this->headTitle("Ateliers"); <?php foreach ($ateliers as $atelier) : ?> <tr id="<?php echo $atelier->getId(); ?>" class="<?php if ($atelier->estHistorise()) echo "historise"; ?>"> <td> <?php echo $atelier->getLibelle(); ?> </td> <td> <?php echo $atelier->getSites() ?></td> <td> <?php if ($atelier->getGroupe() !== null) : ?> <?php echo $atelier->getGroupe()->getLibelle(); ?> Loading Loading
SQL/01_schemas.sql +3 −1 Original line number Diff line number Diff line Loading @@ -370,3 +370,5 @@ select * from etudiant_etudiant -- id = 'ESAM_minapinpin479@gmail.com' ; select * from unicaen_utilisateur_user where email = 'minapinpin479@gmail.com' ; alter table public.unicaen_mail_mail add attachment_paths text ; No newline at end of file
module/Atelier/src/Entity/Db/Atelier.php +25 −0 Original line number Diff line number Diff line Loading @@ -87,6 +87,31 @@ class Atelier implements HistoriqueAwareInterface return $villes->toArray(); } public function getNomVilles(): string { $villes = $this->getVilles(); $nomVilles = []; foreach ($villes as $ville) { $nomVilles[] = $ville->getNom(); } $nomVilles = array_unique($nomVilles); //supprimer les valeurs null $nomVilles = array_filter($nomVilles); return implode(', ', $nomVilles); } public function getSites(): string { $sites = []; foreach ($this->getSessions() as $session) { $sites[] = $session->getSite()?->getLibelle(); } $sites = array_unique($sites); //supprimer les valeurs null $sites = array_filter($sites); return implode(', ', $sites); } public function getLibelleEtVilles(): string { $libelle = $this->getLibelle(); Loading
module/Atelier/view/atelier/atelier/index.phtml +2 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ $this->headTitle("Ateliers"); <thead> <tr> <th> Libellé</th> <th> Site(s) </th> <th> Groupe</th> <th class="action"> Action</th> </tr> Loading @@ -67,6 +68,7 @@ $this->headTitle("Ateliers"); <?php foreach ($ateliers as $atelier) : ?> <tr id="<?php echo $atelier->getId(); ?>" class="<?php if ($atelier->estHistorise()) echo "historise"; ?>"> <td> <?php echo $atelier->getLibelle(); ?> </td> <td> <?php echo $atelier->getSites() ?></td> <td> <?php if ($atelier->getGroupe() !== null) : ?> <?php echo $atelier->getGroupe()->getLibelle(); ?> Loading