--- results.php 2001/09/18 10:26:46 1.10 +++ results.php 2001/10/12 07:39:37 1.11 @@ -12,21 +12,7 @@ } require("conn.inc"); - -if ($section == "new") { - $title="What's New"; - $lpic="new"; $lext=".jpg"; - $mpic="new.gif"; -} else { - $title="INVESTOR'S PAGE"; - $lpic="investor"; $lext=".jpg"; - $mpic="investors.gif"; -} -if ($menu_item) $title.=" : $menu_item"; - -$main_file="results"; - -$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); +include("section.inc"); if (! $type) $type="r"; @@ -38,7 +24,13 @@ $results[]=$row; } -if ($type == "p") $main_file="presentations"; +if ($type == "p") { + $main_file="presentations"; +} elseif ($type == "o") { + $main_file="comp_profile"; +} else { + $main_file="results"; +} $smarty->assign(array( results=>$results, @@ -48,6 +40,9 @@ $main=$smarty->fetch("$main_file.tpl"); include("common.inc"); + +$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); + $smarty->assign( array(back_url=>"$section.php", MAIN=>$main)); $smarty->display("index.tpl");