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/Multiple" style="color: #000;font-size: large;"><i class="fa fa-arrow-left" aria-hidden="true"></i></a>
- <form action="<?php echo base_url();?>index.php/ControllerFileUploading/DeleteMultipleImg" method="post">
- <table class="table table-bordered" id="view" >
- <thead>
- <tr>
- <th><input type="checkbox" name="" id="selectall" onClick="toggle(this)">Select All</th>
- <th>Image Name</th>
- <th>Action</th>
- </tr>
- </thead>
- <tbody>
- <?php
- if(!empty($data))
- {
- $i=1;
- foreach($data as $value)
- {
- ?>
- <tr>
- <td><input type="checkbox" name="delete[]" id="chk" value="<?php echo $value->m_img_id; ?>"></td>
- <td><img src="<?php echo base_url()?>/assets/img/<?php echo $value->m_img; ?>" width="100" height="100"></td>
- <td>
- <input type="submit" name="btn" value="Delete" class="btn btn-default" onclick="return confirm('Are You Sure Remove This Record ');">
- </td>
- </tr>
- <?php
- }
- }
- ?>
- </tbody>
- </table>
- </form>
- <?php #print_r($data); ?>
- </div>
- <?php $this->load->view("footer"); ?>
- <script>
- $(document).ready(function(){
- $('#view').DataTable({
- "ordering": false
- });
- })
- </script>
- <script type="text/javascript">
- function toggle(source) {
- var checkboxes = document.querySelectorAll('input[type="checkbox"]');
- for (var i = 0; i < checkboxes.length; i++) {
- if (checkboxes[i] != source)
- checkboxes[i].checked = source.checked;
- }
- }
- </script>
- <script>
- $('[data-toggle=confirmation]').confirmation({
- rootSelector: '[data-toggle=confirmation]',
- });
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment