?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/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/eduplus2/application/views/home/student_fee_alerts.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('commonjsfiles'); ?> <script> scrollToElement($('#dashboard_alert_div')); function scrollToElement(ele) { $(window).scrollTop(ele.offset().top).scrollLeft(ele.offset().left); } function close_alert(emp_id,row_id) { if (confirm("Are you sure you want to remove the alert?")) { $.ajax({ type: "POST", url: "<?= site_url() ?>"+'/settings/alert_close/'+emp_id+"/fee_pending/", success: function(msg) { $('#'+row_id) .hide(); } }); } } </script> <!-- BEGIN PAGE LEVEL STYLES --> <!-- END PAGE LEVEL STYLES --> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Fee Pending Alerts</div> <div class="tools"> <a href="#" onclick="view_page('home','fee_pending_alerts','dashboard_alert_div')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <table id="table-example" class="table table-striped table-hover table-bordered"> <thead> <tr> <th>SL NO</th> <th>Reg NO</th> <th>Student Name</th> <th>Total Fee</th> <th>Pending Fee</th> <th>Remove</th> </tr> </thead> <tbody> <?php $fee_alert = $this->mastermodel->fee_pending_alert($class_name_id); $i = 1; if (isset($fee_alert['result_list'])) { foreach ($fee_alert['result_list'] as $value) { $paid = $fee_alert['result_list'][$value['student_class_id']]['fee_paid']; ?> <tr id="close_alert_<?= $i ?>"> <td><?= $i ?></td> <td> <a class="receipt_voucher" data-student_class_id="<?= $value['student_class_id']; ?>"id="image_icon" href="#" > <?= $value['reg_no'] ?></a> </td> <td><?= $value['first_name'] ." ". $value['last_name'] ?></td> <td><?= $fee_alert['result_list'][$value['student_class_id']]['fee'] ?></td> <td><?= $fee_alert['result_list'][$value['student_class_id']]['fee'] - $paid ?></td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" onclick='close_alert("<?= $value['student_class_id'] ?>","close_alert_<?= $i ?>")' title="Delete Row"/> </td> </tr> <?php $i++; } } ?> </tbody> </table> <div id="empdiv"></div> <!-- END FORM--> </div> <script> jQuery(document).ready(function() { $('.receipt_voucher').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal container hide fade" tabindex="-1"></div>'); var student_class_id = $(this).data('student_class_id'); $.ajax({ url : "<?= site_url('student/student_fee_details') ?>/" + student_class_id +"/student_class/student_class_id/student_fee_details", success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); UIModals.init(); TableManaged.init(); }); </script> </div> </div> </div>