From 08c2df845a9d0f13a385df63cf47c30cf8dc7590 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 15 Dec 2025 09:44:41 +0000 Subject: [PATCH] 2 --- admin_restaurants.php | 199 ++++++++++++++++++++++++--------- api/menu.php | 133 ++++++++++++++++++++++ api/restaurants.php | 100 +++++++++++++++-- index.php | 213 +++++++++++++----------------------- menu.php | 109 ++++++++++++++++++ restaurant_menu.php | 249 ++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 809 insertions(+), 194 deletions(-) create mode 100644 api/menu.php create mode 100644 menu.php create mode 100644 restaurant_menu.php diff --git a/admin_restaurants.php b/admin_restaurants.php index 2509949..a570583 100644 --- a/admin_restaurants.php +++ b/admin_restaurants.php @@ -34,6 +34,9 @@ .modal-content { border-radius: 0.5rem; } + .table th, .table td { + vertical-align: middle; + } @@ -41,7 +44,7 @@

Manage Restaurants

-
@@ -59,46 +62,25 @@ Actions - - query("SELECT * FROM restaurants ORDER BY id DESC"); - $restaurants = $stmt->fetchAll(); - foreach ($restaurants as $restaurant) { - echo ""; - echo "" . htmlspecialchars($restaurant['id']) . ""; - echo "" . htmlspecialchars($restaurant['name']) . ""; - echo "" . htmlspecialchars($restaurant['address']) . ""; - echo "" . htmlspecialchars($restaurant['phone']) . ""; - echo "" . htmlspecialchars($restaurant['email']) . ""; - echo ' - - - '; - echo ""; - } - } catch (PDOException $e) { - echo "Error: " . $e->getMessage() . ""; - } - ?> + +
- -