
<?php    include_once('config/db.php');  include_once('config/check.php'); 

?>

<!DOCTYPE html>
<html>
<head>
<?php include_once('inc/link.php');   ?>  
<link rel="stylesheet" href="bower_components/Datatable_cdn/cdn.min.css">  


</head>
<body <?php include_once('inc/nav.php');  ?>>
<div class="wrapper">

  <!-- Main Header -->
    <header class="main-header">

    <!-- Logo -->
       <?php include_once('inc/brand.php');   ?>

    <!-- Header Navbar -->
    <?php include_once('inc/navbar.php');   ?>

  </header>
 
  <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
     <?php include_once('inc/menu.php');   ?>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
   

  <section class="content-header">
    <div class="col-md-12 row">
      <div class="col-md-3">
      <p style="color:green; font-size:20px; text-allign:centre ;font-weight:bold; " > <i class="fa fa-file" ></i> FINISHED GOODS  </p>
      
               
      </div>
           
      
      <div class="col-md-3  " class="mybtn" id="mybtn"  ></div>  
      <div class="col-md-6 pull-right"   >
            
        <div class="col-sm-12 row"> 
            <div class="col-md-4" id="mysearchbox">
              
            </div>               
            <div class="col-md-3">
               <!-- <input type="date" name="start_date" id="start_date" class="form-control  " style="border-radius:2px;">  -->
            </div>               
            <div class="col-md-3">
               <!-- <input type="date" name="end_date"  id="end_date" class="form-control  " style="border-radius:2px;" >  -->
            </div>               
                          
            <div class="col-md-2"> 
               <!-- <input type="button" name="search" id="search" value="Find" class="btn btn-info" /> -->
                <!-- <button  class="btn btn-default btn-sm " name="search" id="search" type="button" > <i class="fa fa-search"></i> Find </button> -->
            </div>                                                          
        </div> 
    </div>
   </section>
  <!-- <section class="content-header">
      <div class="col-md-4">
       <legend style="color:green; font-size:25px; text-allign:centre ;font-weight:bold;" >  <i class="fa fa-bars" ></i> List Expenses  </legend>                 
      </div>
      <div class="col-md-4 pull-right"   >
            
            <a class="btn btn-default  btn-sm" href="acc_expenses.php"> <i class="fa fa-user-plus"></i>  Add Expense  </a> 

       </div>      
      <div class="col-md-4 pull-right " class="mybtn" id="mybtn"  >
       </div>      
  </section> -->

  
  <!-- Main content -->
  <section class="content container-fluid">
    <div class="">        
        <div class="col-md-12">
        <div class="box box-primary box-xs">
          <div class="box-body">
                            
                <!-- Filter END -->
            <div class="">
            <table id="customer_data" width="100%" class="table   table-small table-responsive ">
                
                  <thead>
                    <tr style="height: 0px;" class="bg-primary">                   
                   
                    <th >  </th>
                    <!-- <th >  </th> -->
                    <th > Item_Category  </th> 
                    <th > Item Name  </th>
                    <th > Code </th>
                    <th > Description  </th>
                    <th > UOM  </th>
                    <th > Reorder_level  </th>
                    <th > Warehouse   </th>
                   
                   
                    </tr>
                  </thead>
            </table>
                
            </div>
          </div>
        </div>
         
        </div>
        <!-- /.col -->
      </div>
  </section>
  
</div>
  <!-- /.content-wrapper -->
  
  <!-- Main Footer -->
  <footer class="main-footer">
    <?php  include_once('inc/footer.php'); ?>
  </footer>
  
</div>
                         
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->
<?php include_once('inc/linkjs.php') ?>

</body>
</html>

<!-- dynamic rows start here -->
<!-- DYANAMIC ROWS LISTING HERE --->
<script type="text/javascript" language="javascript" >

 


$('#customer_data').DataTable( {
 
  
   
    ajax: {
        url: 'filter/item_fg.php'
    }
} );


codeListTable = $("#customer_data").DataTable();
        new $.fn.dataTable.Buttons( codeListTable, {
            buttons: [
          
                {
                extend:    'excel',
                text:      '<i class="fa fa-files-o"></i> Excel',
                titleAttr: 'Excel',
                className: 'btn btn-default btn-sm',
                exportOptions: {
                    columns: ':visible'
                }
                },
                {
                extend:    'pdf',
                text:      '<i class="fa fa-file-pdf-o"></i> PDF',
                titleAttr: 'PDF',
                className: 'btn btn-default btn-sm',
                exportOptions: {
                    columns: ':visible'
                }
                },               
                {
                extend:    'print',
                text:      '<i class="fa fa-print"></i> Print',
                titleAttr: 'Print',
                className: 'btn btn-default btn-sm',
                exportOptions: {
                    columns: ':visible'
                }
                },  
            ]
        } );
        codeListTable.buttons().container().appendTo('#mybtn');    
        // $(".dataTables_filter").detach().appendTo("#mysearchbox");
        // $(".dataTables_length").detach().appendTo("#mylength");

</script>

