diff --git a/controller/VisitorCtrl.php b/controller/VisitorCtrl.php index 98b4645..3061db2 100644 --- a/controller/VisitorCtrl.php +++ b/controller/VisitorCtrl.php @@ -22,6 +22,15 @@ class VisitorCtrl $this->connection(); # charge la vue de connexion break; + + case 'pageRegister': + $this->go_connection(); + break; + + case 'register': + $this->connection(); + # charge la vue de connexion + break; case 'pageListe': $this->go_list(); @@ -63,16 +72,12 @@ class VisitorCtrl } function loadHome(){ - # instancie tableau / donnees - # requere vue - # dans vue check if isset - # display content $public_lists = $this->taskModel.loadPublicList(); require("../view/home.php"); } function go_connection(){ - + } function connection(){ diff --git a/tests/test.php b/tests/test.php index 1f1f733..4cfcabb 100644 --- a/tests/test.php +++ b/tests/test.php @@ -43,10 +43,11 @@ $mt= new TaskModel($con); // $mt->addList('002','todo2','nifranco'); // $mt->modifList('2','nom','22do'); //mt->supList('2'); -$public_lists = $mt->loadPublicLists(); -$user = true; +$public_lists = $mt->loadPrivateLists('nifranco'); +$user = false; require("../view/home.php"); - +//require("../view/register.php"); +//require("../view/connection.php"); /* ------------- TEST ANNA ----------------*/ diff --git a/view/ajouter b/view/ajouter deleted file mode 100644 index e69de29..0000000 diff --git a/view/authentification.css b/view/authentification.css deleted file mode 100644 index f132e62..0000000 --- a/view/authentification.css +++ /dev/null @@ -1,28 +0,0 @@ -body{ - text-align : center; -} - -form{ - display : flex; - flex-flow : column nowrap; - align-items : center; -} - -input{ - width : 90%; - border-radius : 5px; - color : #595959; -} - -label{ - margin-top : 20px; -} - -#envoyer{ - width : 150px; - height : 30px; -} - -#btnEnvoi{ - margin: 20px; -} \ No newline at end of file diff --git a/view/connection.php b/view/connection.php new file mode 100644 index 0000000..57586de --- /dev/null +++ b/view/connection.php @@ -0,0 +1,75 @@ + + +
+ + + + + + + + +