?
Current Path : /home1/savoy/www/savoyglobal.net/sec/draft/application/views/student/ |
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/www/savoyglobal.net/sec/draft/application/views/student/view_fee_posted.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <!-- BEGIN PAGE LEVEL STYLES --> <link rel="stylesheet" href="<?= base_url(); ?>assets/plugins/data-tables/DT_bootstrap.css" /> <!-- END PAGE LEVEL STYLES --> <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>Posted Bank Payment</div> <div class="actions"> <a href="#" onclick="addformdisplay('add_fee','student')" class="btn green"><i class="icon-plus"></i> Add</a> </div> </div> <div class="portlet-body"> <table class="table table-striped table-hover table-bordered" id="sample_4"> <tr> <th><input type="radio" name="unposted" id="sg1" value="2" checked="checked" onchange="viewdata('student', 'viewinstudentsearch', 'search_fee_posted', 'view_fee_posted', '1')"></th><th><label> Fee Payment - Allocated</label></th> <th><input type="radio" name="unposted" id="cr1" value="3" onchange="viewdata('student', 'viewinstudentsearch', 'search_fee_payment', 'view_fee', '1')"></th><th><label> Fee Payment - Unallocated</label></th> </tr> </table> <table class="table table-striped table-hover table-bordered" id="sample_3"> <thead> <tr> <th class="sl_th">Sl No</th> <th>Receipt No</th> <th>Student Name</th> <th>Student No</th> <th>Gender</th> <th>Nationality</th> <th>Batch Code</th> <th>Amount Paid</th> <th>Payment date</th> <th class="action_th">Pdf</th> <th class="action_th">RV</th> <th class="action_th">Edit</th> <th class="action_th">Delete</th> <th class="action_th">Unalocate Fee </th> </tr> </thead> <tbody> <?php $table = ""; $field = ""; $i = 0; foreach ($viewinfo->result() as $row) { $fee_paid_details = $this->mastermodel->get_data('fee_paid_details', $row->fee_id, 'fee_id'); $course_last_paid = 0; $registration_last_paid = 0; $extra_last_paid = 0; $book_last_paid=0; foreach ($fee_paid_details as $value) { if ($value['fee_type'] == "course") $course_last_paid = $value['amount_paid']; if ($value['fee_type'] == "registration") $registration_last_paid = $value['amount_paid']; if ($value['fee_type'] == "extraclass") $extra_last_paid = $value['amount_paid']; if ($value['fee_type'] == "books") $book_last_paid = $value['amount_paid']; } $reg_paid = $this->studentmodel->get_student_reg_fee_pending($row->student_id, $row->course_id); $reg_paid_amount= $reg_paid->reg_paid_amount; $paid = $this->studentmodel->get_student_fee_pending($row->student_id, $row->course_id); $paid_amount = $paid->paid_amount; $batch_id = $row->current_batch_id; $batch_details = $this->mastermodel->get_data_srow_joined('batch', 'course', 'course_id', 'course_id', $batch_id, 'batch_id'); if ($row->registration_fee != "" && $row->registration_fee > 0) $reg_fee = $row->registration_fee; else $reg_fee = $batch_details->fee; if ($row->course_fee != "" && $row->course_fee > 0) $course_fee = $row->course_fee; else $course_fee = $batch_details->course_fee; $reg_pending = $reg_fee - $reg_paid_amount + $registration_last_paid; $course_pending = $course_fee - $paid_amount + $course_last_paid; $i++; ?> <tr class="odd gradeX"> <td><?= $i; ?></td> <td> <a href="#" onclick="displayformdata('student','single_fee','<?= $row->fee_id; ?>','fee','fee_id','single_fee')"> <?= $row->fee_receipt_no ?> </a> </td> <td><?= $row->first_name . ' ' . $row->last_name ?></td> <td><?= $row->reg_no ?></td> <td><?=$row->gender;?></td> <td><?=$row->nationality;?></td> <td><?= $row->batch_no ?></td> <td><?= $row->total_amount ?></td> <td><?= $this->mastermodel->convertdatenormalformat($row->fee_date) ?></td> <td> <?= anchor("student/feereceipt/$row->fee_id", '<img src="' . base_url() . '/assets/img/pdf.png" title="PDF" width="20" height="20">', 'title="Receipt"'); ?> </td> <td> <?php if ($row->journal_id == 0) { ?> <a class="receipt_voucher" data-reg_pending="<?=$reg_pending?>" data-course_pending="<?=$course_pending?>" data-fee_id="<?= $row->fee_id; ?>"id="image_icon" href="#" > <img src="<?= base_url() ?>/assets/img/saldet.png" title="View" width="20" height="20" alt="View Entry" align = "center" /></a> <!-- <a href="#"><img src="<?= base_url() ?>assets/img/saldet.png" title="Reciept Voucher Post" width="20" height="20" alt="Edit" align = "center" class="inliexample2" onclick="check_pending_amount('<?=$reg_pending?>','<?=$course_pending?>','<?= $row->fee_id; ?>')" alt="" /> </a>--> <?php } ?> </td> <td> <?php if ($row->journal_id == 0) { ?> <a class="edit" href="#" onclick="editformdata('student','edit_fee','<?= $row->fee_id; ?>','fee','fee_id','edit_fee')">Edit</a> <?php } ?> </td> <td> <?php if ($row->journal_id == 0) { ?> <a class="delete" href="#" onclick="deletedata('fee',<?= $row->fee_id; ?>,'fee_id','student','viewinstudentsearch','search_fee_posted','view_fee_posted','<?= $table ?>','<?= $field ?>')">Delete</a> <?php } ?> </td> <td> <?php if ($row->journal_id != 0) { ?> <a class="search_details" data-journal_id="<?=$row->journal_id;?>" id="image_icon" href="#" > <img src="<?= base_url() ?>/assets/img/view-icon.png" title="View" width="20" height="20" alt="View Entry" align = "center" /></a> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <div style='display:none'> <div id="uploaddiv"></div> </div> <div id="ajax-modal" class="modal hide fade" tabindex="-1"></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 reg_pending = $(this).data('reg_pending'); var course_pending = $(this).data('course_pending'); var fee_id = $(this).data('fee_id'); if(reg_pending<0 || course_pending<0) { alert('Fee Payment Completed') } else{ $.ajax({ url : "<?= site_url('student/edit_fee') ?>/" + fee_id +"/fee/fee_id/post_fee_setting", success: function(data){ $modal.empty().html(data); $modal.modal(); } }); } }); $('.search_details').on("click",function(e){ e.preventDefault(); var $modal = $('<div id="payment_vouchar_div" class="modal hide fade" tabindex="-1"></div>'); var journal_id = $(this).data('journal_id'); $.ajax({ url : "<?= site_url('accounting/viewsingle_page') ?>/" + journal_id +"/search_fee_posted/view_receipt_fee_posted", success: function(data){ $modal.empty().html(data); $modal.modal(); } }); }); UIModals.init(); TableManaged.init(); }); </script>