?
Current Path : /home1/savoy/www/savoyglobal.net/eldertree/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/eldertree/application/views/student/allocate_fee_payment.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?> <script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script> <?php $this->load->view('documentreadyfunctions'); ?> <script> function checkPendingAmountUnposted(index){ var amount=parseInt($('#amount_'+index).val()); if(amount!="" && amount>0){ var pending_amount=parseInt($('#student_class_fee_'+index).val())-parseInt($('#paid_amount_'+index).val()); if(amount>parseInt(pending_amount)){ alert("Amount could not exceed pending amount"); $('#amount_'+index).val(0) } } else{ $('#amount_'+index).val(0) } } </script> <!-- BEGIN PAGE LEVEL STYLES --> <!-- END PAGE LEVEL STYLES --> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Allocate Fees</div> <div class="tools"> <a href="#" onclick="viewdata('student','viewinstudentsearch','search_fee_payment','view_fee','<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); echo form_open('student/addinstudent/allocate_fee_payment/view_fee/1', $attributes); $student = $this->mastermodel->get_data_srow_joined('student', 'nationality', 'nationality_id', 'nationality_id', $viewinfo->fee_student_id, 'student_id'); $class = $this->mastermodel->get_data_joined('student_class', 'class_name', 'class_name_id', 'class_name_id', $viewinfo->fee_student_id, 'student_id'); ?> <h3 class="form-section"> Student Details</h3> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">Student</label> <div class="controls"><span class="text bold"> <?= $student->first_name . ' ' . $student->last_name; ?></span> </div> </div> </div> <div class="span6"> <div class="control-group"> <label class="control-label">Student Reg No</label> <div class="controls"><span class="text bold"> <?= $student->reg_no; ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">Gender</label> <div class="controls"><span class="text bold"> <?= $student->gender; ?></span> </div> </div> </div> <div class="span6"> <div class="control-group"> <label class="control-label">Nationality</label> <div class="controls"><span class="text bold"> <?= $student->nationality_name; ?></span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">Allocate to Class</label> <div class="controls"> <select name="class_name_id" id="class_name_id" class="required span12 chosen" onchange="load_student_fee_details_unposted(this.value)"> <option value="">Select</option> <?php foreach ($class as $list) { ?> <option value="<?= $list['student_class_id'] . "~" . $list['class_name_id']; ?>"><?= $list['class_name_code']; ?></option> <?php } ?> </select> </div> </div> <input type="hidden" value="" name="student_class_id" id="student_class_id"/> <input type="hidden" value="" name="class_id" id="class_id"/> <input type="hidden" value="<?= $student->student_id ?>" name="student_id" id="student_id"/> </div> </div> <h3 class="form-section"> Fee Details</h3> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">Receipt No</label> <div class="controls"><span class="text bold"> <?= $viewinfo->fee_receipt_no; ?> </span> </div> </div> </div> <div class="span6"> <div class="control-group"> <label class="control-label">Fee Date</label> <div class="controls"><span class="text bold"> <?= date("d-m-Y"); ?> </span> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">Payment Mode</label> <div class="controls"> <select name="payment_mode" disabled id="payment_mode" class="required chosen span12" 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'] . '"'; if ($viewinfo->payment_mode == $value['payment_type_id']) echo "selected";echo' >' . $value["payment_type"] . '</option>'; } ?> </select> </div> </div> </div> <div class="span6"> <div class="control-group"> <label class="control-label">Remarks</label> <div class="controls"><span class="text bold"> <?= $viewinfo->fee_payment_remarks; ?></span> </div> </div> </div> </div> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i> Payment Details</div> </div> <div class="portlet-body" id='payment_mode_div'> <?php if ($viewinfo->payment_mode == 2) { $cheque = $this->mastermodel->get_data_srow('fee_payment_cheque_info', $viewinfo->fee_payment_id, 'fee_payment_id'); ?> <table class="table table-striped table-hover table-bordered"> <tr> <th>Cheque Date</th> <th>Cheque No</th> <th>Cheque Info</th> <th>Bank Drown</th> </tr> <tr> <td> <?= $this->mastermodel->convertdatenormalformat($cheque->cheque_date) ?> </td> <td> <?= $cheque->cheque_no ?> </td> <td> <?= $cheque->cheque_info ?> </td> <td> <?= $cheque->bank_drawn ?> </td> </tr> </table> <?php } else if ($viewinfo->payment_mode == 3) { $credit_card_info = $this->mastermodel->get_data_srow('fee_payment_credit_card_info', $viewinfo->fee_payment_id, 'fee_payment_id'); ?> <table class="table table-striped table-hover table-bordered"> <tr> <th>Credit Card Holder Name</th> <th>Credit Card No</th> </tr> <tr> <td> <?= $credit_card_info->credit_card_holder ?> </td> <td> <?= $credit_card_info->credit_card_no ?> </td> </tr> </table> <?php }else if ($viewinfo->payment_mode == 4) { $bank_transfer_info = $this->mastermodel->get_data_srow('fee_payment_bank_transfer_info', $viewinfo->fee_payment_id, 'fee_payment_id'); ?> <table class="table"> <tr> <th style="width: 10%">Description</th> <td> <?= $bank_transfer_info->description ?> </td> </tr> </table> <?php } ?> </div> </div> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Student Details</div> </div> <div class="portlet-body"> <?php $fee_particular = $this->mastermodel->search_fee_particular(); $particular_list = $this->mastermodel->get_data('fee_payment_details', $viewinfo->fee_payment_id, 'fee_payment_id'); ?> <table class="table table-striped table-hover table-bordered" id="student_tb"> <tr> <th>Slno</th> <th>Fee particulars</th> <th>Amount</th> </tr> <?php $i=0; foreach ($particular_list as $row) { ?> <tr> <td><?=++$i?></td> <td><?php foreach ($fee_particular['results']->result_array() as $list) { if ($list['fee_particular_id'] == $row['fee_particular_id']) echo $list['fee_particular_name']; } ?> </select> </td> <td> <?= $row['fee_term_amount'] ?> </td> </tr> <?php } ?> </table> </div> </div> <input type="hidden" name="fee_payment_id" value="<?= $viewinfo->fee_payment_id; ?>"/> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Student Fee Details</div> </div> <div class="portlet-body" id='load_student_fee_div'></div> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>