?
Current Path : /home1/savoy/public_html/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/public_html/savoyeducation.com/application/views/back-end/pages/video.php |
<div id="page-wrapper"> <div class="main-page"> <div class="tables"> <h3 class="title1">Videos</h3> <a href="<?= base_url();?>admin/Admin_controller/add_video" class="pull-right btn btn-xs btn-primary"><span class="label label-success"></span> Add Videos</a> <div class="panel-body widget-shadow"> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Video Thumb Image</th> <th>Video Url</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; foreach($video as $key=>$list){ ?> <tr> <th scope="row"><?php echo $i; ?></th> <td><img src="<?php echo base_url().'/uploads/video/'.$list['video_image'];?>" width="100" height="100"></td> <td><?php echo $list['video_url'];?></td> <td><a href="<?= base_url();?>admin/Admin_controller/video_edit/<?php echo $list['id'];?>" class="btn btn-sm btn-success"><span>Edit</span></a> <a href="<?= base_url();?>admin/Admin_controller/delete_video/<?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>