?
Current Path : /home1/savoy/www/savoyeducation.com/application/views/back-end/pages/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/www/savoyeducation.com/application/views/back-end/pages/program_gallery.php |
<div id="page-wrapper"> <?php $id=$this->uri->segment(4); ?> <div class="main-page"> <div class="tables"> <h3 class="title1">Program Gallery List </h3> <div class="panel-body widget-shadow"> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Gallery Image</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; foreach($gallery as $key=>$list){ ?> <tr> <th scope="row"><?php echo $i; ?></th> <td><img src="<?php echo base_url().'/uploads/programs/'.$list['file_name'];?>" width="100" height="100"></td> <td><!--<a href="<?= base_url();?>admin/Admin_controller/gallery_edit/<?php echo $list['id'];?>" class="btn btn-sm btn-success"><span>Edit</span></a>--> <a href="<?= base_url();?>admin/Admin_controller/gallery_delete/<?php echo $list['id'];?>" onclick="return confirm('Are you sure you want to delete?')" class="btn btn-danger" ><span>Delete</span></a></td> </tr> <?php $i++; } ?> </tbody> </table> </div> </div> </div> </div> <script> function confirmDelete(delUrl) { if (confirm("Are you sure you want to delete")) { document.location = delUrl; } } </script>