diff --git a/Vues/seeList.php b/Vues/seeList.php index 5b86636..71e3887 100644 --- a/Vues/seeList.php +++ b/Vues/seeList.php @@ -3,28 +3,59 @@ Ajouter une Liste - - +
- About - Services - Clients - Contact +
+ + +
+ + +
+ + +
+
+
-
- Se connecter -
+ +
+
+ + +
+
+ +
+
+ + +
+
+

List details

diff --git a/config/config.php b/config/config.php index af90257..6dabb93 100644 --- a/config/config.php +++ b/config/config.php @@ -2,9 +2,9 @@ $rep = __DIR__ . '/../'; -$login="root"; -$password="root"; -$dsn="mysql:host=localhost;port=8888;dbname=bddDeQualite"; // chemin vers bd (mysql:host=londres.uca.local;dbname=dblibreton => pour l'iut) +$login="thchazot1"; +$password="achanger"; +$dsn="mysql:host=localhost;dbname=dbthchazot1"; // chemin vers bd (mysql:host=londres.uca.local;dbname=dblibreton => pour l'iut) //$dsn="mysql:host=localhost;port=8888;dbname=bddDeQualite"; /* $login="thchazot1"; diff --git a/controllers/FrontController.php b/controllers/FrontController.php index 71d3fb5..103dfdc 100644 --- a/controllers/FrontController.php +++ b/controllers/FrontController.php @@ -5,7 +5,7 @@ class FrontController { public function __construct(){ $liste_actions_utilisateur = array('viewPrivateList','ajouterListePrivee', 'deconnection'); - $liste_actions_visiteur = array('goHome','accessSignUp','accessSignIn','signIn','signUp', 'supprimerListe', 'modifierListe', 'ajouterTache', 'supprimerTache', 'modifierTache'); + $liste_actions_visiteur = array('accessListInfos', 'goHome','accessSignUp','accessSignIn','signIn','signUp', 'supprimerListe', 'modifierListe', 'ajouterTache', 'supprimerTache', 'modifierTache'); global $rep,$vues,$bd,$dataView,$styles,$assets; session_start(); diff --git a/controllers/VisitorController.php b/controllers/VisitorController.php index 8a38164..44787ae 100644 --- a/controllers/VisitorController.php +++ b/controllers/VisitorController.php @@ -170,7 +170,7 @@ class VisitorController { function accessListInfos($dVueEreur){ global $rep,$vues,$dataView; - $idListe=$_POST['liste']; + $idListe=$_POST['list']; $model = new MdlListe(); $dataView = $model->findById($idListe); require($rep.$vues['seeList']); diff --git a/modeles/MdlListe.php b/modeles/MdlListe.php index 796fd22..d317e99 100644 --- a/modeles/MdlListe.php +++ b/modeles/MdlListe.php @@ -66,12 +66,7 @@ class MdlListe{ foreach($taches as $tata){ $tabTache[]=new Tache($tata['id'], $tata['name'], $tata['content'], $tata['completed']); } - if ($row['private']==false){ - $tabListe[]=new Liste($row['id'], $row['name'], $row['private'], null, $tabTache); - } - if ($row['idCreator']==$u->getId()){ - $tabListe[]=new Liste($row['id'], $row['name'], $row['private'], $u, $tabTache); - } + $tabListe[]=new Liste($row['id'], $row['name'], $row['private'], null, $tabTache); } return $tabListe; }