JezK
Edit File: shipment.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_SHIPMENT_STATUS'];?></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" > <thead> <tr> <th><?php echo $lang['WAREHOUSE_ID'];?></th> <th><?php echo $lang['WAREHOUSE_NAME'];?></th> <th><?php echo $lang['REQUEST_TYPE'];?></th> <th><?php echo $lang['CUSTOMER_NAME'];?></th> <th><?php echo $lang['VALUE'];?></th> <th><?php echo $lang['CURRENCY']; ?></th> <th><?php echo $lang['ASN_DATE'];?></th> <th><?php echo $lang['STATUS'];?></th> <th><?php echo $lang['ACTION'];?></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_shipment.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; 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/shipmentStatus-ajax-list.php", "ordering": false, "fnDrawCallback": function( oSettings ) { rowCount=oSettings.json.iTotalRecords; if(rowCount<1){ $("#export").addClass("d-none") } }, "aoColumns": [{ mData: 'warehouse_id' } , { mData: 'warehouse_name' } , { mData: 'request_status' }, { mData: 'name' } , { mData: 'price' }, { mData: 'currency' }, { mData: 'date' } , { mData: 'asn_status' }, { mData: 'action' } ] }); }); </script>