?
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/mainaccountlist.php |
<?php $acc_sub=$this->mastermodel->get_data('chart_master','0','parent','chart_account_type'); if (count($acc_sub)) { $sub_t='temp'; foreach ($acc_sub as $accsub) { if($accsub['chart_account_type']!=$sub_t) { $optgp= $this->mastermodel->getSingleFieldValue('chart_type','chart_type_name','id',$accsub['chart_account_type']); echo '<optgroup label="'.$optgp.'"></optgroup> '; } echo "<option value='". $accsub['chart_master_id'].'~'. $accsub['chart_account_type'] . "' >".$accsub['chart_account_code']." " . $accsub['chart_account_name'] . "</option>"; if($accsub['chart_account_type']!=$sub_t) { echo " "; } $sub_t=$accsub['chart_account_type']; } } ?>