?
Current Path : /home1/savoy/public_html/savoyglobal.net/sec/application/views/accounting/ |
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/application/views/accounting/edit_student_payment.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('accounting/accountingfunctions'); $this->load->view('documentreadyfunctions'); ?> <script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script> <script> $(document).ready(function() { suggest_bank_account('#bankacc'); suggestStudent('#student'); }); </script> <div class="row-fluid"> <div class="tab-pane " id="tab_2"> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-reorder"></i>Upadating Student Payment</div> <div class="tools"> <a href="#" onclick="viewdata('accounting', 'viewinaccountingsearch', 'search_student_payment', 'view_student_payment', '<?= $_SESSION['pagenum']; ?>')" class="remove"></a> </div> </div> <div class="portlet-body form"> <!-- BEGIN FORM--> <?php $attributes = array('id' => 'validateform', 'class' => 'form-horizontal validate'); $payment_type = $this->mastermodel->getdatas('finance_payment_types', 'payment_type_id', 'asc'); echo form_open('accounting/addinaccounting/update_student_payment/view_student_payment/1', $attributes); $bankacc = $this->mastermodel->get_single_field_value_two('finance_journal', 'chart_account_code', 'journal_id', $viewinfo->journal_id, 'credit', '0'); $bank_acc = $this->mastermodel->get_single_field_value_two('finance_journal', 'chart_account_code', 'journal_id', $viewinfo->journal_id, 'debit', '0'); $amount = $this->mastermodel->get_single_field_value_two('finance_journal', 'credit', 'journal_id', $viewinfo->journal_id, 'debit', '0'); $student = $this->mastermodel->get_data_srow('student', $bank_acc, 'reg_no'); ?> <h3> Student Payment </h3> <input type="hidden" name="transaction_id" value="2"/> <input type="hidden" name="reference" value="<?= $viewinfo->reference ?>"/> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Student Name:</label> <div class="controls"> <input type="text" name="student" id="student" onchange="empty_text('student_id')" class="required span12" value="<?= $student->first_name . ' ' . $student->last_name . '-' . $bank_acc ?>" /> <input type="hidden" name="student_id" id="student_id" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Account Code:</label> <div class="controls"> <input type="text" name="account_code" id="account_code" readonly class="span12" value="<?= $bank_acc ?>"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Date: </label> <div class="controls"> <input class="span12 required calfocus" type="text" name="journal_date" id="journal_date" value="<?= $this->mastermodel->convertdatenormalformat($viewinfo->journal_date) ?>" /> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Amount: </label> <div class="controls"> <input class="span12 text_r required auto" type="text" name="amount" id="amount" value="<?= $amount ?>"/> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Payment Method: </label> <div class="controls"> <select name="payment_type_id" id="payment_type_id" class="required chosen span12" onchange="select_payment_mode(this.value,'payment_mode','')"> <?php foreach ($payment_type as $value) { echo '<option value="' . $value['payment_type_id'] . '"'; if ($value['payment_type_id'] == $viewinfo->payment_type_id) echo "selected";echo '>' . $value["payment_type"] . '</option>'; } ?> </select> </div> </div> </div> </div> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> </div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Transaction No: </label> <div class="controls"> <input class="span12 " type="text" name="transaction_no" readonly="readonly" value="<?= $viewinfo->reference; ?>" id="course"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">Description: </label> <div class="controls"> <textarea name="description" id="description" clas="span12"><?= $viewinfo->description; ?></textarea> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label"> To Account: </label> <div class="controls"> <?php $bank = $this->mastermodel->get_data_srow('finance_bank_account', $bankacc, 'chart_account_code'); ?> <input type="text" name="bankacc" id="bankacc" value='<?= $bank->bank_name . '-' . $bank->chart_account_code ?>' class="required span12" /> <input type="hidden" name="bankacc_id" id="bankacc_id" value="<?=$bank->bank_account_id . '~' . $bank->chart_account_code . '~' . $bank->bank_name ?>" /> </div> </div> </div> </div> </div> </div> <div class="portlet box blue" > <div class="portlet-title"> <div class="caption"><i class="icon-check"></i>Payment details</div> </div> <div class="portlet-body" id="payment_mode"> <?php if ($viewinfo->payment_type_id == 2) { $cheque = $this->mastermodel->get_data_srow('finance_cheque_info', $viewinfo->journal_id, 'journal_id'); ?> <table class="table table-striped table-hover table-bordered" id="sample_3"> <tr> <th>Cheque Date</th> <th>Cheque No</th> <th>Cheque Info</th> </tr> <tr> <td> <input class="span12 required calfocus1 " type="text" name="cheque_date" id="cheque_date" value="<?= $this->mastermodel->convertdatenormalformat($cheque->cheque_date) ?>"/> <div style="padding: 0 5px;width:127px;display: block;height: 30px;"><span style="color: red;" id="cheque_no_date"></span></div> </td> <td> <input class="span12 required num_only" type="text" name="cheque_no" id="cheque_no" value="<?= $cheque->cheque_no ?>" onblur="check_unique_cheque('PV',<?= $cheque->cheque_no ?>)" /> <div style="color: red;padding: 0 5px;width:200px;display: block;height: 25px;"><span id="cheque_no_info"></span></div> </td> <td> <textarea class="span12 required" name="cheque_info" id="cheque_info"><?= $cheque->cheque_info ?></textarea> </td> </tr> </table> <?php } else if ($viewinfo->payment_type_id == 3) { $wire_info = $this->mastermodel->get_data_srow('finance_wire_info', $viewinfo->journal_id, 'journal_id'); ?> <table class="table table-striped table-hover table-bordered" id="sample_4"> <tr> <th>Wire Info</th> <td> <input class="span12 required" type="text" name="wire_info" id="wire_info" value="<?= $wire_info->wire_info ?>"/> </td> </tr> </table> <?php } else if ($viewinfo->payment_type_id == 4) { $card_info = $this->mastermodel->get_data_srow('finance_card_info', $viewinfo->journal_id, 'journal_id'); ?> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th>Card Info</th> <td> <input class="span12 required" type="text" name="card_info" id="card_info" style="width:250px;" value="<?= $card_info->card_info ?>"/> </td> </tr> </table> <?php } ?> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="cost_center"/> <input type="hidden" name="resfunction" value="search_cost_center"/> <input type="hidden" name="journal_id" id="journal_id" value="<?= $viewinfo->journal_id ?>"/> <button type="submit" onclick="checkdatavalidity($('#from_account_id').val(),'from_account','From Account not in List'); addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Transfer Amount</button> <button type="button" onclick="viewdata('accounting', 'viewinaccountingsearch', 'search_student_payment', 'view_student_payment', '<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>