?
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/list_programs.php |
<div id="page-wrapper"> <div class="main-page"> <div class="tables"> <h3 class="title1">Programs</h3> <!-- <a href="<?= base_url();?>admin/Admin_controller/add_programs" class="pull-right btn btn-xs btn-primary"><span class="label label-success"></span> Add Programs</a>--> <div class="panel-body widget-shadow"> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Program</th> <th>Featured Image</th> <th>Gallery Image</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; foreach($program as $key=>$list){ ?> <tr> <th scope="row"><?php echo $i; ?></th> <th scope="row"><?php echo $list['program_title']; ?></th> <td><img src="<?php echo base_url().'/uploads/programs/'.$list['featured_image'];?>" width="100" height="100"></td> <td><a href="<?= base_url();?>admin/Admin_controller/add_gallery/<?php echo $list['id'];?>" class="btn btn-warning">Add Images</a></td> <td><a href="<?= base_url();?>admin/Admin_controller/program_edit/<?php echo $list['id'];?>" class="btn btn-sm btn-success"><span>Edit</span></a> <a href="<?= base_url();?>admin/Admin_controller//<?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>