From 2534d9bf3059b8d90cc6a694b0dba72e649b4618 Mon Sep 17 00:00:00 2001 From: Anna BOUDOUL Date: Fri, 23 Dec 2022 12:22:05 +0100 Subject: [PATCH] about action --- controller/VisitorCtrl.php | 9 +++++++++ view/about.php | 18 +++++++++--------- view/connection.php | 2 +- view/home.php | 2 +- view/html/navbar_menu.html | 14 +++++++------- view/newList.php | 4 ++-- view/newTask.php | 4 ++-- view/register.php | 2 +- 8 files changed, 32 insertions(+), 23 deletions(-) diff --git a/controller/VisitorCtrl.php b/controller/VisitorCtrl.php index cd5e6b7..9341ca8 100644 --- a/controller/VisitorCtrl.php +++ b/controller/VisitorCtrl.php @@ -31,6 +31,10 @@ class VisitorCtrl $this->go_connection(); break; + case 'pageAbout': + $this->go_about(); + break; + case 'connecter': $this->connection(); # charge la vue de connexion @@ -95,6 +99,11 @@ class VisitorCtrl require($this->TabVues["connection"]); } + function go_about(){ + $user = $this->isUser; + require($this->TabVues["about"]); + } + function connection(){ $this->userModel->connexion($user,$mdp); $this->loadHome(); diff --git a/view/about.php b/view/about.php index cfafb0d..f46d69a 100644 --- a/view/about.php +++ b/view/about.php @@ -1,12 +1,12 @@ - + - +
@@ -14,14 +14,14 @@ @@ -35,10 +35,10 @@ diff --git a/view/connection.php b/view/connection.php index 5033d37..1af11f7 100644 --- a/view/connection.php +++ b/view/connection.php @@ -21,7 +21,7 @@ echo 'My Lists 🔒'; } ?> - About + About
diff --git a/view/home.php b/view/home.php index 467fb94..4d48ded 100644 --- a/view/home.php +++ b/view/home.php @@ -21,7 +21,7 @@ echo 'My Lists 🔒'; } ?> - About + About diff --git a/view/html/navbar_menu.html b/view/html/navbar_menu.html index b8ba2d0..8d1d76e 100644 --- a/view/html/navbar_menu.html +++ b/view/html/navbar_menu.html @@ -14,14 +14,14 @@ @@ -35,10 +35,10 @@ diff --git a/view/newList.php b/view/newList.php index 4984108..b4fcc6d 100644 --- a/view/newList.php +++ b/view/newList.php @@ -15,13 +15,13 @@
Home - New List + + New List + My Lists 🔒'; } ?> - About + About
diff --git a/view/newTask.php b/view/newTask.php index fa2dbf0..f8caa8f 100644 --- a/view/newTask.php +++ b/view/newTask.php @@ -18,10 +18,10 @@ New List + My Lists 🔒'; + echo 'My Lists 🔒'; } ?> - About + About diff --git a/view/register.php b/view/register.php index 91f2d71..bf0e6b0 100644 --- a/view/register.php +++ b/view/register.php @@ -21,7 +21,7 @@ echo 'My Lists 🔒'; } ?> - About + About