<table class="table table-striped table-bordered table-sm"> <thead> <tr> <th>FeeType</th> <th>FeePayable</th> <th>PaidAmount</th> <th>Balance</th> <th>PaidDate</th> <th>Paid</th> </tr> </thead> <tbody> <?php $feedails = getFeeDetail($row['studentid']); $sessionid = null; foreach($feedails as $obj){ if($obj['sessionid'] != $sessionid || $sessionid == null){ ?> <tr class="bg-dark text-white"> <td colspan="6"><?=$obj['session']; ?></td> </tr> <tr> <td><?=$obj['feetype'];?></td> <td><?=$obj['feepayable'];?></td> <td><?=$obj['paidamount'];?></td> <td><?=$obj['balance'];?></td> <td><?=$obj['paiddate'];?></td> <td><?php if($obj['paid'] == 1 || $obj['paid'] == 2) { ?> Fee Paid <?php } else { ?> Not Paid <?php } ?></td> </tr> <?php $sessionid = $obj['sessionid']; } else { ?> <tr> <td><?=$obj['feetype'];?></td> <td><?=$obj['feepayable'];?></td> <td><?=$obj['paidamount'];?></td> <td><?=$obj['balance'];?></td> <td><?=$obj['paiddate'];?></td> <td><?php if($obj['paid'] == 1 || $obj['paid'] == 2) { ?> Fee Paid <?php } else { ?> Not Paid <?php } ?></td> </tr> <?php } } ?> </tbody> </table>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)