Advertisement
Guest User

view_student_fee_status

a guest
Nov 28th, 2011
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. <h1>Payment Status</h1>
  2. <?php if(count($records) > 0) { ?>
  3.  
  4.  
  5. <table id="table1" class="gtable sortable">
  6. <thead>
  7. <tr>
  8.  
  9. <th>S.N</th>
  10. <th>Invoice ID</th>
  11. <th>Transaction Description</th>
  12. <th>Received Date</th>
  13. <th>Debit</th>
  14. <th>Credit</th>
  15. <th>Balance</th>
  16. </tr>
  17. </thead>
  18.  
  19. <?php $i = $this->uri->segment(2) + 0; foreach ($records as $row){ $i++; ?>
  20. <tbody>
  21.  
  22. <?php $mydate= $row['period']; $month = date("F",strtotime($mydate)); $year = date("Y",strtotime($mydate)); ?>
  23. <tr>
  24. <td><?php echo $i; ?>.</td>
  25. <td><?php echo $row['invoiceid'];?></td>
  26. <td> <a href="<?php echo base_url(); ?>student_fee_status/fee_types/<?php echo $row['paymentid']; ?>" rel="1" class="newWindow" >Total Fee For <?php echo $month ;?>, <?php echo $year ;?> </a></td>
  27. <td><?php echo $row['received_date'];?></td>
  28. <td><?php echo $row['totalamount'];?></td>
  29. <td><?php echo "0";?></td>
  30. <td><?php echo $row['totalamount'];?></td>
  31.  
  32.  
  33.  
  34. </tr>
  35.  
  36. <tr>
  37. <td><?php echo $i; ?>.</td>
  38. <td><?php echo $row['invoiceid'];?></td>
  39. <td>Payment Received </td>
  40. <td><?php echo $row['received_date'];?></td>
  41. <td><?php echo "0";?></td>
  42. <td><?php echo $row['amountpaid'];?></td>
  43.  
  44. <td><?php $balance=$row['totalamount']-$row['amountpaid'];
  45. if($balance>0){echo "<font color=\"red\">$balance</font>"; }
  46. else { echo $balance ; }
  47.  
  48.  
  49. ?>
  50.  
  51.  
  52.  
  53.  
  54. </td>
  55.  
  56.  
  57. </tr>
  58. <?php } ?>
  59.  
  60.  
  61.  
  62.  
  63. </tbody>
  64.  
  65.  
  66.  
  67. </table>
  68. <?php } ?>
  69. <div class="tablefooter clearfix">
  70.  
  71. <div class="pagination">
  72. <?php echo $this->pagination->create_links(); ?>
  73. </div>
  74.  
  75. </div>
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement