JezK
Edit File: yourstock.php
<?php include("app/checkSession.php"); include("header.php"); ?> <div class="container first-position"> <div class="container mt-3 position-2"> <div class="row px-md-4 px-0 "> <div class="tophead col-md-4"> <h6><?php echo $lang['YOUR_STOCK'];?></h6> </div> <div class="col-md-4"> </div> <!-- <div class="col-md-4"> <div class="input-group search-button mb-2" style="margin-right:10px;"> <input class="form-control border-right-0 border align-self-right border-rad-left" type="text" value="" id="myInput"> <span class="input-group-append"> <button class="btn btn-outline-secondary border-left-0 border border-rad-right" type="button"> <i class="fa fa-search"></i> </button> </span> </div> </div> --> </div> </div> <div class="container "> <div class="table-responsive p-4 myquotation-table"> <table id="example" class="display bg-white tbl-border table-borderless" style="width:100%"> <thead> <tr> <th><?php echo $lang['QUOTATION_ID'];?></th> <th><?php echo $lang['WAREHOUSE_ID'];?></th> <th><?php echo $lang['WAREHOUSE_NAME'];?></th> <th><?php echo $lang['ITEM_NO']; ?></th> <th><?php echo $lang['TOTAL_QTY']; ?></th> <th><?php echo $lang['BALLANCE_QTY']; ?></th> <th><?php echo $lang['TRANSACTION_DATE'];?></th> <th><?php echo $lang['STATUS'];?></th> </tr> </thead> </table> </div> </div> <div class="container position-relative"> <div class="row export_csv"> <div class="col-md-3 offset-md-11 "> <a href="export_total_stock.php" id="export" class="btn btn-primary"><i class="fa fa-download"></i><span class="pl-2">EXPORT.XLSX</span></a> </div> </div> </div> </div> <!-- footer --> <?php include("footer.php"); ?> <!-- <script src="js/jquery.min.js"></script> --> <!-- <script src="js/jquery.pagination.min.js"></script> --> <!----> <script> let $ =jQuery; $(document).ready(function() { jQuery('#example').DataTable({ "processing": true, "dataSrc": "", "dom": 'Bfrtip', "dom": 'Rlfrtlip', language: { search: '', searchPlaceholder: "<?php echo $lang['SEARCH'] ?>", paginate: {previous:'<?php echo $lang['PREV'];?>',next:'<?php echo $lang['NEXT'];?>'}}, "pagingType": "full_numbers", "bProcessing": true, "bServerSide": true, "sAjaxSource": "app/total_stock_ajax.php", "ordering": false, "fnDrawCallback": function( oSettings ) { rowCount=oSettings.json.iTotalRecords; if(rowCount<1){ $("#export").addClass("d-none") } }, "aoColumns": [ { mData: 'quotation_id' }, { mData: 'warehouse_id' } , { mData: 'warehouse_name' }, { mData: 'itemcode' }, { mData: 'qty' }, { mData: 'available_quantity' } , { mData: 'created_date' } , { mData: 'action' } ] }); }); </script>