ok

Mini Shell

Direktori : /home/u243902267/domains/holyhimalayayatra.com/public_html/admin/
Upload File :
Current File : /home/u243902267/domains/holyhimalayayatra.com/public_html/admin/bike-rental.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">Bike Rental List</li>
        </ol>
      </nav>
    </div>
    <div class="ms-auto">
      <a href="add-bike-rental" 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>Price/day</th>
              <th>Image</th>
              <th>Action</th>
            </tr>
          </thead>
          <tbody>
            <?php
            $sql = $conn->query("SELECT * FROM bike_rental");
            $i=1;
            while($row=$sql->fetch_assoc()){ ?>
              <tr>
                <td><?=$i++;?></td>
                <td><?=$row['title'];?></td>
                <td>₹ <?=$row['price'];?></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-bike-rental?id=<?=$row['id'];?>">Edit</a>
                      <a class="dropdown-item" href="javascript:void[0]" onclick="del(<?=$row['id'];?>,'bike_rental')" >Delete</a>
                    </div>
                  </td>
              </tr>
            <?php } ?>
          </tbody>
          <tfoot>
            <tr>
              <th>S.NO</th>
              <th>Title</th>
              <th>Price/day</th>
              <th>Image</th>
              <th>Action</th>
            </tr>
          </tfoot>
        </table>
      </div>
    </div>
  </div>
</main>
<!--end page main-->
<?php include('include/footer.php');?>

Zerion Mini Shell 1.0