<?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) { $columnsList= []; foreach($CFG['reportsManagement']['adminReport']['columnsList'][$reportSource] as $col=>$colDet) { if (!$colDet['disabled']) { $columnsList[$col]= [ 's'=>$S['adminReport']['columns'][$col]['s'], 'v'=>$S['adminReport']['columns'][$col]['v'], 'n'=>$S['adminReport']['columns'][$col]['n'], 'originalName'=>$_LANG['reports']['columnNames'][$reportSource][$col], ]; } } } ?>