JezK
Edit File: asnlist.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"); if(isset( $_GET['wid']) && $_GET['wid']!=''){ $wid=$_GET['wid']; } // $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); ?> <style> .dataNormal{ /* white-space:normal !important; */ width:100px !important;} </style> <link href="css/simplePagination.css" type="text/css" rel="stylesheet"/> <a href="javascript:history.go(-1)" class="ml-4 pl-4"><img src="images/back_main.png" class="mb-3"></a> <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['ASN_LIST'];?></h6> </div> <!-- <div class="col-md-4 buttonClass"> <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 asnTable" style="width:100%"> <thead> <tr> <th><?php echo $lang['WAREHOUSE_NAME'];?></th> <th><?php echo $lang['REQUEST_TYPE'];?></th> <th><?php echo $lang['QUOTATION_ID'];?></th> <th><?php echo $lang['PRICE'];?></th> <th><?php echo $lang['CURRENCY'];?></th> <th><?php echo $lang['DATE'];?></th> <th><?php echo $lang['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 pl-0 pr-md-5 button-alignment"> <a href="export_comingShipment.php?wid=<?php echo $wid ?>&type=2" id="export" class="btn mobile-alignment btn-primary"><i class="fa fa-download"></i><span class="pl-2"><?php echo $lang['EXPORT.XLSX'];?></span></a> </div> </div> </div> </div> <!-- footer --> <?php include("footer.php"); ?> <script> // function myfun(){ // alert('hello'); // } 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['LAST'];?>'}}, "pagingType": "full_numbers", "bProcessing": true, "bServerSide": true, "sAjaxSource": "app/asnList-ajax.php?wid=<?php echo $wid; ?>&type=2", "ordering": false, "fnDrawCallback": function( oSettings ) { rowCount=oSettings.json.iTotalRecords; if(rowCount<1){ $("#export").addClass("d-none") } }, "aoColumns": [{ mData: 'warehouse_name' } , { mData: 'request_type' } , { mData: 'quotation_id' }, // { // mData: 'country_name' // }, { mData: 'price' }, { mData: 'currency' }, { mData: 'date', "sClass":"dataNormal" }, { mData: 'action' }, ] } ); } ); </script>