?
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/add_gl_account.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> function code_exist(thisone) { $("#temp").load("<?= site_url('accounting/code_exist/') ?>" +"/chart_master/account_code/" + thisone.value,function(data) { if(data>0) { alert("Account Code already Exist"); document.getElementById('acc_code').value=""; return false; } }); } </script> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="showgl_accounts(1,'account_name','')" alt="Back" align = "center" width="25" height="25" /></label> </div> <?php $attributes = array('id' => 'customForm'); echo form_open('',$attributes); ?> <fieldset> <div style="display:none" id="temp"></div> <table style="padding:15px 0 0 25px"> <caption>ADD Sub Account</caption> <tr > <td> <label for="classid">Account Code :</label> </td> <td > <input style="text-align:center" type="text" readonly name="acc_code" id="acc_code" value="- Auto Generated -" onblur="code_exist(this)"/> </td> </tr> <tr height="35px"> <td> <label> Account Name :</label> </td> <td> <input type="text" name="acc_name" id="acc_name"/> <span id="acc_nameInfo" class="red_bold">*</span> </td> </tr> <tr height="25px"> <td> <label> Main Account :</label> </td> <td> <select style="width: 160px" id="acc_sub" name="acc_sub"> <option value="">Select</option> <?php $this->load->view('Accounting/mainaccountlist'); ?> </select> <span id="acc_subInfo" class="red_bold">*</span> </td> </tr> <tr height="55px"> <td></td> <td> <button type="button" class="clickimage" name="class-save" onclick="insert_gl_acc()" id="class-save"> Add Account </button> </td> </tr> </table> </fieldset> <?php echo form_close(); ?>