PageRenderTime 44ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/system/application/views/total_income/index.php

https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework
PHP | 92 lines | 88 code | 4 blank | 0 comment | 2 complexity | ed3855c5d4d5e5e7fcf634d651483d9e MD5 | raw file
  1. <div id="right">
  2. <?php
  3. $formAttrib = array('id' => 'search_enrollee', 'class' => 'form-inline', 'method' => 'GET');
  4. echo form_open('', $formAttrib);
  5. ?>
  6. <div class="form-group">
  7. <?=course_dropdown('course_id',isset($course_id)?$course_id:'',"", 'All Courses')?>
  8. </div>
  9. <div class="form-group">
  10. <?=year_dropdown('year_id',isset($year_id)?$year_id:'',"", 'All Years')?>
  11. </div>
  12. <?php
  13. echo form_hidden('semester_id', $this->open_semester->id);
  14. echo form_hidden('sy_from', $this->open_semester->year_from);
  15. echo form_hidden('sy_to', $this->open_semester->year_to);
  16. echo form_hidden('is_paid', 1);
  17. ?>
  18. <?php echo form_submit('submit', 'Search'); ?>
  19. <?php echo form_submit('submit', 'Print'); ?>
  20. <?echo form_close();?>
  21. <br>
  22. <?echo isset($links) ? $links : NULL;?>
  23. <?php
  24. if(isset($search)){
  25. ?>
  26. <br />
  27. <table>
  28. <tr>
  29. <th>OR. #</th>
  30. <th>Date of Payment</th>
  31. <th>Student ID</th>
  32. <th>Name</th>
  33. <th>Year</th>
  34. <th>Course</th>
  35. <th>Payment Amount</th>
  36. </tr>
  37. <tbody>
  38. <?php
  39. if($search)
  40. {
  41. foreach($search as $student):
  42. $l = _se($student->id);
  43. ?>
  44. <tr>
  45. <td><?php echo $student->or_no; ?></td>
  46. <td><?php echo date('m-d-Y', strtotime($student->date)); ?></td>
  47. <td><?php echo $student->studid; ?></td>
  48. <td><?php echo ucfirst($student->name); ?></td>
  49. <td><?php echo $student->year; ?></td>
  50. <td><?php echo $student->course; ?></td>
  51. <td><?php echo number_format($student->total, 2, '.', ''); ?></td>
  52. </tr>
  53. <?php
  54. endforeach;
  55. }
  56. else
  57. {
  58. ?>
  59. <tr>
  60. <td colspan="5">
  61. Student Not Found
  62. </td>
  63. </tr>
  64. <?php
  65. }
  66. ?>
  67. </tbody>
  68. <tr>
  69. <th>OR. #</th>
  70. <th>Date of Payment</th>
  71. <th>Student ID</th>
  72. <th>Name</th>
  73. <th>Year</th>
  74. <th>Course</th>
  75. <th>Payment Amount</th>
  76. </tr>
  77. </table>
  78. <?php
  79. }
  80. ?>
  81. </div>
  82. <div class='well'>
  83. <div class="row">
  84. <div class="col-md-10" style='text-align:right'><b>Total Income</b></div>
  85. <div class="col-md-2"><b><?=number_format($total_income, 2, '.',' ')?></b></div>
  86. </div>
  87. </div>
  88. </div>