Guest User

Untitled

a guest
Apr 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 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/Multiple" style="color: #000;font-size: large;"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
  31. <form action="<?php echo base_url();?>index.php/ControllerFileUploading/DeleteMultipleImg" method="post">
  32.  
  33.  
  34. <table class="table table-bordered" id="view" >
  35. <thead>
  36. <tr>
  37. <th><input type="checkbox" name="" id="selectall" onClick="toggle(this)">Select All</th>
  38. <th>Image Name</th>
  39. <th>Action</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. <?php
  44. if(!empty($data))
  45. {
  46. $i=1;
  47. foreach($data as $value)
  48. {
  49. ?>
  50. <tr>
  51. <td><input type="checkbox" name="delete[]" id="chk" value="<?php echo $value->m_img_id; ?>"></td>
  52. <td><img src="<?php echo base_url()?>/assets/img/<?php echo $value->m_img; ?>" width="100" height="100"></td>
  53. <td>
  54. <input type="submit" name="btn" value="Delete" class="btn btn-default" onclick="return confirm('Are You Sure Remove This Record ');">
  55. </td>
  56. </tr>
  57. <?php
  58. }
  59. }
  60. ?>
  61. </tbody>
  62. </table>
  63. </form>
  64. <?php #print_r($data); ?>
  65. </div>
  66. <?php $this->load->view("footer"); ?>
  67. <script>
  68. $(document).ready(function(){
  69. $('#view').DataTable({
  70. "ordering": false
  71. });
  72.  
  73. })
  74. </script>
  75. <script type="text/javascript">
  76. function toggle(source) {
  77. var checkboxes = document.querySelectorAll('input[type="checkbox"]');
  78. for (var i = 0; i < checkboxes.length; i++) {
  79. if (checkboxes[i] != source)
  80. checkboxes[i].checked = source.checked;
  81. }
  82. }
  83. </script>
  84. <script>
  85. $('[data-toggle=confirmation]').confirmation({
  86. rootSelector: '[data-toggle=confirmation]',
  87. });
  88. </script>
  89. </body>
  90. </html>
Add Comment
Please, Sign In to add comment