<?php 
  $header_file=APPPATH.'views/include/header.php';
  require($header_file);
  
  ?>
<div class="app-content content">
    <div class="content-overlay"></div>
    <div class="content-wrapper">
        <div class="content-header row">
            <div class="content-header-left col-md-12 col-12 mb-2 breadcrumb-new">
                <h3 class="content-header-title mb-0 d-inline-block"><?php echo $sub_ModuleName;?></h3>
                <div class="row breadcrumbs-top d-inline-block float-right">
                    <div class="breadcrumb-wrapper col-12">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="<?php echo site_url('User/dashboard');?>">Home</a></li>
                            <li class="breadcrumb-item"><a href="#"><?php echo $moduleName;?></a></li>
                            <li class="breadcrumb-item active"><?php echo $sub_ModuleName;?></li>
                        </ol>
                    </div>
                </div>
            </div> 
        </div>
        <div class="content-body"><!-- Zero configuration table -->
            <section id="configuration">
                <div class="justify-content-md-center">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-content collapse show">
                                <div class="card-body card-dashboard">
                                    <div class="table-responsive">
                                        <table  id="myTable" class="table table-striped table-bordered "> 
                                            <thead>
                                                <tr>
                                                <th>Sl No</th>
                                                <th>Damage No</th>
                                                <th>Damage Date</th>
                                                <th>View</th>
                                                </tr>
                                            </thead>
                                            <!--<tbody>
                                            <?php
                                            /*$count =1;
                                            foreach($damage as $record)
                                            {
                                            ?>
                                            <tr>
                                            <td><?php echo $count; ?></td>
                                            <td><?php echo $record->damage_no; ?></td>
                                            <td><?php echo $record->damage_date; ?></td>
                                            <td class="uk-text-nowrap">
                                            <a href="<?php echo site_url('Damage/viewDamage/'. $record->damage_id.'/'.$sub_mod_id); ?>"  id="view" name="view" class="btn btn-sm btn-primary">View Damage</a>
                                            </td>
                                            </tr>
                                            <?php
                                            $count++;
                                            }*/
                                            ?>
                                            </tbody>-->
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section><!--/ Zero configuration table -->
        </div>
    </div>
</div>
<?php //require('include/theme_customizer.php');?>
<?php 
  $footer_file=APPPATH.'views/include/footer.php';
  require($footer_file);
?>
<script>
  $('.param_check').each(function() { $(this).on( {'click contextmenu': function() {
    //contextmenu
    var i = $(this).data('value');
    var anchor = $("a");
    var anchorTarget = $(this).parent().find('.parmetre').val();
    var submodid = $(this).parent().find('.submod_id').val();
    var link = $(this).attr('href');
    $(this).attr("href", link + submodid +'/'+anchorTarget);

    location.reload();
  }
  })
  })
</script>  
<script type='text/javascript'>
    $(document).ready(function() {
        $("#myTable").DataTable({
           "ajax": '<?php echo base_url();?>index.php/Eshanya/getDamage/<?php echo $sub_mod_id ?>',
            dom: "Bfrtip",
             displayLength: 25,
            buttons: ["copyHtml5", "excelHtml5", "csvHtml5", "pdfHtml5"]
    }) 
   });
</script>
  </body>
  <!-- END: Body-->

<!-- Mirrored from pixinvent.com/modern-admin-clean-bootstrap-4-dashboard-html-template/html/ltr/vertical-modern-menu-template/form-layout-basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Apr 2020 09:38:02 GMT -->
</html>