Booking = h($booking['booking_code']) ?>
++
diff --git a/admin_booking.php b/admin_booking.php new file mode 100644 index 0000000..7118453 --- /dev/null +++ b/admin_booking.php @@ -0,0 +1,89 @@ +prepare( + "SELECT b.*, s.show_time, s.screen, s.format_label, m.title + FROM bookings b + JOIN shows s ON s.id = b.show_id + JOIN movies m ON m.id = s.movie_id + WHERE b.booking_code = ?" + ); + $stmt->execute([$code]); + $booking = $stmt->fetch(); +} +?> + + +
+ + +| Code | +Movie | +Showtime | +Seats | +Status | +Check-in | +
|---|---|---|---|---|---|
| = h($booking['booking_code']) ?> | += h($booking['title']) ?> | += h(date('M d, H:i', strtotime($booking['show_time']))) ?> | += h($booking['seats']) ?> | += h($booking['status']) ?> | += $booking['checked_in'] ? 'Checked in' : 'Pending' ?> | +
| Movie | +Showtime | +Screen | +Format | +Price | ++ |
|---|---|---|---|---|---|
| = h($show['title']) ?> | += h(date('M d, H:i', strtotime($show['show_time']))) ?> | += h($show['screen']) ?> | += h($show['format_label']) ?> | +$= h(number_format((float)$show['price'], 2)) ?> | +Book seats | +
= h($show['title']) ?> · = h(date('M d, H:i', strtotime($show['show_time']))) ?> · = h($show['format_label']) ?>
+Browse showtimes, choose seats, and deliver instant e-tickets. Agents and staff get dedicated tools for walk-ins and check-ins.
+= h($movie['description']) ?>
+Scan a ticket to see details here.
+ +