0 ); $order = 'seq'; $structs = structureFactory::getBy('structure', $cond, $order); $selected=0; foreach($structs as $struct){ $cond = array( 'pid' => $struct->getField('id'), 'typ!' => 'art' ); $order = 'seq'; $structPids[$struct->getField('id')] = structureFactory::getBy('structure', $cond, $order); } $page->set('structs', $structs); $page->set('structPids', $structPids); $page->set('title', TITLE); $page->set('site', SITE); $page->display('mapa_strony.tpl'); ?>