--- results.php 2001/02/19 16:22:20 1.1 +++ results.php 2001/02/20 15:17:06 1.2 @@ -12,7 +12,11 @@ $lpic="investor"; $lext=".jpg"; $mpic="investors.gif"; -$main_file="results"; +if ($part && file_exists("templates/$part.tpl")) { + $main_file=$part; +} else { + $main_file="results"; +} $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );