diff --git a/CSS/style_columns.css b/CSS/style_columns.css index 4541368..21a3dd6 100644 --- a/CSS/style_columns.css +++ b/CSS/style_columns.css @@ -11,6 +11,7 @@ max-width: 90%; padding: 24px 42px 24px 42px; margin: 0 auto; + color: var(--brand-white); } .row { diff --git a/Controller/UserController.php b/Controller/UserController.php index 368b018..f9fc00e 100644 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -167,4 +167,9 @@ class UserController{ public function showUserAccountPage (){ } + + public function deleteUser(){ + $userId = $_SESSION["user_id"]; + $this->db->deleteUser($userId); + } } \ No newline at end of file diff --git a/Model/UserModel.php b/Model/UserModel.php index 83973fd..6a84094 100644 --- a/Model/UserModel.php +++ b/Model/UserModel.php @@ -59,4 +59,12 @@ class UserModel extends Database return $sth->fetch(); } + public function deleteUser($id){ + $pdo = $this->linkDB(); + $sql = "DELECT * FROM user WHERE id = :id"; + $sth = $pdo->prepare($sql); + $sth->execute([":id" => $id]); + return $sth->fetch(); + } + } \ No newline at end of file diff --git a/Views/User/showUserAccountPage.phtml b/Views/User/showUserAccountPage.phtml index 80b531e..0aa43a0 100644 --- a/Views/User/showUserAccountPage.phtml +++ b/Views/User/showUserAccountPage.phtml @@ -6,11 +6,23 @@
-
- - - -
+

Hallo, + +
+ Hier können Sie ihren Account verwalten. +

+
+
+ + + +
+
+ + + +
+
diff --git a/Views/header.phtml b/Views/header.phtml index 1854b4a..1ae24a7 100644 --- a/Views/header.phtml +++ b/Views/header.phtml @@ -43,4 +43,5 @@ -
\ No newline at end of file + +
\ No newline at end of file