JezK
Edit File: comingshipment.php
<?php include_once("./app/checkSession.php"); // print_r($_SESSION); // exit; if(empty($_SESSION['user_id'])&& $_SESSION['user_id']=='') { header("Location: ../owner_login.php"); } include("header.php"); if(!isset($_GET['wid'])){ $param=''; }else{ $id=isset($_GET['wid']); $param='?id='.$id; } $type = isset($_REQUEST['type'])?$_REQUEST['type'] :""; ?> <style> .dataNormal { /* white-space: normal !important; */ width: 100px !important; } @media screen and (min-width: 768px) and (max-width: 1023px){ .mobile-alignment { margin-bottom: 10px !important; margin-left: -41px; } } </style> <div class="container px-md-5 px-4"> <div class="row px-2 px-md-2 align-items-center"> <div class="col-md-6 col-lg-4"> <h5><?php echo $lang['COMING_SHIPMENT'];?></h5> </div> </div> </div> <div class="container first-position myquotation-table"> <div class="container mt-2 px-md-5 px-3 position-2"> <div class="row px-0 align-items-center"> <div class="col-md-5"></div> <!-- <div class="createnewbutton"> <button class="dt-button buttons-csv buttons-html5" type="button" title="CSV"> <span> New ASN</span> </button> </div> --> <div class="createnewbutton"> <div class="col-md-2 text-md-right my-md-0 my-3 position-chnge z-in"> <!-- <div class="button-adsd"> <a href="createnewasn.php"><input class="btn btn-primary" type="submit" name="editdetails" value="New ASN" id="submit"></a> </div> --> </div> </div> </div> </div> <div class="container mt-5 "> <div class="table-responsive p-md-4 p-0"> <table id="example" class="display bg-white tbl-border table-borderless comingshipmentTable" style="width:100%"> <thead> <tr> <th><?php echo $lang['SNO'];?></th> <th><?php echo $lang['WAREHOUSE_NAME'];?></th> <th><?php echo $lang['REQUEST_TYPE'];?></th> <th><?php echo $lang['QUOTATION_ID'];?></th> <th style="vertical-align: top;"><?php echo $lang['QUOTATION_VALUE'];?></th> <th style="vertical-align: top;"><?php echo $lang['CURRENCY'];?></th> <th style="vertical-align: top;"><?php echo $lang['DATE'];?></th> <th style="vertical-align: top;"><?php echo $lang['DETAILS'];?></th> </tr> </thead> </table> </div> <div class="container position-relative"> <div class="row export_csv"> <div class="col-md-3 offset-md-8 pr-0 button-alignment"> <a href="export_comingShipment.php" id="export" class="btn btn-primary mobile-alignment"><i class="fa fa-download"></i><span class="pl-2"><?php echo $lang['EXPORT.XLSX'];?></span></a> </div> </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('#example').DataTable({ "processing": true, "dataSrc": "", "sDom": 'Rfrtlip', 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<?php echo $param ?>", "ordering": false, "fnDrawCallback": function( oSettings ) { rowCount=oSettings.json.iTotalRecords; if(rowCount<1){ $("#export").addClass("d-none") } }, "aoColumns": [{ mData: 'id' }, { mData: 'warehouse_name' }, { mData: 'request_type' }, { mData: 'quotation_id' }, // { // mData: 'country_name' // }, { mData: 'price' }, { mData: 'currency' }, { mData: 'date', "sClass": "dataNormal" }, { mData: 'action' } ] }); var type = "<?php echo $type; ?>"; if (type != 2) { $("#example_filter").before( "<div class='col-md-9 text-md-right new-button my-3 mt-md-0'><a href='createnewasn.php'><input class='btn btn-primary mt-0' type='submit' name='editdetails' value='<?php echo $lang['NEW_ASN'] ?>' id='submit'></a></div>" ); } </script> <style> input#submit { padding: 5px 20px; margin-top: 10px; font-size: 17px !important; background: linear-gradient(to bottom, rgba(230, 230, 230, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%); background-color: #3663c8; } #export { margin-bottom: -35px; } .currency tbody td:nth-child(5){ max-width: 100% !important; display: grid !important; grid-template-columns: 40% 20% !important; /* margin-left: 35px !important; */ padding-left: 20% !important; /* margin: 0; */ } .priceValue { overflow: hidden !important; text-overflow: ellipsis !important; /* display: inline-block; */ } .currencyType { position:unset !important; margin-left:0px !important; } </style>