<?php
include "classes/class.loader.php";
$html = new html();
$html->bacground_emoji();
$calls = new functions();
$html->header();
$db = new db();
$booking_res = $db->query("SELECT * FROM bookings WHERE (status = 0 OR status = 1) AND user_id = {$_SESSION['user_id']}");

?>
<style>
    body {
        background-color: #bebebee7;
        color: white;
    }
</style>

<div class="home_container">
    <?php if ($booking_res->num_rows == 0) { ?>
        <div class="container_wide">
            <h1>SELECT YOUR BOOKING TYPE:</h1>
            <br>
            <button id="dog_park" onclick="window.location.href='dog_park.php'">DOG PARK</button>
            <br>
            <button id="dog_park" onclick="window.location.href='dog_park_group.php'">DOG PARK GROUP</button>
            <br>

        </div>

    <?php } else { ?>

        <div class="container_wide">
            <h1> YOU ALREADY HAVE A PENGING BOOKING</h1>

        </div>

    <?php } ?>



</div>