Ejemplo n.º 1
0
 // </editor-fold>
 // <editor-fold defaultstate="collapsed" desc="parse limit">
 if (!$bGroupingMode) {
     $limit['nPageSize'] = $arParams['ROWS_PER_PAGE'];
     if (!empty($settings['limit'])) {
         $limit['nPageTop'] = $settings['limit'];
     } else {
         if (!$excelView) {
             $limit['iNumPage'] = is_set($_GET['PAGEN_1']) ? $_GET['PAGEN_1'] : 1;
             $limit['bShowAll'] = true;
         }
     }
 }
 // </editor-fold>
 // <editor-fold defaultstate="collapsed" desc="connect Lang">
 $fullHumanTitles = CReport::collectFullHumanTitles($fieldsTree);
 foreach ($viewColumns as $num => &$view) {
     if ($view['resultName'] == $view['humanTitle']) {
         $view['humanTitle'] = CReport::getFullColumnTitle($view, $viewColumns, $fullHumanTitles);
     }
 }
 unset($view);
 foreach ($changeableFilters as &$chFilter) {
     if (preg_match('/__COLUMN__(\\d+)/', $chFilter['name'], $match)) {
         $num = $match[1];
         $chFilter['title'] = $viewColumns[$num]['humanTitle'];
     } else {
         $chFilter['title'] = $fullHumanTitles[$chFilter['name']];
     }
 }
 unset($chFilter);
Ejemplo n.º 2
0
 // </editor-fold>
 // <editor-fold defaultstate="collapsed" desc="parse limit">
 if (!$bGroupingMode) {
     $limit['nPageSize'] = $arParams['ROWS_PER_PAGE'];
     if (!empty($settings['limit'])) {
         $limit['nPageTop'] = $settings['limit'];
     } else {
         if (!$excelView) {
             $limit['iNumPage'] = is_set($_GET['PAGEN_1']) ? $_GET['PAGEN_1'] : 1;
             $limit['bShowAll'] = true;
         }
     }
 }
 // </editor-fold>
 // <editor-fold defaultstate="collapsed" desc="connect Lang">
 $fullHumanTitles = CReport::collectFullHumanTitles($arResult['fieldsTree']);
 foreach ($viewColumns as $num => &$view) {
     if ($view['resultName'] == $view['humanTitle']) {
         $view['humanTitle'] = CReport::getFullColumnTitle($view, $viewColumns, $fullHumanTitles);
     }
 }
 unset($view);
 foreach ($changeableFilters as &$chFilter) {
     if (preg_match('/__COLUMN__(\\d+)/', $chFilter['name'], $match)) {
         $num = $match[1];
         $chFilter['title'] = $viewColumns[$num]['humanTitle'];
     } else {
         $chFilter['title'] = $fullHumanTitles[$chFilter['name']];
     }
 }
 unset($chFilter);