fetch($indicatorid)): $tbs = new CTBS('tree', $mode, $indicator); $pageURLaddon = $indicatorid."/"; else: $indicatorid = ""; $errors[] = word("idismissing"); endif; endif; if(!empty($indicatorid)): $tbs->createYearsList(); $tbs->createData(); $tbs->removeMissingYears(); $tbs->createCols(); ob_start(); $tbs->generateReport(); $text=ob_get_clean(); print stripSlashes($text); exit; else: // empty indicator id htmlDefault(); if(count($errors)):?>

sort[$indicators->fields['code']['field']] = "asc"; $indicators->filter[$indicators->fields['level']['field']] = 0; $indicatorsList = $indicators->getList(); $zeroIndicatorsAmount = count($indicatorsList); unset($indicators->filter[$indicators->fields['level']['field']]); $i = 0; $maxcolumns = 3; $colcount = 1; $thiscolumn = 0; ?>