?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus2/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/eduplus2/application/views/accounting/add_bank_account.php |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); $this->load->view('documentreadyfunctions'); $parent=""; $parent_id=""; $sub_account=$this->mastermodel->get_data_srow('finance_sub_account_settings','1','sub_account_settings_id'); $bank_account=$this->mastermodel->get_data_srow('finance_chart_master',$sub_account->bank_account,'chart_master_id'); $parent=$bank_account->chart_account_name."-".$bank_account->chart_account_code; $parent_id=$sub_account->bank_account.'~'.$bank_account->chart_type_id; ?> <script> $(document).ready(function() { if(<?=$parent_id?>==""){ $("#viewmsg").fadeIn(900, 0); $("#viewmsg").html("<div style=\"padding-top: 3px;text-align:center; width:400px;height:20px;margin-left:30%\" ><font color=\"red\" >Set subaccount settings for Bank Account </font></div>"); $('button[type=submit]#submit').attr('disabled', 'disabled'); } }); </script> <!-- BEGIN PAGE LEVEL STYLES --> <!-- END PAGE LEVEL STYLES --> <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>Create New Bank Account</div> <div class="tools"> <a href="#" onclick="viewdata('accounting','viewinaccountingsearch','search_bank_account','view_bank_account','<?=$_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_bank_account/view_bank_account/1',$attributes); $currency=$this->mastermodel->getdatas('finance_currency','currency_id','asc'); ?> <h3 class="form-section"></h3> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">A/C Code </label> <div class="controls"> <input readonly="" id="" class="span12" type="text" value="- Auto Generated -" /> </div> </div> </div> <div class="span6"> <div class="control-group"> <label class="control-label">Bank Name</label> <div class="controls"> <input name="bank_name" id="bank_name" type="text" class="span12required" > </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">A/C No</label> <div class="controls"> <input name="bank_account_number" id="bank_account_number" type="text" class="span12required" > </div> </div> </div> <div class="span6"> <div class="control-group"> <label class="control-label">A/C Name</label> <div class="controls"> <input name="chart_account_name" id="chart_account_name" type="text" class="required span12" > </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">Main Account</label> <div class="controls"> <input readonly type="text" name="parent" id="parent" value="<?= $parent ?>" class="span12required" /> <input readonly type="hidden" name="parent_id" id="parent_id" value="<?= $parent_id ?>" /> </div> </div> </div><div class="span6"> <div class="control-group"> <label class="control-label">Currency</label> <div class="controls"> <select name="currency_id" class="required chosen span12" > <option value="">Select</option> <?php foreach ($currency as $cur) { echo "<option value='" . $cur['currency_id'] . "' >" . $cur['currency_name'] . "</option>"; } ?> </select> </div> </div> </div> </div> <div class="row-fluid"> <div class="span6"> <div class="control-group"> <label class="control-label">Bank Address</label> <div class="controls"> <textarea name="bank_address" id="bank_address" class="span12" > </textarea> </div> </div> </div> </div> <div class="form-actions"> <input type="hidden" name="resfunction" value="search_amenities"/> <button type="submit" onclick="addformdata('validateform')" class="btn blue"><i class="icon-ok"></i> Save</button> <button type="button" onclick="viewdata('accounting','viewinaccountingsearch','search_bank_account','view_bank_account','<?=$_SESSION['pagenum'];?>')" class="btn">Cancel</button> </div> <?php echo form_close(); ?> </div> <!-- END FORM--> </div> </div> </div> </div>