set_filenames(array('nbm'=>'nbm.tpl')); $template->assign_vars(array('U_HOME' => make_index_url())); // +-----------------------------------------------------------------------+ // | errors & infos | // +-----------------------------------------------------------------------+ if (count($page['errors']) != 0) { $template->assign_block_vars('errors',array()); foreach ($page['errors'] as $error) { $template->assign_block_vars('errors.error',array('ERROR'=>$error)); } } if (count($page['infos']) != 0) { $template->assign_block_vars('infos',array()); foreach ($page['infos'] as $info) { $template->assign_block_vars('infos.info',array('INFO'=>$info)); } } // +-----------------------------------------------------------------------+ // | html code display | // +-----------------------------------------------------------------------+ $template->parse('nbm'); include(PHPWG_ROOT_PATH.'include/page_tail.php'); ?>