?
Current Path : /home1/savoy/public_html/savoyglobal.net/sgms/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/sgms/application/views/Accounting/add_transaction_code.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?> <script type="text/javascript"> function code_set(thisone) { $("#temp").load("<?= site_url('accounting/code_exist/') ?>" +"/transaction_code/trans/" + thisone.value,function(data) { if(data>0) { alert("Code already Set for this transaction"); document.getElementById('trans').selectedIndex=0; return false; } }); } function code_exist(thisone) { $("#temp").load("<?= site_url('accounting/code_exist/') ?>" +"/transaction_code/code/" + thisone.value,function(data) { if(data>0) { alert("Code already Exists"); document.getElementById('code').value=''; document.getElementById('code').focus(); return false; } }); } </script> <div class="select-bar"> <label><img src="<?=base_url()?>assets/images/backbutton.png" title="Back" class="clickimage" onclick="viewdata('accounting','viewinaccountingsearch','search_transaction_code','view_transaction_code','<?=$_SESSION['pagenum'];?>')" alt="Back" align = "center" width="25" height="25" /> </label> <span class="heading">Inserting new Transaction Code</span> </div> <fieldset> <?php $attributes=array('id'=>'validateform','class'=>'customForm'); echo form_open('accounting/addinaccounting/insert_transaction_code/view_transaction_code/1',$attributes); $transaction_type=$this->mastermodel->getdatas('transaction_type','transaction_type_id'); ?> <div style="display:none" id="temp"></div> <ul> <li> <label for="data">Code</label> <input type="text" name="code" id="code" class="required" onblur="checkexistence('transaction_code','code',this.value)" /> </li> <li> <label for="data">Type</label> <input type="text" name="type" id="type" class="required" /> </li> <li> <label for="data">Account Type</label> <select name="trans" id="trans" class="required" onchange="code_set(this)" > <option value="">Select</option> <?php foreach($transaction_type as $list) { ?> <option value="<?=$list['transaction_type_id'];?>"><?=$list['transaction'];?></option> <?php } ?> </select> </li> <li> <input type="hidden" name="tab_name" value="transaction_code"/> <input type="hidden" name="resfunction" value="search_transaction_code"/> <label for="submit"> </label> <button type="submit" id="submit" class="clickimage" onclick="addformdata('validateform')">Save</button> </li> </ul> <?php echo form_close();?> </fieldset>