<?php
 $OK=1; if ( !$reportSource ) { $showMessage2['type']="MSG_WARNING"; $showMessage2['message']=$_LANG['reportsManagement']['admin']['columns']['noReportSource']; $OK=0; } if ($OK) { if ($reportSource) { loadReportConfigs($reportSource, 'columns'); @include($MODULE_REL_PATH."_lang/".$S['global']['lang']."/_customLoad/reports/".$reportSource."/columns.lang.php"); } if (!$CFG['reportsManagement']['adminReport']['columnsList'][$reportSource]) { $showMessage2['type']="MSG_ERROR"; $showMessage2['message']=$_LANG['reportsManagement']['admin']['columns']['noColumnsDefined']; $OK=0; } } if ($OK) { $rmCols= []; $columnsList= []; foreach($CFG['reportsManagement']['adminReport']['columnsList'][$reportSource] as $col=>$colDet) { if (!$colDet['disabled'] and ($colDet['type']=="price" or $colDet['type']=="numeric" or $colDet['type']=="percent")) { $columnsList[$col]=$_LANG['reports']['columnNames'][$reportSource][$col]; } if ($colDet['content']=='remarks') $rmCols[]=$col; } $rmCols=implode(', ', $rmCols); } 