HEX
Server: LiteSpeed
System: Linux server214.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: bigisxfd (746)
PHP: 8.4.15
Disabled: NONE
Upload Files
File: /home/bigisxfd/public_html/cowork/online-booking.php
<?php																																										
																																										

// Include necessary files
include_once("header.php");
include_once("sidebar.php");

// Fetch inactive bookings
$onlineBookings = getOnlineBookings(); // Define this function to fetch inactive bookings

?>

<section>
    <div class="column">
        <div style="display: flex; align-items: center; justify-content: space-between;">
            <h2>Online Bookings</h2>
        </div>
        <table>
            <thead>
                <tr>
                    <th>Booking ID</th>
                    <th>Member ID</th>
                    <th>Package Name</th>
                    <th>Start Date</th>
                    <th>Amount</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($onlineBookings as $booking): ?>
                <tr>
                    <td><?php echo $booking['rfid']; ?></td>
                    <td><?php echo $booking['firstname'] . ' ' . $booking['lastname']; ?></td>
                    <td><?php echo $booking['packagename']; ?></td>
                    <td><?php echo date("F j, Y H:i", strtotime($booking['startdate'])); ?></td>
                    <td><?php echo $booking['price']; ?></td>
                    <td><a class="checkout-link" href="confirm-online.php?bookingId=<?php echo $booking['bookingid']; ?>&PackageId=<?php echo $booking['packageid']; ?>&packagename=<?php echo $booking['packagename']; ?>&memberid=<?php echo $booking['memberid']; ?>&" style="background-color: lightgreen; padding: 6px; border-radius: 15px;font-size: 12px;">Confirm</a></td>
                </tr>
                <?php endforeach; ?>
            </tbody>
        </table>
    </div>
</section>

</body>
</html>