<div class="tab-content"> <div class="tab-toggle-content active" id="1b"> <!-- new divs added --> <div class="applicnts-list-wrap "> <div class=""> <table id="tbl" class="display table-responsive"> <thead> <tr> <th>Sl.No</th> <th>Application No.</th> <th>Photo</th> <th>Name of Student</th> <th>Email</th> <th>Contact No.</th> <th>Course</th> <th>Application Date</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; foreach($new as $n){ ?> <tr> <td><?= $i; ?></td> <td><?= $n['applicationid']; ?></td> <td><img src="<?= base_url(); ?>assets_student/application/<?= $n['photo']; ?>" alt="Profile Picture" width="50px;" height="50px;"></td> <td><?= $n['name']; ?></td> <td><?= $n['email']; ?></td> <td><?= $n['mobile']; ?></td> <td><?= $n['course_name']; ?></td> <td><?= $n['registered_on']; ?></td> <td> <div class="sub_tabbtnsec"> <div class="sub_viewbtn" title="View"><a href="<?php echo base_url(); ?>admin/view_applicant/<?php echo $n['id']; ?>"><i class="fa fa-eye" aria-hidden="true"></a></i></div> <div class="sub_accbtn" title="Accept"><a href="<?php echo base_url(); ?>admin/process_application/<?php echo $n['id']; ?>/1"><i class="fas fa-check-circle"></i></a></div> <div class="sub_delbtn" title="Reject"><a href="<?php echo base_url(); ?>admin/process_application/<?php echo $n['id']; ?>/0"><i class="fas fa-times-circle"></i></a></div> </div> </td> </tr> <?php $i++; } ?> </tbody> </table> </div> </div> </div> <div class="tab-toggle-content" id="2b"> <div class="applicnts-list-wrap "> <div class=""> <table id="tbl1" class="display table-responsive"> <thead> <tr> <th>Sl.No</th> <th>Application No.</th> <th>Photo</th> <th>Name of Student</th> <th>Email</th> <th>Contact No.</th> <th>Course</th> <th>Application Date</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; foreach($approved as $app){ ?> <tr> <td><?= $i; ?></td> <td><?= $app['applicationid']; ?></td> <td><img src="<?= base_url(); ?>assets_student/application/<?= $app['photo']; ?>" alt="Profile Picture" width="50px;" height="50px;"></td> <td><?= $app['name']; ?></td> <td><?= $app['email']; ?></td> <td><?= $app['mobile']; ?></td> <td><?= $app['course_name']; ?></td> <td><?= $app['registered_on']; ?></td> <td> <div class="sub_tabbtnsec"> <div class="sub_viewbtn" title="View"><a href="<?php echo base_url(); ?>admin/view_applicant/<?php echo $app['id']; ?>"><i class="fa fa-eye" aria-hidden="true"></a></i></div> <div class="sub_accbtn" title="Accept"><a href="<?php echo base_url(); ?>admin/process_application/<?php echo $app['id']; ?>/1"><i class="fas fa-check-circle"></i></a></div> <div class="sub_delbtn" title="Reject"><a href="<?php echo base_url(); ?>admin/process_application/<?php echo $app['id']; ?>/0"><i class="fas fa-times-circle"></i></a></div> </div> </td> </tr> <?php $i++; } ?> </tbody> </table> </div> </div> </div> <div class="tab-toggle-content" id="3b"> <div class="applicnts-list-wrap "> <div class=""> <table id="tbl2" class="display table-responsive"> <thead> <tr> <th>Sl.No</th> <th>Application No.</th> <th>Photo</th> <th>Name of Student</th> <th>Email</th> <th>Contact No.</th> <th>Course</th> <th>Application Date</th> <th>Action</th> </tr> </thead> <tbody> <?php $i=1; foreach($rejected as $rej){ ?> <tr> <td><?= $i; ?></td> <td><?= $rej['applicationid']; ?></td> <td><img src="<?= base_url(); ?>assets_student/application/<?= $rej['photo']; ?>" alt="Profile Picture" width="50px;" height="50px;"></td> <td><?= $rej['name']; ?></td> <td><?= $rej['email']; ?></td> <td><?= $rej['mobile']; ?></td> <td><?= $rej['course_name']; ?></td> <td><?= $rej['registered_on']; ?></td> <td> <div class="sub_tabbtnsec"> <div class="sub_viewbtn" title="View"><a href="<?php echo base_url(); ?>admin/view_applicant/<?php echo $rej['id']; ?>"><i class="fa fa-eye" aria-hidden="true"></a></i></div> <div class="sub_accbtn" title="Accept"><a href="<?php echo base_url(); ?>admin/process_application/<?php echo $rej['id']; ?>/1"><i class="fas fa-check-circle"></i></a></div> <div class="sub_delbtn" title="Reject"><a href="<?php echo base_url(); ?>admin/process_application/<?php echo $rej['id']; ?>/0"><i class="fas fa-times-circle"></i></a></div> </div> </td> </tr> <?php $i++; } ?> </tbody> </table> </div> </div> </div> </div> <script> //table js $('#tbl').DataTable( { "lengthMenu": [[5,10, 25, 50, -1], [5,10, 25, 50, "All"]] } ); $('#tbl1').DataTable( { "lengthMenu": [[5,10, 25, 50, -1], [5,10, 25, 50, "All"]] } ); $('#tbl2').DataTable( { "lengthMenu": [[5,10, 25, 50, -1], [5,10, 25, 50, "All"]] } ); </script>