JezK
Edit File: payment-gateways.php
<?php include("header.php"); $countriesPaymentGateways = $videocon->countriesPaymentGateway(); ?> <style> div.dataTables_wrapper div.dataTables_filter { position: absolute; top: 132px; } </style> <section class="section-padding"> <div class="container mt-0 mb-5 mx-3 pt-2 bg-white"> <div class="row mt-5 pt-4"> <div class="col-xl-6 pt-2"> <a> </a> <a> </a> <a> </a> </div> <div class="col-xl-6 d-flex justify-content-end"> <a href="payment-gateway-update.php" class="btn btn-primary">Add Payment</a> </div> </div> <div class="table-responsive"> <table id="dataTable" class="table table-striped table-borderless " style="width:100%"> <thead class="tableBackground"> <tr> <th>S.No</th> <th>Country</th> <th>Payment Gateway</th> <th>Currency</th> <th>Date</th> <th>ACTION</th> </tr> </thead> <tbody> <?php $j = 0; foreach ($countriesPaymentGateways as $k => $v) { $j++; ?> <tr> <td><?php echo $j; ?></td> <td><?php echo $v['country_name']; ?></td> <td><?php echo $v['payment_gateway']; ?></td> <td><?php echo $v['country_currency']; ?></td> <td><?php echo date('m-d-Y', strtotime($v['date'])); ?></td> <td> <span><a href="payment-gateway-update.php?pid=<?php echo $videocon->encrypt_decrypt('encrypt', $v['id']); ?>" class="viewStyles">Edit</a></span> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </section> <?php include("footer.php"); ?>