hjkhjkjhkhjkgjghjhgjhgjghjhghjghjhgjjnbvnvbnvk
bnmbnmbnhjkhjkhjkhjktyutyutyuytutyutyutyhgjgjghjgjghjguytutyry
/
home
/
b4h4ej4a6kj6
/
public_html
/
kitsandcleats.in
/
admin
/
Upload FileeE
HOME
<?php include('functions.php'); $obj = new Operations(); if($_GET['action'] == 'delete'){ $obj->delete('banners',$_GET['id']); header('location:view-banners.php'); } include 'header.php'; ?> <?php require_once 'sidebar.php'?> <!-- Main Content --> <div class="main-content"> <section class="section"> <div class="section-body"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h2>View Banners</h2> </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-striped" id="table-1"> <thead> <tr class="text-center"> <th>#ID</th> <th>Title</th> <th>Heading</th> <th>Image</th> <th>Action</th> </tr> </thead> <tbody> <?php $rs=$obj->getAll('banners'); foreach($rs as $rss){ ?> <tr class="text-center"> <td><?php echo $rss['id'];?></td> <td><?php echo $rss['title'];?></td> <td><?php echo $rss['heading'];?></td> <td><img src="./images/banners/<?php echo $rss['image'];?>" width="80" height="50"></td> <td><a href="add-banner.php?mode=edit&id=<?php echo $rss['id'];?>" class="btn btn-primary">Edit</a> <a id="del-img_<?php echo $rss['id']; ?>" href="javascript:void(0)" class="btn btn-danger btn_dengars">Delete</a> <span id="view-banner_<?php echo $rss['id']; ?>" <?php if($rss['status'] == 'Active'){ ?>class="btn btn-success"<?php }else{ ?> class="btn btn-danger sub"<?php } ?>><?php echo $rss['status']; ?></span> </td> </tr> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $('#view-banner_<?php echo $rss['id']; ?>').click(function(){ window.location = "banner_bac.php?id=<?php echo $rss['id']; ?>"; }); </script> <script> $('#del-img_<?php echo $rss['id']; ?>').click(function(){ var r = confirm("Are You Sure You Want To Delete This!"); if (r == true) { window.location = "?action=delete&id=<?php echo $rss['id']; ?>"; } else { } }); </script> <?php }?> </tbody> </table> </div> </div> </div> </div> </div> </div> </section> </div> <?php require_once 'footer.php'?>