?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/home/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : /home1/savoy/public_html/savoyglobal.net/sec/application/views/home/studentfeealert.php |
<script> function remove_fee_alert(student_batch_id, row_id){ $.ajax({ type: "GET", dataType: "json", url: "<?= site_url('master/remove_fee_alert/') ?>/" + student_batch_id, success: function(msg) { alert("Alert Removed Successfully"); $('#'+row_id) .hide(); } }); } </script> <?php if (!empty($fee_alert['result']) && count($fee_alert['result']) > 0) { ?> <div class="row-fluid"> <div class="span12"> <!-- BEGIN EXAMPLE TABLE PORTLET--> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"> <i class="icon-cogs"></i>Fee Pending Alerts - <?= $batch->batch_no; ?> </div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" > <tr> <th>Sl No</th> <th>Reg No</th> <th>Student Name</th> <th>Gender</th> <th>Batch Name</th> <th>Nationality</th> <th>Pending Amount</th> <th>Remove</th> </tr> <?php $i = 1; foreach ($fee_alert['result'] as $value) { $scf_course_fee = 0; $total_amount = 0; $total_paid = 0; $extra = 0; $student_batch_course_fee = $value['course_fee']; $books_fee = $value['books_fee']; $registration_fee = $value['registration_fee']; $recuring = $value['recurring']; $no_sessions = $value['no_sessions']; $attendance = $this->mastermodel->get_attendance_student_batch_id($value['student_id'], $this->mastermodel->convertdateformat($value['date'], $value['current_batch_id'])); if (!empty($attendance)) { $att_date = $attendance[0]; $date = $att_date->attendance_date; $increment = 0; if ($no_sessions > 0) { while ($increment < count($attendance)) { $date = $attendance[$increment]->attendance_date; $course_fee_row = $this->mastermodel->get_student_course_fee_on_date($date, $value['student_batch_id']); if (!empty($course_fee_row) && $course_fee_row != '') { $scf_course_fee += $course_fee_row->scf_course_fee; } $increment += $no_sessions; } } else { $course_fee_row = $this->mastermodel->get_student_course_fee_on_date($date, $value['student_batch_id']); if (!empty($course_fee_row) && $course_fee_row != '') { $scf_course_fee += $course_fee_row->scf_course_fee; } } } if (isset($fee_alert['extra_fee'][$value['student_id']][$value['current_batch']]['extra_fee'])) $extra = $fee_alert['extra_fee'][$value['student_id']][$value['current_batch']]['extra_fee']; else { $extra = 0; } $total_amount = $scf_course_fee + $student_batch_course_fee + $registration_fee + $extra; $total_paid = $value['total_amount']; if ($total_paid < $total_amount) { $pending = $total_amount - $total_paid; $deactivate = $this->studentmodel->check_deactivate($value['current_batch'], $value['student_id'], date("Y-m-d")); if ($deactivate == 0) { ?> <tr id='close_alert_<?= $i ?>'> <td><?= $i ?></td> <td><?= $value['reg_no'] ?></td> <td><?= $value['first_name'] . ' ' . $value['last_name'] ?></td> <td><?= $value['gender'] ?></td> <td><?= $value['batch_no'] ?></td> <td><?= $value['nationality'] ?></td> <td><?= $pending; ?></td> <td><img class="clickimage" src="<?= base_url() ?>assets/img/portlet-remove-icon.png" title="Back" onclick="remove_fee_alert(<?= $value['student_batch_id'] ?>,'close_alert_<?= $i ?>')" alt="Back" align = "center" width="16" height="16" style="display: block;margin: 0 auto;" /></td> </tr> <?php $i++; } } } ?> </table> </div> </div> </div> </div> <?php } ?>