File manager - Edit - /home/u608250662/domains/rdsolution.org.in/public_html/jevica/application/views/admin/banner/list.php
Back
<!----Start Header----> <?php $this->load->view('admin/layout/header.php'); ?> <!----End Header----> <!-- /.navbar-collapse --> <div class="clearfix"> </div> <!----Start Header----> <?php $this->load->view('admin/layout/left_menu.php'); ?> <!----End Header----> </nav> <div id="page-wrapper" class="gray-bg dashbard-1"> <div class="content-main"> <!--banner--> <div class="banner"> <?php echo $this->session->flashdata('message'); ?> <h2> <a href="#">Home</a> <i class="fa fa-angle-right"></i> <span>Banner Listing</span> <a href="<?php echo base_url('banner/add'); ?>"><button type="button" style="float:right;" class="btn btn-primary">Add New</button></a> </h2> <div class="row-fluid clear"> <div class="span12 content" style="margin-top:15px;"> <table width="100%" id="example" cellspacing="0" cellpadding="0" border="0" class="table-bordered table-compact table table-hover"> <thead> <tr> <th width="7%">S.No </th> <th width="33%">Title</th> <th width="33%">Description</th> <th width="16%">Image</th> <th width="8%">Status </th> <!-- <th width="9%">Category </th> --> <th width="10%">Action </th> </tr> </thead> <tbody> <?php $i = 0; foreach ($BANNERDATA as $data) { if($data->banner_cat == 'video_banner'){ $i++; $status = ($data->status == 1) ? 'active.png' : 'inactive.png'; ?> <tr bgcolor="#FFFFFF"> <td><?php echo $i; ?></td> <td><?php echo $data->imageText; ?></td> <td><?php echo $data->imageAlt; ?></td> <td> <?php if($data->banner_cat == 'video_banner'){ ?> <video width="200" height="200" controls> <source src="<?php echo base_url().'media/uploads/banner/'.$data->image; ?>" type="video/mp4"> Your browser does not support the video tag. </video> <?php } else { ?> <img src="<?php echo base_url().'media/uploads/banner/'.$data->image; ?>" alt="<?php echo $data->image; ?>" width="200" height="200"> <?php } ?> </td> <td><img src="<?php echo base_url() . 'media/admin/images/' . $status; ?>"></td> <td width="18%" valign="top" align="center" class="gray_txt"> <a href="<?php echo base_url('banner/edit/' . $data->id); ?>"><i class="fa fa-pencil-square-o"></i></a> <a href="<?php echo base_url('banner/delete/' . $data->id); ?>" onclick="return confirm('are you sure do you want to delete this record')"><i class="fa fa-trash"></i></a> </td> </tr> <?php } } ?> <!--table1 ends--> </tbody> </table> </div> </div> </div> <!--//banner--> <!----Start Footer----> <?php $this->load->view('admin/layout/footer.php'); ?> <!----End Footer---->
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings