set_filenames(array( 'sitemap' => 'site.map.tpl', )); $template->assign_vars(array( 'ID' => $m_data['m_id'], 'EMAIL' => 'mailto:'.$m_data['m_mail'], 'MANAGER_MAIL' => $m_data['m_mail'], 'MANAGER_NAME' => $m_data['m_name'], 'MANAGER_TEL' => $m_data['m_tel'], 'MANAGER_CITY' => $m_data['m_city'] )); $template->assign_block_vars('group', array('NAME' => 'Бизнес Мечты','ID' => 'menu_a','LINK' => 'index.php')); for ($i = 0; $i < count($menuitems) ;$i++) { $template->assign_block_vars('group', array('NAME'=>$menuitems[$i]['name'], 'ID'=>'menu_'.$i, 'LINK'=> isset($menuitems[$i]['link']) ? $menuitems[$i]['link'] : '')); $el = $menuitems[$i]['elements']; for ($j=0; $j < count($el); $j++) { $template->assign_block_vars('group.element', array( 'NAME' => $el[$j]['name'], 'LINK' => $el[$j]['link'] )); } } $template->assign_block_vars('group', array('NAME' => 'Регистрация', 'ID' => 'menu_a', 'LINK' => 'a-business/a-partner.php')); // Generate the page $template->pparse('sitemap'); flush(); include($GLOBAL_INC_OUT_PATH.'/footer.inc'); ?>