From 4dd21739476e249923718c6c644287efadadb265 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Tue, 5 Mar 2019 11:18:43 -0600 Subject: [PATCH] render guest list --- index.php | 4 +++- views/guestlist.php | 32 +++++++++++++++++++------------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/index.php b/index.php index dcd91dd..daf1c9f 100644 --- a/index.php +++ b/index.php @@ -125,7 +125,9 @@ $router->post('/checkout', function () { $router->get('/manage/{uuid}', function ($uuid) { $order = R::findOne('orders', ' uuid = ?', [$uuid]); $guests = R::findAll('guests', ' order_id = ?', [$order->id]); - var_dump($order,$guests); + include 'views/common/head.php'; + include 'views/guestlist.php'; + include 'views/common/footer.php'; }); // Run it! diff --git a/views/guestlist.php b/views/guestlist.php index ccc9d7c..805050c 100644 --- a/views/guestlist.php +++ b/views/guestlist.php @@ -2,45 +2,51 @@

Your ticket information

-
Guest #1 (Table #1, Paddle #102)
-
+ + +
Guest # table)) ? '' : 'Table #' . $guest->table; ?>paddle)) ? '' : ', Paddle #' . $guest->paddle; ?>
+
- +
- +
- +
- +