/home3/vehiclea/public_html/admin-kalyanidentalclinics-com/services_report.php
<?php
session_start();
$_SESSION['active'] = 'serviceReport';
include "header.php";
$select = select_services();
if(!empty($_GET['delId'])){
delete_services($_GET['delId']);
}
?>
<body>
<main id="main" class="main">
<div class="pagetitle">
<h1>SERVICE LIST</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="#">Reports</a></li>
<li class="breadcrumb-item"><a href="services_report.php">Service Report</a></li>
</ol>
</nav>
</div>
<section class="section">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h5 class="card-title">Services 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 class="table datatable">
<thead>
<tr>
<th scope="col" width="10%;">S.No.</th>
<th scope="col" width="10%;">Name</th>
<th scope="col" width="10%;">Title</th>
<th scope="col" width="30%;">Description</th>
<th scope="col" width="15%;">Image</th>
<th scope="col" width="15%;">Status</th>
<th scope="col" width="10%;">Action</th>
</tr>
</thead>
<tbody> <?php
$i=1;
while($row = mysqli_fetch_array($select)){
?>
<tr>
<td> <?= $i;?> </td>
<td> <?= $row['name']?> </td>
<td> <?= $row['title']?> </td>
<td> <?= $str = substr($row['content'], 0, 150).'...'; ?> </td>
<td> <img src="uploads/services/<?= $row['image']?>" width="100px"> </td>
<td> <?php if($row['status']==1){ echo "Active";}else{ echo "Inactive";}?> </td>
<td>
<nav class="header-nav ms-auto">
<ul class="d-flex align-items-center">
<li class="nav-item dropdown pe-3">
<a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
<span class="d-none d-md-block dropdown-toggle ps-2">Actions</span>
</a>
<ul class="dropdown-menu">
<li>
<a href="service_edit.php?editId=<?= $row['id']?>" class="dropdown-item"><i class="bi bi-pencil-fill"></i>Edit</a>
</li>
<li>
<a href="services_report.php?delId=<?= $row['id']?>" class="dropdown-item"><i class="bi bi-trash"></i>Delete</a>
</li>
</ul>
</li>
</ul>
</nav>
</td>
</tr>
<?php $i++;}?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</main>
<?php include "footer.php"; ?>
@LwBee Strong Bypass
Upload File
Create New File