?
Current Path : /home1/savoy/public_html/savoyglobal.net/koaladraft/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/koaladraft/application/views/student/edit_fee_payment.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/back.png" title="Back" class="clickimage" onclick="viewdata('student','viewinstudentsearch','search_fee_payment','view_fee','<?= $_SESSION['pagenum']; ?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Update Fee</h4> </div> </div> <?php $attributes = array('id' => 'validateform', 'class' => 'validate'); echo form_open('student/addinstudent/update_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'); ?> <div class="clean"></div> <div class="grid_6" > <div class="box"> <div class="header main no-icon"> Student Details </div> <div class="content no-padding"> <div class="section _100"> <label>Student</label> <div class="single_page"> <?= $student->first_name . ' ' . $student->last_name; ?> </div> </div> <div class="section _100" > <label>Student No</label> <div class="single_page"> <?= $student->reg_no; ?> </div> </div> <div class="section _100" > <label>Gender</label> <div id="gender" class="single_page"> <?= $student->gender; ?> </div> </div> <div class="section _100" > <label>Nationality</label> <div id="nationality" class="single_page"> <?= $student->nationality_name; ?> </div> </div> <div class="section _100"> <label>Age</label> <div class="single_page"> <?php /* 'yyyy-mm-dd format' */ $age_details = $this->mastermodel->getAgeDetails($student->dob); echo $age_details['in_words']; ?> </div> </div> </div> </div> </div> <div class="grid_6" > <div class="box"> <div class="header main no-icon"> Fee Details </div> <div class="content no-padding"> <div class="section _100"> <label>Receipt No</label> <div> <input type="readonly" name="receipt_no" value="<?= $viewinfo->fee_receipt_no; ?>" /> </div> </div> <div class="section _100"> <label>Fee Date</label> <div> <input value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->fee_payment_date); ?>" type="text" name="fee_date" id="fee_date" class="calfocus required" /> </div> </div> <div class="section _100"> <label>Payment Mode</label> <div> <select name="payment_mode" id="payment_mode" class="required chzn-done" onchange="get_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 class="section _100"> <label>Remarks</label> <div> <textarea name="fee_remarks" id="fee_remarks"><?= $viewinfo->fee_payment_remarks; ?> </textarea> </div> </div> </div> </div> </div> <div class="grid_12"> <div class="box" 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'); ?> <div class="content no-padding"> <div class="header main"> Payment Details</div> <table class="table"> <tr> <th>Cheque Date</th> <th>Cheque No</th> <th>Bank Drawn</th> </tr> <tr> <td> <input class="w_90 required" type="dateonly" name="cheque_date" id="cheque_date" value="<?= $this->mastermodel->convertdatenormalformat($cheque->cheque_date) ?>"/> </td> <td> <input class="w_90 required num_only" type="text" name="cheque_no" id="cheque_no" value="<?= $cheque->cheque_no ?>"/> </td> <td> <textarea class=" required" name="bank_drawn" id="bank_drawn"><?= $cheque->bank_drawn ?></textarea> </td> </tr> </table> </div> <?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'); ?> <div class="content no-padding"> <div class="header main"> Payment Details</div> <table class="table"> <tr> <th>Credit Card Holder Name</th> <th>Credit Card No</th> </tr> <tr> <td> <input class="required " type="text" name="holder_name" id="holder_name" value="<?=$credit_card_info->credit_card_holder?>"/> <div style="padding: 0 5px;width:127px;display: block;height: 9px;"> <!-- <span style="color: red;" id="cheque_no_date"></span></div>--> </td> <td> <input class="w_90 required num_only" type="text" name="card_no" id="card_no" value="<?=$credit_card_info->credit_card_no?>" /><br/> <div style="color: red;padding: 0 5px;width:200px;display: block;height: 25px;"> <!-- <span id="cheque_no_info"></span></div>--> </td> </tr> </table> </div> <?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'); ?> <div class="content no-padding"> <div class="header main"> Payment Details</div> <table class="table"> <tr> <th>Description</th> <td> <textarea name="bank_transfer_description" id="bank_transfer_description" style="width:250px;"><?=$bank_transfer_info->description?></textarea> </td> </tr> </table> </div> <?php } ?> </div> </div> <div class="grid_12" > <div class="box"> <div class="content no-padding"> <div class="header main">Student Details</div> <?php $fee_particular = $this->mastermodel->getdatas('fee_particular'); // $particular = array(); // foreach ($fee_particular as $value) { // $particular[$list['fee_particular_id']] = $list['fee_particular_name']; // } $particular_list = $this->mastermodel->get_data('fee_payment_details', $viewinfo->fee_payment_id, 'fee_payment_id'); ?> <table class="table" id="student_tb"> <tr> <th>Fee particulars</th> <th>Amount</th> <th><input type="button" id="button2" value="Add More" class="addRow" title="Add Row" style="width:75px;"/></th> </tr> <?php foreach ($particular_list as $row) { ?> <tr> <td> <select id="fee_particular_id" name="fee_particular_id" class="chzn-done valid required"> <option value="">Select</option> <?php foreach ($fee_particular as $list) { echo '<option '; if ($list['fee_particular_id'] == $row['fee_particular_id']) echo "selected "; echo' value="' . $list['fee_particular_id'] . '">' . $list['fee_particular_name'] . '</option>'; } ?> </select> </td> <td> <input type="text" value="<?= $row['fee_term_amount'] ?>" name="fee_term_amount" id="fee_term_amount" class="num_only required"/> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> <?php } ?> <tr> <td> <select id="fee_particular_id" name="fee_particular_id" class="chzn-done valid required"> <option value="">Select</option> <?php foreach ($fee_particular as $list) { echo '<option value="' . $list['fee_particular_id'] . '">' . $list['fee_particular_name'] . '</option>'; } ?> </select> </td> <td> <input type="text" name="fee_term_amount" id="fee_term_amount" class="num_only required" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/images/icons/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> <div class="grid_12" id="sub"> <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="fee_payment_id" value="<?= $viewinfo->fee_payment_id; ; ?>"/> </div> <div class="actions-right"> <button type="submit" id="submit1" class="clickimage" onclick="addformdata('validateform')">Save</button> </div> </div> </div> </div> <?php echo form_close(); ?>