JezK
Edit File: comingshipment.php
<?php include_once("./app/checkSession.php"); if(empty($_SESSION['user_id'])&& $_SESSION['user_id']=='') { header("Location: ../owner_login.php"); } include("header.php"); ?> <div class="container px-md-5 px-4"> <div class="row px-2 px-md-2 align-items-center"> <div class="col-md-4"> <h5>Coming Shipment</h5> </div> </div> </div> <div class="container first-position"> <div class="container mt-2 px-md-5 px-3 position-2"> <div class="row px-0 align-items-center"> <div class="col-md-4"></div> <div class="col-md-4 text-md-right my-md-0 my-3 position-chnge z-in"> <a href="#"> <img src="images/add.png"> <span class="contact-txt">New ASN</span></a> </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" type="text" value="" id="myInput" style="border-top-left-radius:6px ;border-bottom-left-radius:6px"> <span class="input-group-append"> <button class="btn btn-outline-secondary border-left-0 border" type="button" style="border-top-right-radius: 6px;border-bottom-right-radius: 6px;"> <i class="fa fa-search"></i> </button> </span> </div> --> </div> </div> </div> <div class="container "> <div class="table-responsive p-md-4 p-0"> <table id="example" class="display bg-white tbl-border table-borderless" style="width:100%"> <thead> <tr> <th>Warehouse Name</th> <th>Warehouse ID</th> <th>Request Type</th> <th>Reference Number</th> <th>Customer Name</th> <th> Customer Type</th> <th style="vertical-align: top;">Value</th> <th style="vertical-align: top;">Date</th> <th style="vertical-align: top;">Time</th> <th style="vertical-align: top;">Details</th> </tr> </thead> </table> </div> </div> <!-- <div class="container position-relative"> <div class="row export_csv"> <div class="col-md-3 offset-md-9 "> <button id="export" class="btn btn-primary"><i class="fa fa-download"></i><span class="pl-2">EXPORT.CSV</span></button> </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> jQuery(document).ready(function() { jQuery('#example').DataTable({ "processing": true, "dataSrc": "", "sDom": 'Bfrtip', language: { search: '', searchPlaceholder: "Search" }, buttons: [ { extend: 'csvHtml5', text: '<i class="fa fa-file-text-o"></i>Export to csv', titleAttr: 'CSV' }, ], // "sDom": 'Rlfrtlip', // "serverSide": true, // dom: 'Bfrtip', // buttons: [ // { // extend: 'csvHtml5', // text: '<i class="fa fa-file-text-o"></i>Export to csv', // titleAttr: 'CSV' // }, // ], "ajax": "cmngshipment.json", "columns": [ { "data": "Warehouse Name" }, { "data": "Warehouse ID" }, { "data": "Request Type" }, { "data": "Request Number" }, { "data": "Customer Name" }, { "data": "Customer Type" }, { "data": "Value" }, { "data": "Date" }, { "data": "Time" }, { "data": "Details" }, ] }); }); </script>