<?php 
    include('header.php');
?>
<form id="seatfrm" name="seatfrm" method="POST" action="saveticket.php">
    <div class="modal-body">
        <?php
        $query = "SELECT * FROM seatmst WHERE status=1";
        $stddata= $mysqli->query($query);
        
        if ($stddata->num_rows > 0) {
        ?>
        <div class="invisible-checkboxes">
            <?php  while($row = $stddata->fetch_assoc()){ ?>
                <input type="checkbox" name="seats[]" value="<?= $row["id"] ?>" id="<?= 'seat_'.$row["id"] ?>"/>
                <label class="checkbox-alias" for="<?= 'seat_'.$row["id"] ?>"><?= $row["seat_name"] ?></label>
            <?php } ?>
            
        </div>
        <?php
            }
        ?>
    </div>
    <div class="modal-footer">
        <input type="submit" value="Book Ticket" name="booktckt" id="booktckt" class="btn btn-lg btn-success">
    </div>
</form>
<?php 
    include('footer.php');
?>