?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/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/www/savoyglobal.net/drafthr/system/application/views/Accounting/edit-bank-accounts.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="show_bank_acc(1,'bank_account_name','')" alt="Back" align = "center" width="25" height="25" /></label> </div> <?php $attributes = array('id' => 'customForm'); echo form_open('',$attributes); $result= $editbank_acc->row(); $curtype_val= $this->customermodel->getSingleFieldValue('country','currencyname','id',$result->bank_curr_code); $glacc_val= $this->customermodel->getSingleFieldValue('chart_master','account_name','account_code',$result->account_code); $acc_val= $this->customermodel->getSingleFieldValue('account_types','type','id',$result->acc_type); ?> <fieldset> <legend>Edit Bank Account</legend> <table> <tr> <td> <label for="accountid">Account Number :</label> </td> <td height="55px"> <input type="text" value="<?php echo $result->bank_account_number; ?>" name="acc_no" id="acc_no"/> </td> <td></td> <td> <label> Account Name :</label> </td> <td> <input type="text" value="<?php echo $result->bank_account_name; ?>" name="acc_name" id="acc_name"/> <br/><span id="acc_nameInfo" class="red_bold">*</span> </td> </tr> <tr> <td> <label> Account Type :</label> </td> <td> <select style="width: 160px" id="acc_type" name="acc_type"> <option value="<?=$result->acc_type?>"><?=$acc_val?></option> <?php $acctype=$this->mastermodel->getdatas('account_types'); if (count($acctype)) { foreach ($acctype as $key => $value) { if($value['type']!=$acc_val) { echo "<option value='". $value['id'] . "' >" . $value['type'] . "</option>"; } } } ?> </select> </td> <td></td> <td> <label>Bank A/c Currency :</label> </td> <td> <select id="bank_curr" name="bank_curr" style="width: 160px"> <option value="<?=$result->bank_curr_code?>"><?=$curtype_val?></option> <?php $currtype=$this->mastermodel->getdatas('country'); if (count($currtype)) { foreach ($currtype as $key => $list) { if($list['currencyname']!=$curtype_val) { echo "<option value='". $list['id'] . "' >" . $list['currencyname'] . "</option>"; } } } ?> </select> </td> </tr> <tr> <td> <label> Bank Name :</label> </td> <td> <input type="text" value="<?php echo $result->bank_name; ?>" name="bank_name" id="bank_name"/> </td> <td></td> <td> <label> Bank Address:</label> </td> <td> <textarea style="width: 160px" name="bank_add" value="" id="bank_add"><?php echo $result->bank_address; ?></textarea> </td> </tr> <tr> <td> <label>Choose Main Account</label> </td><td> <input name="chartgroup_name" type="text" id="chartgroup_name15" value="<?=$result->account_code?>" onchange="loadaccountid(this.value,'15')" /> <input name="chartgroup" type="hidden" id="chartgroup15" readonly /> <img id="inliexample15" src="<?=base_url()?>/assets/images/button-search.png" title="Search" class="clickimage" onclick="showmainaccountdiv('15')" /> <div style='display:none'> <div id='inline_example15' style='padding:10px; background:#fff;'> </div> </div> <span id="chartgroup_name15Info" class="red_bold">*</span> </td> </tr> <tr> <td></td> <td></td> <td> <button type="button" class="clickimage" name="editbank_acc" onclick="update_bank_acc('<?= $result->id; ?>' ,'<?= $currpage ?>','<?=$field ?>','<?=$text ?>')" id="editbank_acc"> Update </button> </td> <td></td> </tr> </table> <br/> </fieldset> <?php echo form_close(); ?>