?
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/mainaccountlist.php |
<?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'] . "' > ".$accsub['account_code']." " . $accsub['account_name'] . "</option>"; if($accsub['chart_type']!=$sub_t) { echo " "; } $sub_t=$accsub['chart_type']; } } ?>