?
Current Path : /home1/savoy/www/savoyglobal.net/sibs_draft/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/sibs_draft/system/application/views/Accounting/edit_trans_code.php |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?> <script> function code_exist(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('codefor').selectedIndex=0; return false; } }); } </script> <div class="select-bar"> <label> <img src="<?=base_url()?>/assets/images/backbutton.png" title="Back" class="clickimage" onclick="showtranscode_page(1,'code','')" alt="Back" align = "center" width="25" height="25" /></label> </div> <?php $attributes = array('id' => 'customForm'); echo form_open('',$attributes); $result= $edittrans_code->row(); ?> <fieldset> <div style="display:none" id="temp"></div> <table style="padding:15px 0 0 25px"> <caption>Edit Transaction Code</caption> <tr height="35px"> <td> <label> Code:</label> </td> <td> <input type="text" name="code" id="code" value="<?=$result->code?>" /> <span id="codeInfo" class="red_bold">*</span> </td> </tr> <tr height="25px"> <td> <label> Type :</label> </td> <td> <input type="text" name="type" id="type" value="<?=$result->type?>"/> <span id="typeInfo" class="red_bold">*</span> </td> </tr> <tr height="25px"> <td> <label> Account Type :</label> </td> <td> <select name="codefor" id="codefor" onchange="code_exist(this)"> <?php $trans_type=$this->mastermodel->getdatas('transaction_types'); $val= $this->customermodel->getSingleFieldValue('transaction_types','transaction','id',$result->trans); echo "<option value='$result->trans'>$val</option>"; foreach ($trans_type as $key => $accsub) { if($result->trans!= $accsub['id']) echo "<option value='". $accsub['id']. "' >" . $accsub['transaction'] . "</option>"; } ?> </select> <span id="codeforInfo" class="red_bold">*</span> </td> </tr> <input type="hidden" name="id" id="id" value="<?=$result->id?>"/> <tr height="55px"> <td></td> <td> <button type="button" class="clickimage" name="class-update" onclick="updatetrans_code('<?= $result->id; ?>' ,'<?= $currpage ?>','<?=$field ?>','<?=$text ?>')" id="class-update"> Update Code</button> </td> </tr> </table> </fieldset> <?php echo form_close(); ?>