ok
Direktori : /home/u243902267/domains/holyhimalayayatra.com/public_html/admin/ |
Current File : /home/u243902267/domains/holyhimalayayatra.com/public_html/admin/hotel-and-home-stay.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 & Home Stay List</li> </ol> </nav> </div> <div class="ms-auto"> <a href="add-hotel-and-home-stay" class="btn btn-primary">Add</a> </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>Title</th> <th>Image</th> <th>Action</th> </tr> </thead> <tbody> <?php $sql = $conn->query("SELECT * FROM hotel"); $i=1; while($row=$sql->fetch_assoc()){ ?> <tr> <td><?=$i++;?></td> <td><?=$row['title'];?></td> <td><img src="<?=$row['image'];?>" style="width: 100px;"></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="edit-hotel-and-home-stay?id=<?=$row['id'];?>">Edit</a> <a class="dropdown-item" href="javascript:void[0]" onclick="del(<?=$row['id'];?>,'hotel')" >Delete</a> </div> </td> </tr> <?php } ?> </tbody> <tfoot> <tr> <th>S.NO</th> <th>Title</th> <th>Image</th> <th>Action</th> </tr> </tfoot> </table> </div> </div> </div> </main> <!--end page main--> <?php include('include/footer.php');?>