JezK
Edit File: issuetranscationview.php
<?php include_once("./app/checkSession.php"); if(empty($_SESSION['user_id'])&& $_SESSION['user_id']=='') { header("Location: ../owner_login.php"); } include("header.php"); $param=''; if(isset($_GET['wid']) && $_GET['wid']!=''){ $param='?wid='.$_GET['wid']; } ?> <style> .previous { border-radius: 7px !important; background-color: #3663c8 !important; border-color: #3663c8 !important; font-weight: bold; color: white !important; } .next { border-radius: 7px !important; background-color: #3663c8 !important; border-color: #3663c8 !important; font-weight: bold; color: white !important; } </style> <div class="container"> <div class="container mt-3 px-md-4 px-0 pb-3"> <a href="javascript:history.go(-1)"><img src="images/back_main.png" class="pb-3"></a> <div class="row"> <div class="col-md-4"> <h5><?php echo $lang['ISSUING_TRANSACTION_DETAILS'];?></h5> </div> </div> <div class="col-md-4"> </div> <div class="col-md-4"> </div> </div> </div> <div class="container "> <div class="table-responsive p-md-4 p-0 myquotation-table"> <table id="example" class="display bg-white tbl-border table-borderless display nowrap" style="width:100%"> <thead> <tr> <th><?php echo $lang['SNO'];?></th> <th><?php echo $lang['QUOTATION_ID'];?></th> <th><?php echo $lang['CUSTOMER_NAME'];?></th> <th style="width:150px"><?php echo $lang['COUNTRY'];?></th> <th style="width:200px"><?php echo $lang['EMAIL'];?></th> <th><?php echo $lang['ACTION'];?></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-8 pl-0 button-alignment"> <a href="export_issueTransaction.php<?php echo $param ?>" id="export" class="btn btn-primary mobile-alignment fa fa-download"><i ></i><span class="pl-2"><?php echo $lang['EXPORT.XLSX'];?></span></a> </div> </div> </div> <!-- footer --> <?php include("footer.php"); ?> <style type="text/css"> /* #example tr.active td{ background-color: #ffd5d5; } */ #example_length { display: none !important; } </style> <script> 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/view-issuetransaction-ajax.php?wid=<?php echo $_GET['wid']?>&type=2", "ordering": false, "fnDrawCallback": function( oSettings ) { rowCount=oSettings.json.iTotalRecords; if(rowCount<1){ $("#export").addClass("d-none") } }, "aoColumns": [{ mData: 'id' }, { mData: 'quotation_id' }, { mData: 'customer_name' }, { mData: 'country' }, { mData: 'email' }, { mData: 'action' } ] }); }); </script> <script src="https://code.jquery.com/jquery-3.5.1.js" type="text/javascript"></script> <script src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js" type="text/javascript"></script> <script src="https://cdn.datatables.net/buttons/1.6.5/js/dataTables.buttons.min.js" type="text/javascript"></script> <script src="https://cdn.datatables.net/buttons/1.6.5/js/buttons.flash.min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js" type="text/javascript"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js" type="text/javascript"></script> <script src="https://cdn.datatables.net/buttons/1.6.5/js/buttons.html5.min.js" type="text/javascript"></script> <script src="https://cdn.datatables.net/buttons/1.6.5/js/buttons.print.min.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css"> <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/buttons/1.6.5/css/buttons.dataTables.min.css">