<?php
 $OK=1; if ( !$reportSource ) { $showMessage2['type']="MSG_WARNING"; $showMessage2['message']=$_LANG['reportsManagement']['admin']['sorting']['noSource']; $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']['sorting']['noColumnsDefined']; $OK=0; } } if ($OK) { $columnsList= []; foreach($CFG['reportsManagement']['adminReport']['columnsList'][$reportSource] as $col=>$colDet) { if (!$colDet['disabled']) { $columnsList[$col]= [ 'originalName'=>$_LANG['reports']['columnNames'][$reportSource][$col], ]; } } } 