?
Current Path : /home1/savoy/public_html/savoyglobal.net/eduplus1/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/eduplus1/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> <div class="icons_main"> <div class="icons"> <img src="<?=base_url()?>assets/images/back.png" title="Back" class="clickimage" onclick="viewdata('accounting','viewinaccountingsearch','search_bank_account','view_bank_account','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="32" height="32" /> </div> <div class="icons_caption"> <h4>Create New Bank Account</h4> </div> </div> <div id="viewmsg" style="width: 90%;margin: auto 0;height: 25px;"></div> <?php $attributes=array('id'=>'validateform','class'=>'validate'); echo form_open('accounting/addinaccounting/insert_bank_account/view_bank_account/1',$attributes); $currency=$this->mastermodel->getdatas('finance_currency','currency_id','asc'); ?> <div class="clean"></div> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>A/C Code</label> <div> <input readonly="" id="" class="" value="- Auto Generated -" /> </div> </div> <div class="section _100"> <label>Bank Name</label> <div> <input name="bank_name" id="bank_name" class="required" > </div> </div> <div class="section _100"> <label>A/C No</label> <div> <input name="bank_account_number" id="bank_account_number" class="required" > </div> </div> <div class="section _100"> <label>A/C Name</label> <div> <input name="chart_account_name" id="chart_account_name" class="required" > </div> </div> <div class="section _100"> <label>Account Type</label> <div style="margin:10px 1px;"> <input readonly type="text" name="parent" id="parent" value="<?=$parent?>" class="required" /> <input readonly type="hidden" name="parent_id" id="parent_id" value="<?=$parent_id?>" /> </div> </div> </div> </div> </div> <div class="grid_6"> <div class="box"> <div class="header"> <span></span> </div> <div class="content no-padding"> <div class="section _100"> <label>Bank Address</label> <div> <textarea name="bank_address" id="bank_address" style="height: 52px;" > </textarea> </div> </div> <div class="section _100"> <label>Currency</label> <div style="margin:10px 1px;"> <select name="currency_id" class="required chzn-done" > <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> <?php //// ?> <div class="grid_12" style="width: 98%" > <div class="box"> <div class="actions"> <div class="actions-left"> <input type="reset"> <input type="hidden" name="resfunction" value="search_amenities"/> </div> <div class="actions-right"> <button style="margin-left: 130px;" type="submit" id="submit" class="clickimage" onclick="checkdatavalidity($('input#parent_id').val(), 'parent', 'No Existing Account Selected');addformdata('validateform')">Save</button> </div> </div> </div> </div> <?php echo form_close();?>