<!DOCTYPE html>
<html lang="en">


<!-- Mirrored from edumin.dexignlab.com/xhtml/add-departments.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Nov 2020 13:56:15 GMT -->
<head>
    
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Rizwan Associates</title>
    <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="<?php echo base_url();?>assets/images/favicon.png">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/bootstrap-select/dist/css/bootstrap-select.min.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/style.css">
    <!-- Pick date -->
   <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/pickadate/themes/default.css">
    <link rel="stylesheet" href="<?php echo base_url();?>assets/vendor/pickadate/themes/default.date.css">
     <link href="<?php echo base_url();?>assets/vendor/datatables/css/jquery.dataTables.min.css" rel="stylesheet">
    <!-- Custom Stylesheet -->


     

</head>

<body>

    <!--*******************
        Preloader start
    ********************-->
        <div id="preloader">
        <div class="sk-three-bounce">
            <div class="sk-child sk-bounce1"></div>
            <div class="sk-child sk-bounce2"></div>
            <div class="sk-child sk-bounce3"></div>
        </div>
    </div>
    <!--*******************
        Preloader end
    ********************-->

    <!--**********************************
        Main wrapper start
    ***********************************-->
    <div id="main-wrapper">

      <?php  $this->load->view('header'); ?>
        
        <!--**********************************
            Content body start
        ***********************************-->
        <div class="content-body">
            <!-- row -->
            <div class="container-fluid">
                    
                <div class="row page-titles mx-0">
                    <div class="col-sm-6 p-md-0">
                        <div class="welcome-text">
                            <h4>Machine Report</h4>
                        </div>
                    </div>
                    <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="index.html">Home</a></li>
                            <li class="breadcrumb-item active"><a href="javascript:void(0);"></a></li>
                          
                        </ol>
                    </div>
                </div>
                
               
            <div class="row">

                    <div class="col-12">
            
                             <?php echo form_open(base_url(''),array('class'=>"form-horizontal report_stock", 'id'=>"report_stock")); ?>   
                            
                          <div class="col-xl-12 col-xxl-12 col-sm-12">
                             <div class="card">

                               
                                <div class="card-body">
                                   <div class="row">

                                    <div class="col-lg-3 col-md-6 col-sm-12">

                                                <div class="form-group">
                                                    <label class="form-label">Select Report:</label>
                                                     <select class="form-control select_report" data-live-search="true"   name="select_report" required="required" id="select_report">
                                                      <option value="">Select Option</option>
                                                     <option value="1">Machine Summary Report</option>
                                                     <option value="2">Daily Machine Report</option>

                                                   </select>
                                                 </div>
                                                </div>


                                          

                                          
                                         
                                       
                                        </div>
                                       


                                  <div id ="filter_data"></div>
                             
                          
                        </div>
                    </div>



                   
                </div>
            </div>
       
       

    </div>
    

   


       <?php  $this->load->view('footer'); ?>
        
</body>
<script type="text/javascript">

$("#select_report").change(function() {

                
    
                var id =  this.value;
                //alert(id);
               
                $.ajax({
                            type:'POST',
                            url:'<?php echo base_url('Admin/filter_report'); ?>',
                            data:{id:id},
                            dataType:'json',
                            success:function(data){
                            
                                    
                                    $('#filter_data').show().html(data.html);
                               
                            },
                            error:function(data){console.log(data.responseText);}
                        });

              

    });
  



$("#btnPrint").change(function() {

                
    
                var id =  this.value;
                alert(id);
               
                $.ajax({
                            type:'POST',
                            url:'<?php echo base_url('Stock/get_pdf'); ?>',
                            data:{id:id},
                            dataType:'json',
                            success:function(data){
                            
                                    
                                    //$('#mode_select').show().html(data.html);
                               
                            },
                            error:function(data){console.log(data.responseText);}
                        });
                 });

</script>
<!-- Mirrored from edumin.dexignlab.com/xhtml/add-departments.html by HTTrack Website Copier/3.x [XR&CO'2014], Tue, 17 Nov 2020 13:56:15 GMT -->
</html> 