Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <?php $this->load->view("head"); ?>
- </head>
- <body>
- <?php $this->load->view("menu"); ?>
- <div class="container">
- <?php
- if(isset($_SESSION['alert']))
- {
- if($_SESSION['alert']['0']=="0")
- {
- ?>
- <div class="alert alert-danger">
- <strong><?php echo $_SESSION['alert']['1']; ?></strong>
- </div>
- <?php
- }else{
- ?>
- <div class="alert alert-success">
- <strong><?php echo $_SESSION['alert']['1']; ?></strong>
- </div>
- <?php
- }
- }
- unset($_SESSION['alert']);
- ?>
- <a href="<?php echo base_url();?>index.php/ControllerFileUploading" style="color: #000;font-size: large;"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
- <table class="table table-bordered" id="view">
- <thead>
- <tr>
- <th>No</th>
- <th>Image Name</th>
- <th>Action</th>
- </tr>
- </thead>
- <tbody>
- <?php
- if(!empty($data))
- {
- $i=1;
- foreach($data as $value)
- {
- ?>
- <tr>
- <td><?php echo $i++; ?></td>
- <td><img src="<?php echo base_url()?>/assets/img/<?php echo $value->img; ?>" width="100" height="100"></td>
- <td>
- <a href="<?php echo base_url(); ?>index.php/ControllerFileUploading/DeleteImg/<?php echo $value->img_id; ?>/<?php echo $value->img; ?>" class="btn btn-default" data-toggle="confirmation" data-title="Delete Record?">Delete</a>
- <a href="<?php echo base_url(); ?>index.php/ControllerFileUploading/EditImg/<?php echo $value->img_id; ?>"class="btn btn-default">Edit</a></td>
- </tr>
- <?php
- }
- }
- ?>
- </tbody>
- </table>
- <?php #print_r($data); ?>
- </div>
- <?php $this->load->view("footer"); ?>
- <script>
- $(document).ready(function(){
- $('#view').DataTable();
- });
- </script>
- <script>
- $('[data-toggle=confirmation]').confirmation({
- rootSelector: '[data-toggle=confirmation]',
- });
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment