?
Current Path : /home1/savoy/www/savoyglobal.net/drafthr/system/application/views/Settings/ |
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/Settings/editmainacc_setting.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="showmainacc_settings()" alt="Back" align = "center" width="25" height="25" /></label> </div> <?php $attributes = array('id' => 'customForm'); echo form_open('',$attributes); $values= $this->mastermodel->get_data_srow('mainacc_setting',$id,'id'); ?> <fieldset> <legend>Edit Main A/c Settings</legend> <input type="hidden" name="id" id="id" value="<?=$id?>"/> <?php $commission1=$values->commission_pay_acc; $commission= $this->customermodel->getSingleFieldValue('chart_master','account_name','id',$commission1); ?> <table style="padding-left:25px"> <tr > <td> <label for="classid">Commission Payable :</label> </td> <td> <input type="hidden" name="id" value="<?=$id?>"> <select style="width: 160px" id="commission" name="commission"> <?php $acc_sub=$this->mastermodel->getmain_acclist(); if (count($acc_sub)) { $sub_t='temp'; foreach ($acc_sub as $key => $accsub) { if($accsub['chart_type']!=$sub_t) { $optgp= $this->customermodel->getSingleFieldValue('char_type','chart_types','id',$accsub['chart_type']); echo '<optgroup label="'.$optgp.'"></optgroup> '; } echo "<option value='". $accsub['id'].'~'. $accsub['chart_type'] . "'"; if($accsub['id']==$commission1){ echo "selected"; } echo "> ".$accsub['account_code']." " . $accsub['account_name'] . "</option>"; if($accsub['chart_type']!=$sub_t) { echo " "; } $sub_t=$accsub['chart_type']; } } ?> </select> <span id="commissionInfo" class="red_bold">*</span> </td> </tr> <tr> <td> <label for="classid">Cover Code :</label> </td> <td> <input type="text" name="covercode" id="covercode" value="<?=$values->cover_start?>"></td> </tr> <tr height="25px"> <td></td> <td> <button type="button" class="clickimage" name="class-save" onclick="updatemainacc_setting()" id="class-save"> Update Settings </button> </td> </tr> </table> </fieldset> <?php echo form_close(); ?>