ZO ČSOP Ekocentrum Čtyřlístek
Pobočka ČSOP s ekoporadnou. Fair Trade.
if($GLOBALS['companies_category'] && !$GLOBALS['company']) {
if($GLOBALS['companies_category']->link == 'katalog-firem') $GLOBALS['params']['where']['category_id'] = 2;
$companies = new Smpls\Modules\Companies;
$companies_list = $companies->list($GLOBALS['params']);
unset($companies_list['paging']);
foreach($companies_list as $company_list) {
if(isset($company_list->parameters)) {
foreach($company_list->parameters as $parameter) {
if(!empty($parameter->value) && is_numeric($parameter->value)) {
$parameters[$parameter->field_id] = new StdClass();
$parameters[$parameter->field_id]->title = $parameter->title;
$parameters[$parameter->field_id]->value += $parameter->value;
$parameters_total += $parameter->value;
}
}
}
}
$template->assign('parameters', $parameters);
$template->assign('parameters_total', $parameters_total);
$template->assign('companies_total', count($companies_list));
}
?>