JezK
Edit File: materialtransactionlist.php
<?php include("../app/checkSession.php"); //include("app/adminObj.php"); if(empty($_SESSION['user_id'])&& $_SESSION['user_id']=='') { header("Location: ../owner_login.php"); } //$quote_list=$wareHouseAdminObj->QuoteList(); /*if (isset($_POST['btn_submit'])) { $wareHouseAdminObj->db->query("UPDATE uflexit_request_quote SET expected_rate='".$_POST['expected_rate']."', whadmin_description='".$_POST['whadmin_description']."' WHERE quotation_id=".$_POST['quotation_id']); $wareHouseAdminObj->db->query("INSERT INTO uflexit_request_quote_track (quotation_id,admin_id,change_datetime,expected_rate,quotation_status,closed_status,whadmin_description,customer_description,whadmin_id) VALUES(".$_POST['quotation_id'].",".$_SESSION['user_id'].",'".date("Y-m-d H:i:s")."',".$_POST['expected_rate'].",".$_POST['quotation_status'].",1,'".$_POST['whadmin_description']."','',".$_SESSION['user_id'].")"); $wareHouseAdminObj->setFlashMessage('Status updated successfully!','success'); $wareHouseAdminObj->redirect('quotelist.php'); }*/ include("header.php"); // $query="SELECT * FROM uflexit_asn_request WHERE quotation_id=".(int)$_REQUEST['q_id']." ORDER BY asn_id DESC"; // $asn_list=$wareHouseAdminObj->db->get_results($query); ?> <link href="css/simplePagination.css" type="text/css" rel="stylesheet"/> <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>ASN List</h6> </div> <div class="col-md-4"> <!-- <a href='cnewasn.php?q_id=' title="ASN">Create ASN</a> --> <a href='createnewasn.php' title="Create ASN" class="btn">Create ASN</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 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 "> <?php echo $wareHouseAdminObj->flashMessage();?> <div class="table-responsive p-md-4 p-0 myquotation-table"> <table id="example" class="display bg-white tbl-border table-borderless" style="width:100%"> <thead> <tr> <th>Warehouse Id</th> <!-- <th>Request Type</th> --> <th>Quotation Id</th> <th>Price</th> <th>Action</th> <!-- <th>Shiptment Time</th> --> <!-- <th>Shiptment From Address</th> --> <!-- <th>Pallet No</th> <th>Total Cost</th> --> </tr> </thead> <tbody> </tbody> </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.XLSX</span></button> </div> </div> </div> </div> <!-- footer --> <?php include("footer.php"); ?> <script> let $ =jQuery; $(document).ready(function() { jQuery('#example').DataTable( { "processing": true, "dataSrc": "", "dom": 'Bfrtip', "dom": 'Rlfrtlip', language: { search: '', searchPlaceholder: "Search", paginate: {previous: 'Prev',next: 'Next'}}, "pagingType": "full_numbers", "bProcessing": true, "bServerSide": true, "sAjaxSource": "app/asnList-ajax.php?wid=<?php echo $_GET['wid']?>&type=2;", "ordering": false, "aoColumns": [{ mData: 'warehouse_id' } , // { // mData: 'request_type' // } // , { mData: 'quotation_id' }, // { // mData: 'country_name' // }, { mData: 'price' }, { mData: 'action' } ] } ); } ); </script>