?
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/announcement_listing.php |
<div id="page-wrapper"> <div class="main-page"> <div class="tables"> <h3 class="title1">Announcement</h3> <a href="<?= base_url();?>admin/Admin_controller/add_announcement" class="pull-right btn btn-xs btn-primary"><span class="label label-success"></span> Add Announcement</a> <div class="panel-body widget-shadow"> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Announcement</th> <th>Announcement Image</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; foreach($announcement as $key=>$list){ ?> <tr> <th scope="row"><?php echo $i; ?></th> <th scope="row"><?php echo $list['title']; ?></th> <td><img src="<?php echo base_url().'/uploads/announcements/'.$list['announcement_image'];?>" width="100" height="100"></td> <td><a href="<?= base_url();?>admin/Admin_controller/announcement_edit/<?php echo $list['id'];?>" class="btn btn-sm btn-success"><span>Edit</span></a> <a href="<?= base_url();?>admin/Admin_controller/delete_announcement/<?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>