?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec_old/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/public_html/savoyglobal.net/sec_old/application/views/student/view_fee_posted.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); ?> <div class="icons_main"> <div class="icons"> <img src="<?= base_url() ?>assets/images/add.png" title="Add Fee to batch" class="clickimage" onclick="addformdisplay('add_fee','student')" alt="Add Fee to batch" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Fee Payment</h4> </div> </div> <div class="clean"></div> <div class="grid_12"> <div class="box"> <div class="header"> </div> <div class="content no-padding"> <table class="table"> <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> </div> </div> </div> <div class="grid_12"> <div class="box"> <div class="header no-icon main">Fee Payment - Allocated</div> <div class="content"> <table id="table-example" class="table"> <thead> <tr> <th id="sl">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 style="width:180px;">Action</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> <td id="sl"> <?= $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 id="actions_3"> <div class="elements"><?= anchor("student/feereceipt/$row->fee_id", '<img src="' . base_url() . '/assets/images/pdf.png" title="PDF" width="20" height="20">', 'title="Receipt"'); ?></div> <?php if ($row->journal_id == 0) { ?> <div class="elements"> <img src="<?= base_url() ?>assets/images/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="" /> </div> <div class="elements"> <img src="<?= base_url() ?>assets/images/edit-icon.gif" title="Edit" width="20" height="20" alt="Edit" align = "center" class="clickimage" onclick="editformdata('student','edit_fee','<?= $row->fee_id; ?>','fee','fee_id','edit_fee')" alt="" /> </div> <div class="elements"><img src="<?= base_url() ?>assets/images/delete-icon.png" title="Delete" width="20" height="20" onclick="deletedata('fee',<?= $row->fee_id; ?>,'fee_id','student','viewinstudentsearch','search_fee_posted','view_fee_posted','<?= $table ?>','<?= $field ?>')" alt="Delete" align = "center"/></div> <?php } else { ?> <div class="elements"> <img src="<?= base_url() ?>/assets/images/view-icon.png" id="editclass" title="View" width="20" height="20" alt="View Entry" align = "center" onclick="viewthis_unpost(<?= $row->journal_id ?>, 'search_fee_posted', 'view_receipt_fee_posted')" style="cursor: pointer" class="clickimage1" /> </div> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <div class="actions-left"> <div style="display:none"> <div id="empdiv"></div> </div> <div style="display:none"> <div id="uploaddiv"></div> </div> </div>