?
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/student_fee_alert.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 (isset($fee_alert['result']) && count($fee_alert['result']) > 1) { ?> <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 class="tools"> <a href="#" onclick="view_student_alert('fee_alert','0')" class="remove"></a> </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 = 0; $batch_list = array(); foreach ($fee_alert['result'] as $value) { if (isset($fee_alert['attendence'][$value['student_id']][$value['current_batch']]['alert_status'])) $att = $fee_alert['attendence'][$value['student_id']][$value['current_batch']]['alert_status']; else { $att = 0; } if (isset($fee_alert['extra_fee'][$value['student_id']][$value['current_batch']]['extra_fee'])) $att = $fee_alert['extra_fee'][$value['student_id']][$value['current_batch']]['extra_fee']; else { $extra = 0; } $total_amount = $value['course_fee'] + $value['registration_fee'] + $extra; $total_paid = $value['total_amount']; // $value['total_amount'] < $total_amount && if ($total_paid < $total_amount && $att > $value['no_sessions']) { $i++; $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 } } } ?> </table> </div> </div> </div> </div> <?php } ?>