����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
martstudios__usr
/
data
/
www
/
martstudios.in
/
admin
/
Filename :
services_right.php
back
Copy
<?php require_once "user_auth.php"; $title="Services_right"; require_once "header.php"; require_once "db.php"; $services_right_query = $dbcon->query("SELECT * FROM services_right"); ?> <div class="card text-dark mb-3" > <div class="card-header bg-success text-center "></div> <div class="card-body"> <!-- service add alert --> <?php if(isset($_SESSION['service_right_add'])){ ?> <div class="alert alert-success alert-dismissible fade show" role="alert"> <strong><?=$_SESSION['service_right_add']?></strong> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <?php } unset($_SESSION['service_right_add']); ?> <!-- aleart end --> <!-- update alert --> <?php if(isset($_SESSION['service_right_update'])){ ?> <div class="alert alert-success alert-dismissible fade show" role="alert"> <strong><?=$_SESSION['service_right_update']?></strong> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <?php } unset($_SESSION['service_right_update']); ?> <!-- aleart end --> <!-- delete message alert --> <?php if(isset($_SESSION['service_right_delete'])){ ?> <div class="alert alert-success alert-dismissible fade show" role="alert"> <strong><?=$_SESSION['service_right_delete']?></strong> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <?php } unset($_SESSION['service_right_delete']); ?> <!-- aleart end --> <table id='example' class="table table-bordered text-center"> <thead> <tr> <th>Serial</th> <th>Icon</th> <th>Service Title</th> <th>Service Details</th> <th>Action</th> </tr> </thead> <tbody> <!-- php code foreach --> <?php $serial = 1; foreach ($services_right_query as $result) { ?> <tr> <td><?=$serial++?></td> <td><i style="font-size: 12px;" class="<?=$result['icon']?>"></i></td> <td><?=$result['title']?></td> <td><?=$result['some_text']?></td> <td> <div class="btn-group"> <a class="btn btn-sm btn-warning" href="service_right_update.php?id=<?=base64_encode($result['id'])?>" >Update</a> <a class="btn btn-sm btn-danger" href="service_right_delete.php?id=<?=base64_encode($result['id'])?>">Delete</a> </div> </td> </tr> <!-- end foreach --> <?php } ?> </tbody> </table> <a class="btn btn-block btn-success mt-2" href="service_right_add.php">Add Another Service</a> </div> </div> <!-- ============ footer content =============== --> <?php require_once "footer.php"; ?>