diff --git a/hotel_booking/ajax/cancel_booking.php b/hotel_booking/ajax/cancel_booking.php new file mode 100644 index 0000000..0082110 --- /dev/null +++ b/hotel_booking/ajax/cancel_booking.php @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/hotel_booking/generate_invoice.php b/hotel_booking/generate_invoice.php new file mode 100644 index 0000000..ec50fae --- /dev/null +++ b/hotel_booking/generate_invoice.php @@ -0,0 +1,120 @@ + +
+
+
+
+ +
+
+

Midtown Hotel

+

36381 Trantow Hill,

+

New Port, FL 57941

+

(123) 456-7891

+

accombooking@midtownhotel.com

+
+
+
+
+

Bill to:

+

Name: $data[user_name] $data[user_lastname]

+

Adress: $data[address]

+

Phone: $data[phone]

+
+
+

Order ID: $data[order_id]

+

Invoice date: $checkin

+
+
+
+
+ + + + + + + + + + + + + + + + + +
DetailsCheck inCheck outPrice
$data[room_name]$checkin$checkout$$data[price]/night
+
+

Total: $$total_pay

+

Sale Tax(5%): $$tax

+

Total Amount: $$total_amount

+
+
+ +
+ + "; + echo $table_data; + + } else{ + header('location: index.php'); + } + +?> + \ No newline at end of file diff --git a/hotel_booking/user_booking.php b/hotel_booking/user_booking.php index 99a7c16..47902fd 100644 --- a/hotel_booking/user_booking.php +++ b/hotel_booking/user_booking.php @@ -29,12 +29,6 @@ color: #B0A695; text-shadow: 1px 1px 2px #EAD8C0; } - .custom-alert-t{ - position:fixed; - top: 100px; - right: 25px; - z-index: 10000; - } .room-book-img{ width: 100%; height: 550px; @@ -50,13 +44,18 @@ color: white; padding: 6px 12px; text-align: center; - font-size: 14px; border-radius: 3px; } + .booking-order{ + font-size: 14px; + } @media (max-width:765px){ .booking-hero{ height: 100px; } + .booking-body, .booking-head{ + font-size: 12px; + } } @media (max-width:580px){ .room-book-img{ @@ -67,6 +66,9 @@ .room-title{ font-size: 16px; } + .booking-body{ + font-size: 10px; + } } @@ -79,7 +81,7 @@ } ?> -
+

Booking

@@ -95,10 +97,11 @@
- - - - + + + + +
DateOrder IDAction
DateOrder IDStatusAction
@@ -111,33 +114,36 @@ $status_bg = ""; $btn = ""; - if($data['booking_status'] == 'pending'){ - $status_bg = "bg-success"; - if($data['arrival'] ==1){ - $btn = " - Download - - "; - } else{ - $btn = " - - "; - } - - } else{ + if($data['booking_status'] == 'pending' && $data['arrival'] == 0){ + $status_bg = "bg-warning"; + $status = 'Pending'; + $btn = " + + "; + } else if($data['booking_status'] == 'cancel' && $data['arrival'] == 0){ $status_bg = "bg-danger"; + $status = 'Cancelled'; + } else if($data['booking_status'] == 'pending' && $data['arrival'] ==1){ + $status_bg = "bg-success"; + $status = 'Booked'; + $btn = " + + + "; } echo <<< data
- - - - - - - - -
$date$data[order_id]Action
+ + + + + + + + + +
$date$data[order_id]$status$btn
+

data; } ?> @@ -148,6 +154,23 @@ - + \ No newline at end of file