?
Current Path : /home1/savoy/www/oscarerp.com/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/oscarerp.com/application/views/student/student_fee_details_1.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $academic_year_id = $this->mastermodel->get_single_field_value('academic_year', 'academic_year_id', 'academic_year_year', $academic_year); $term_academic_details = $this->mastermodel->get_data_dual_srow('term_academic_details', $term, 'term_id', $academic_year_id, 'academic_year_id'); var_dump($term_academic_details).'uuu';echo "p"; if(!empty($term_academic_details)){ ?> <div class="grid_6"> <div class="box"> <div class="header main no-icon"> Fee Payment </div> <div class="content no-padding"> <div class="section _100"> <label>Receipt No</label> <div> <input type="text" name="" id="" class="" readonly="readonly" placeholder="--Auto Generated--"/> </div> </div> <div class="section _100"> <label>Date</label> <div> <input type="text" name="fee_date" id="fee_date" class="required calfocus " value="<?= date('d-m-Y'); ?>"/> </div> </div> <div class="section _100"> <label>Payment Mode</label> <div> <select name="payment_mode" id="payment_mode" class="required chzn-done" onchange="select_payment_mode(this.value, 'payment_mode_div','')"> <?php $payment_type = $this->mastermodel->getdatas('finance_payment_types', 'payment_type_id', 'asc'); foreach ($payment_type as $value) { echo '<option value="' . $value['payment_type_id'] . '">' . $value["payment_type"] . '</option>'; } ?> </select> </div> </div> <div class="section _100"> <label>Remarks</label> <div> <textarea name="remarks" id="remarks" class=""></textarea> </div> </div> </div> </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"> <thead> <tr> <th>Sl</th> <th>Fee Particular</th> <th>Payment Mode</th> <th>Fee</th> <th>Amount Paid</th> <th>Amount</th> </tr> </thead> <tbody> <?php $i = 1; var_dump($term_academic_details); foreach ($student_fee_details as $fee_list) { $paid=0; $student_class_id=$fee_list['student_class_id']; $start = $term_academic_details->term_start_date; $end = $term_academic_details->term_end_date; $dt = $term_academic_details->term_start_date; $fee_id = $fee_list['student_class_fee_id']; ?> <tr> <td><?= $i ?></td> <td><?= $fee_list['fee_particular_name'] ?></td> <?php $monthly_fee_id = 0; if (isset($student_monthly_fee_details[$fee_list['student_class_fee_id']])) { $monthly_fee_id = $student_monthly_fee_details[$fee_list['student_class_fee_id']][0]['student_monthly_fee_id']; } if ($fee_list['payment_type'] == "monthly") { $k = 0; while (strtotime($dt) <= strtotime($end)) { $payment_for=$dt; $month = date('M', strtotime($dt)); $year = date('Y', strtotime($dt)); $month_amount = $this->studentmodel->get_student_monthly_wef_date($fee_list['student_class_id'], $dt); $amount = $month_amount[$fee_list['student_class_fee_id']][0]['amount']; if ($k > 0) { ?> <tr> <td></td> <td></td> <?php } ?> <td> <?= ($k == 0) ? $fee_list['payment_type'] . '<br/>' : "" ?> <?= $month . '-' . $year ?> <input type="hidden" name="payment_for_<?= $i ?>" value=" <?= $dt ?>"/> </td> <td> <input readonly="readonly" name="student_class_fee_<?= $i ?>" id="student_class_fee_<?= $i ?>" value="<?= $amount ?>"/> <input type="hidden" name="student_class_fee_id_<?= $i ?>" id="student_class_fee_id_<?= $i ?>" value="<?= $fee_id ?>"/> </td> <td> <?php $amount_paid=0; if(isset($student_fee_paid_details[$student_class_id][$fee_id][$payment_for])){ $paid=$student_fee_paid_details[$student_class_id][$fee_id][$payment_for]; $amount_paid=$paid['amount_paid']; } ?> <input name="paid_amount_<?= $i ?>" id="paid_amount_<?= $i ?>" value="<?=$amount_paid?>" readonly="readonly"/> </td> <td> <input name="amount_<?= $i ?>" id="amount_<?= $i ?>" onblur="checkPendingAmount('<?=$i?>')"/> </td> </tr> <? $i++; $k++; $dt = date('Y-m-01', strtotime("+1 months", strtotime($dt))); } } else { $amount = $fee_list['fee_amount']; $amount_paid=0; if(isset($student_fee_paid_details[$student_class_id][$fee_id]['0000-00-00'])){ $paid=$student_fee_paid_details[$student_class_id][$fee_id]['0000-00-00']; $amount_paid=$paid['amount_paid']; } ?> <td><?= $fee_list['payment_type'] ?> <input type="hidden" name="payment_for_<?= $i ?>" value=" <?= '0000-00-00' ?>"/> </td> <td> <input type="" readonly="readonly" name="student_class_fee_<?= $i ?>" id="student_class_fee_<?= $i ?>" value="<?= $amount ?>"/> <input type="hidden" name="student_class_fee_id_<?= $i ?>" id="student_class_fee_id_<?= $i ?>" value="<?= $fee_id ?>"/> </td> <td> <input name="paid_amount_<?= $i ?>" id="paid_amount_<?= $i ?>" value="<?=$amount_paid?>" readonly="readonly"/> </td> <td> <input type="text" name="amount_<?= $i ?>" id="amount_<?= $i ?>" onblur="checkPendingAmount('<?=$i?>')"/> </td> </tr> <?php $i++; } } ?> </tbody> </table> </div> </div> </div> <div class="grid_12"> <div class="box" id='payment_mode_div'> </div> </div> <div class="grid_12"> <div class="box"> <div class="content no-padding"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" value="<?=$i?>" name="index"/> <input type="hidden" name="resfunction" value="search_fee_payment"/> </div> <div class="actions-right"> <button style="margin-left: 130px;" type="submit" id="submit" class="clickimage" onclick="checkdatavalidity($('input#student_id').val(), '#student,#student_id', 'No existing student selected'); checkdatavalidity($('input#batch_id').val(), '#batch,#batch_id', 'No existing Batch selected');addformdata('validateform')">Save</button> </div> </div> </div> </div> </div> <?php }else{ ?> <div class="grid_12"> <div class="box"> <div class="content no-padding"> Set Academic Details for <?=$student_batch_details->term_name?> for <?=$academic_year?> </div> </div> </div> <?php } ?>