From 719916c2cb3c5e0f46af3e41910bb98366097710 Mon Sep 17 00:00:00 2001 From: Anna BOUDOUL Date: Fri, 23 Dec 2022 13:32:22 +0100 Subject: [PATCH] erase list action --- controller/VisitorCtrl.php | 3 ++- view/home.php | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/controller/VisitorCtrl.php b/controller/VisitorCtrl.php index 35fcbcc..29b1e50 100644 --- a/controller/VisitorCtrl.php +++ b/controller/VisitorCtrl.php @@ -132,7 +132,8 @@ class VisitorCtrl } function eraseList(){ - $this->taskModel->supList($id); + $this->taskModel->supList($_POST['listId']); + $this->loadHome(); } function go_task(){ diff --git a/view/home.php b/view/home.php index d9ff41f..d14d7f3 100644 --- a/view/home.php +++ b/view/home.php @@ -59,7 +59,13 @@
- +
+
+ + + +
+

'.$l->get_nom().'