From 3f50e10ba78e3a8b36f0980434c27a5645b144ad Mon Sep 17 00:00:00 2001 From: Juthatip McDevitt Date: Mon, 24 Jun 2024 17:09:09 -0500 Subject: [PATCH] added login to reserve a room functionality --- hotel_booking/booking.php | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/hotel_booking/booking.php b/hotel_booking/booking.php index 3dbdd20..d2899f6 100644 --- a/hotel_booking/booking.php +++ b/hotel_booking/booking.php @@ -22,6 +22,12 @@ color: #B0A695; text-shadow: 1px 1px 2px #EAD8C0; } + .custom-alert-t{ + position:fixed; + top: 100px; + right: 25px; + z-index: 10000; + } @media (max-width:765px){ .booking-hero{ height: 100px; @@ -126,9 +132,14 @@ $cover_res = mysqli_fetch_assoc($cover_q); $room_cover = ROOM_IMG_PATH.$cover_res['image']; } + //booking & shutdown booking process $booking = ""; if(!$settings_r['shutdown']){ - $booking = "Book"; + $login = 0; + if(isset($_SESSION['login']) && $_SESSION['login'] == true){ + $login=1; + } + $booking = ""; } //display room (---**accommodation section did not use from database**---) echo <<< data @@ -169,22 +180,19 @@ - - - - - - - - - - - - - - + + + \ No newline at end of file