?
Current Path : /home1/savoy/public_html/savoyglobal.net/eldertree/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/eldertree/application/views/accounting/add_cost_center.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $this->load->view('accounting/accountingfunctions'); ?> <script src="<?= base_url() ?>assets/scripts/jquery.autocomplete.js"></script> <script> $(document).ready(function() { checkfiscalyear(); $(".addRow_payment").btnAddRow({inputBoxAutoNumber: true}, function(row) { suggestchartaccount('.payment_account'); $(row).find('select').removeClass('chzn-done').show(); $(row).find('.chzn-container').remove(); $(row).find('.chosen').chosen(); }); suggestchartaccount('.payment_account'); suggest_bank_account('#bankacc'); }); </script> <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>Creating Cost Center</div> <div class="tools"> <a href="#" onclick="viewdata('accounting', 'viewinaccountingsearch', 'search_cost_center', 'view_cost_center', '<?= $_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('accounting/addinaccounting/insert_cost_center/view_cost_center/1', $attributes); $bankacc = $this->mastermodel->getdatas('finance_bank_account', 'bank_account_id', 'asc', 'bank_account_id'); $payment_type = $this->mastermodel->getdatas('finance_payment_types', 'payment_type_id', 'asc'); $accounts = $this->mastermodel->getdatas('finance_chart_master', 'chart_type_id', '', 'chart_master_id'); ?> <h3 class="form-section">Account Payment Entry </h3> <input type="hidden" name="transaction_id" value="1"/> <div class="row-fluid"> <div class="span6 "> <div class="control-group"> <label class="control-label">Transaction No:</label> <div class="controls"> <input readonly="readonly" class="span12" type="text" value="--Auto Generated--"/> </div> </div> </div> <div class="span6 "> <div class="control-group"> <label class="control-label">From:</label> <div class="controls"> <input type="text" name="bankacc" id="bankacc" value='' class="required span12" /> <input type="hidden" name="bankacc_id" id="bankacc_id" /> </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="<?= date('d-m-Y') ?>"/> </div> </div> </div> <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 span12" onchange="select_payment_mode(this.value, 'payment_mode','PV')"> <?php foreach ($payment_type as $value) { echo '<option value="' . $value['payment_type_id'] . '">' . $value["payment_type"] . '</option>'; } ?> </select> </div> </div> </div> </div> <div class="portlet box yellow" id="div_payment_details" style="display: none" > <div class="portlet-title"> <div class="caption"><i class="icon-check"></i>Payment details</div> </div> <div class="portlet-body" id="payment_mode"></div> </div> <div class="portlet box yellow"> <div class="portlet-title"> <div class="caption"><i class="icon-check"></i> Payment Items</div> </div> <div class="portlet-body"> <div class="row-fluid"> <div class="control-group"> <table class="table table-striped table-hover table-bordered" id="sample_5" style="background-color: white;"> <tr> <th>Acc code</th> <th>Expense Type</th> <th>Description</th> <th>Amount</th> <th><input type="button" id="button2" value="Add More" class="addRow_payment" title="Add Row" style="width:75px;"/></th> </tr> <tr> <td> <input type="text" name="payment_to1" id="payment_to1" data-id='payment_to_id1' value='' class="required payment_account span12" /> <input type="hidden" name="payment_to_id1" id="payment_to_id1" /> </td> <td> <select name="expense_type1" id="expense_type1" class="required chosen span12"> <option value="">Select</option> <?php $expense = $this->mastermodel->getdatas('expense_type'); foreach ($expense as $list) { ?> <option value="<?= $list['expense_type_id']; ?>"><?= $list['expense_type_name']; ?></option> <?php } ?> </select> </td> <td> <textarea name="description1" id="description1" class="span12"></textarea> </td> <td> <input class="span12 number required text_r auto" type="text" name="amount1" id="amount1" onblur="checkamount(this.id)" /> </td> <td> <img style="float: right; vertical-align: top;"src="<?= base_url() ?>assets/img/close.png" alt="Delete Row" class="delRow clickimage" title="Delete Row"/> </td> </tr> </table> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="tab_name" value="cost_center"/> <input type="hidden" name="resfunction" value="search_cost_center"/> <button type="submit" onclick="checkdata('payment_to', 'payment_account','No existing Account selected') checkdatavalidity($('input#bankacc_id').val(), 'bankacc', 'No existing Bank Account selected') addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Process Deposit</button> <button type="button" onclick="viewdata('accounting', 'viewinaccountingsearch', 'search_cost_center', 'view_cost_center', '<?= $_SESSION['pagenum']; ?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> <!-- END FORM--> </div> </div> </div> </div>