From 4d19f270eec2c2fbc7aae26b59a18d3deba35f54 Mon Sep 17 00:00:00 2001 From: Thomas Chazot Date: Fri, 23 Dec 2022 17:56:24 +0100 Subject: [PATCH] zad --- Vues/modifyTask.php | 23 +++++++++++++++++++---- gateway/TacheGateway.php | 4 ++-- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/Vues/modifyTask.php b/Vues/modifyTask.php index a78d16e..8741df9 100644 --- a/Vues/modifyTask.php +++ b/Vues/modifyTask.php @@ -17,25 +17,40 @@
- +
- +
+ getCompleted()){ + ?> +
+ Complete + +
+
Complete
+ + - - + +
diff --git a/gateway/TacheGateway.php b/gateway/TacheGateway.php index db98c00..a25578d 100644 --- a/gateway/TacheGateway.php +++ b/gateway/TacheGateway.php @@ -49,9 +49,9 @@ class TacheGateway $query = "SELECT * FROM Tache WHERE id=:id"; $this->con->executeQuery($query, array(':id' => array($id, PDO::PARAM_STR))); - $results=$con->getResults(); + $results=$this->con->getResults(); foreach ($results as $row ) { - $tache=new Tache($row['id'], $row['name'], $row['content']); + $tache=new Tache($row['id'], $row['name'], $row['content'], $row['completed']); } return $tache;