JezK
Edit File: countriesManagement.php
<?php include("header.php"); $countries = $videocon->getCountry(); // print_r($countries);exit; ?> <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=""> --> <!--ENd calender --> <div class="row mt-5 pt-4"> <div class="col-xl-6 pt-2"> <!-- <a class="selectAll buttonStyle">Select All</a> <a class="unSelectAll buttonStyle">Unselect All</a> <a class="deleteAll buttonStyle">Delete All</a> --> </div> <!-- <div class="col-xl-6 d-flex justify-content-end"> <a href="addCountry.php" class="btn btn-primary">Add country</a> </div> --> </div> <div class="table-responsive"> <table id="dataTable" class="table table-striped table-borderless " style="width:100%"> <thead class="tableBackground"> <tr> <!-- <th></th> --> <th>S.No</th> <th>COUNTRY NAME</th> <th>ACTION</th> </tr> </thead> <tbody> <?php $i=0; foreach($countries as $k=>$v){ $i++; ?> <tr> <!-- <td> <label class="container1"> <input type="checkbox" class="checkmark"> <span class="checkmark1"></span> </label> </td> --> <td><?php echo $i?>.</td> <td><?php echo $v['name'];?></td> <td> <span><a href="editCountry.php?cid=<?php echo $videocon->encrypt_decrypt('encrypt',$v['id']);?>" class="viewStyles">Edit</a></span> <!-- <span><a href="#" class="viewStyles">Delete</a></span> --> </td> </tr> <?php }?> </tbody> </table> </div> <!-- </div> --> </div> </section> <?php include("footer.php");?>