set_filenames(array( 'header' => 'header.tpl', 'leftcolumn' => 'leftcolumn.tpl', 'midcolumn' => 'midcolumn.txt', 'rightcolumn' => 'rightcolumn.tpl', 'footer' => 'footer.txt', 'name_show' => 'name_mem_list.tpl', 'search_surname' => 'search_surname.tpl', 'left_menu' => 'left_menu.tpl', 'name_list' => 'name_list.tpl', 'memorial_show' => 'memorial_show.tpl', 'contact_us' => 'contact_us.tpl', 'home' => 'home.tpl', 'credits' => 'credits.tpl', 'memnamelist' => 'name_mem_list.tpl' )); $template->pparse('header'); $template->pparse('leftcolumn'); $template->pparse('left_menu'); $template->pparse('midcolumn'); if ((!isset($reqmemorial)) AND (!isset($bodypage)) AND (!isset($reqname))) {$template->pparse('home');} if ($bodypage=='memoriallist') {include("memorials_list.php") ;$template->pparse('memorial_list');} if ($bodypage=='adv_search') {include("adv_search.php") ;$template->pparse('name_list');} if ($bodypage=='search_surname'){include("search_surname.php") ;$template->pparse('name_list');} if ($bodypage=='credits'){$template->pparse('credits');} if ($bodypage=='search') {include("search_adv.php");} if ($bodypage=='contact_us'){$template->pparse('contact_us');} if ($reqmemorial>0) { include("memorials_sandlist.php"); $template->pparse('memorial_show'); if ($reqnameid>-1) { include("memorial_namelist.php"); $template->pparse('memnamelist'); } } $template->pparse('footer'); ?>