ok

Mini Shell

Direktori : /home/u243902267/domains/holyhimalayayatra.com/public_html/admin/
Upload File :
Current File : /home/u243902267/domains/holyhimalayayatra.com/public_html/admin/hotel-bookings.php

<?php 
include('include/header.php');
include('include/sidebar.php');
?>
<!--start content-->
<main class="page-content">
  <!--breadcrumb-->
  <div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
    <div class="ps-3">
      <nav aria-label="breadcrumb">
        <ol class="breadcrumb mb-0 p-0">
          <li class="breadcrumb-item"><a href="javascript:;"><i class="bx bx-home-alt"></i></a>
          </li>
          <li class="breadcrumb-item active" aria-current="page">Hotel Bookings List</li>
        </ol>
      </nav>
    </div>
  </div>

  <div class="card">
    <div class="card-body">
      <div class="table-responsive">
        <table id="example2" class="table table-striped table-bordered">
          <thead>
            <tr>
              <th>S.NO</th>
              <th>Name</th>
              <th>Email</th>
              <th>Contact</th>
              <th>No. Of Adults</th>
              <th>No. Of Children</th>
              <th>Check-in Date</th>
              <th>Check-in Time</th>
              <th>Check Out Date</th>
              <th>Check Out Time</th>
              <th>Hotel</th>
              <th>Message</th>
              <th>Status</th>
              <th>Action</th>
            </tr>
          </thead>
          <tfoot>
            <tr>
              <th>S.NO</th>
              <th>Name</th>
              <th>Email</th>
              <th>Contact</th>
              <th>No. Of Adults</th>
              <th>No. Of Children</th>
              <th>Check-in Date</th>
              <th>Check-in Time</th>
              <th>Check Out Date</th>
              <th>Check Out Time</th>
              <th>Hotel</th>
              <th>Message</th>
              <th>Status</th>
              <th>Action</th>
            </tr>
          </tfoot>
          <tbody>
            <?php
            $sql = $conn->query("SELECT * FROM hotel_bookings");
            $i=1;
            while($row=$sql->fetch_assoc()){ ?>
              <tr>
                <td><?=$i++;?></td>
                <td><?=$row['name'];?></td>
                <td><?=$row['email'];?></td>
                <td><?=$row['phone'];?></td>
                <td><?=$row['adults'];?></td>
                <td><?=$row['child'];?></td>
                <td><?=$row['checkin_date'];?></td>
                <td><?=$row['checkin_time'];?></td>
                <td><?=$row['checkout_date'];?></td>
                <td><?=$row['checkout_time'];?></td>
                <td><?=$row['hotel'];?></td>
                <td><?=$row['message'];?></td>
                <td><?=$row['status'];
                // if($row['status']=='Pending') {
                //   echo '<span class="badge badge-warning>Pending<span>';
                // }elseif($row['status']=='Confirmed'){
                //   echo '<span class="badge badge-info>Confirmed<span>';
                // }else{
                //   echo '<span class="badge badge-danger>Cancel<span>';
                // }
              ?></td>
                <td>
                    <button type="button" class="btn btn-primary split-bg-primary dropdown-toggle dropdown-toggle-split btn-sm" data-bs-toggle="dropdown"> Action<span class="visually-hidden">Toggle Dropdown</span>
                    </button>
                    <div class="dropdown-menu dropdown-menu-right dropdown-menu-lg-end">  
                      <a class="dropdown-item" href="javascript:void[0]" onclick="del(<?=$row['id'];?>,'hotel_bookings')" >Delete</a>
                      <a class="dropdown-item" href="javascript:void[0]" onclick="hotel_confirmed(<?=$row['id'];?>)" >Confirmed</a>
                      <a class="dropdown-item" href="javascript:void[0]" onclick="hotel_cancel(<?=$row['id'];?>)" >Cancel</a>
                      <a class="dropdown-item" href="invoice?id=<?=$row['id'];?>&t=hotel_bookings" target="_blank">Invoice</a>
                    </div>
                  </td>
              </tr>
            <?php } ?>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</main>
<!--end page main-->
<?php include('include/footer.php');?>

Zerion Mini Shell 1.0