JezK
Edit File: pendingApplications.php
<?php $currentPage="pendingApplications"; include("header.php"); include("app/getPendingApplications.php"); if(isset($_SESSION['approveFail'])) { echo "<script>alert('Error!!! Unable to approve application. Internal server error.')</script>"; unset($_SESSION['approveFail']); } if(isset($_SESSION['approveSuccess'])) { echo "<script>alert('Application approved successfully.')</script>"; unset($_SESSION['approveSuccess']); } ?> <div id="page-wrapper"> <div class="container-fluid"> <!-- Page Heading --> <div class="row"> <div class="col-lg-12"> <h1 class="page-header"> <small>Pending Applications </small> </h1> <!--<ol class="breadcrumb"> <li class="active" style="color: rgb(106, 0, 0);" <i class="fa fa-dashboard"></i> Dashboard </li> </ol>--> </div> </div> <!-- /.row --> <div class="row"> <div class="table-responsive"> <div class="col-md-12"> <h3>New Applications</h3> <table id="example" class="table table-striped table-bordered" cellspacing="0" width="100%"> <thead> <tr> <th>S.No</th> <th>Application</th> <th> S-Ref id</th> <th>Name </th> <th>Renewal Date</th> <th>Details</th> </tr> </thead> <tbody> <?php echo $pendingApplications; ?> </tbody> </table> </div> </div> </div> <!-- /.row --> <!-- /.row --> <div class="row"> <div class="table-responsive"> <div class="col-md-12"> <h3>Submitted Applications for Renewal</h3> <table id="example1" class="table table-striped table-bordered" cellspacing="0" width="100%"> <thead> <tr> <th>S.No</th> <th>Application</th> <th> S-Ref id</th> <th>Name </th> <th>Renewal Date</th> <th>Details</th> </tr> </thead> <tbody> <?php echo $submittedRenewalApplications; ?> </tbody> </table> </div> </div> </div> <!-- /.row --> <!--<div class="row"> <div class="table-responsive"> <div class="col-md-12"> <h3>Expired Applications</h3> <table id="example2" class="table table-striped table-bordered" cellspacing="0" width="100%"> <thead> <tr> <th>S.No</th> <th>Application</th> <th>R-Ref id</th> <th>Name </th> <th>Expiry Date</th> <th>Details</th> </tr> </thead> <tbody> <tr> <td>1.</td> <td>B.C </td> <td>x1234</td> <td>BSTV</td> <td>26-06-17</td> <td><a href="viewExpiredNotifications.php"><input type="button" value="View" class="btn btn-warning"></a></td> </tr> </tbody> </table> </div> </div> </div> <!-- /.row --> </div> <!-- /.container-fluid --> </div> <!-- /#page-wrapper --> <?php include("footer.php");?>