Guest User

Untitled

a guest
Apr 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <?php $this->load->view("head"); ?>
  5. </head>
  6. <body>
  7. <?php $this->load->view("menu"); ?>
  8. <div class="container">
  9. <?php
  10.  
  11. if(isset($_SESSION['alert']))
  12. {
  13. if($_SESSION['alert']['0']=="0")
  14. {
  15. ?>
  16. <div class="alert alert-danger">
  17. <strong><?php echo $_SESSION['alert']['1']; ?></strong>
  18. </div>
  19. <?php
  20. }else{
  21. ?>
  22. <div class="alert alert-success">
  23. <strong><?php echo $_SESSION['alert']['1']; ?></strong>
  24. </div>
  25. <?php
  26. }
  27. }
  28. unset($_SESSION['alert']);
  29. ?>
  30. <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>
  31. <table class="table table-bordered" id="view">
  32. <thead>
  33. <tr>
  34. <th>No</th>
  35. <th>Image Name</th>
  36. <th>Action</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <?php
  41. if(!empty($data))
  42. {
  43. $i=1;
  44. foreach($data as $value)
  45. {
  46. ?>
  47. <tr>
  48. <td><?php echo $i++; ?></td>
  49. <td><img src="<?php echo base_url()?>/assets/img/<?php echo $value->img; ?>" width="100" height="100"></td>
  50. <td>
  51. <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>
  52. <a href="<?php echo base_url(); ?>index.php/ControllerFileUploading/EditImg/<?php echo $value->img_id; ?>"class="btn btn-default">Edit</a></td>
  53. </tr>
  54. <?php
  55. }
  56. }
  57. ?>
  58. </tbody>
  59. </table>
  60. <?php #print_r($data); ?>
  61. </div>
  62. <?php $this->load->view("footer"); ?>
  63. <script>
  64. $(document).ready(function(){
  65. $('#view').DataTable();
  66. });
  67. </script>
  68. <script>
  69. $('[data-toggle=confirmation]').confirmation({
  70. rootSelector: '[data-toggle=confirmation]',
  71. });
  72. </script>
  73. </body>
  74. </html>
Add Comment
Please, Sign In to add comment