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('blog_category',$_GET['id']); header('location:view-blog-category.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" style="display: flex;justify-content: space-between;"> <h2>View Blog Category</h2> <a href="add-blog-category.php" class="text-right btn btn-warning">Add Blog Category</a> </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>Name</th> <th>Action</th> </tr> </thead> <tbody> <?php $rs=$obj->getAll('blog_category'); foreach($rs as $rss){ ?> <tr class="text-center"> <td><?php echo $rss['id'];?></td> <td><?php echo $rss['name'];?></td> <td><a href="add-blog-category.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></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 = "page_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'?>