--- rnd.php 2001/02/20 11:37:21 1.1.1.1 +++ rnd.php 2001/10/02 09:59:03 1.10 @@ -6,24 +6,39 @@ $smarty->assign( array ( Title=>"Pliva d.d." ) ); -$multi_page=array( - "rnd.php?part=MIXIS-HomePR", - "rnd.php?part=MIXIS-Sci-TechPR" - ); - -$section=str_replace(".php","",basename($PHP_SELF)); -$smarty->assign("section",$section); - -$title="R&D"; -$lpic="rnd"; $lext=".gif"; -$tmp = time() % 2; -$mpic="rnd_u".($tmp+1).".gif"; +$sub_part=substr($part,0,strpos($part,"-")); + +if ($sub_part == "MIXIS") { + $multi_page=array( + "rnd.php?part=MIXIS-HomePR", + "rnd.php?part=MIXIS-Sci-TechPR" + ); +} elseif ($sub_part == "Technology") { + $multi_page=array( + "rnd.php?part=Technology-HighThroughput", + "rnd.php?part=Technology-Microarrays" + ); +} elseif ($sub_part == "Profile") { + $multi_page=array( + "rnd.php?part=Profile-antiinfectives1", + "rnd.php?part=Profile-antiinfectives2" + ); +} else { + $multi_page=array( + "rnd.php?part=Azithromycin1", + "rnd.php?part=Azithromycin2", + "rnd.php?part=Azithromycin3" + ); +} + +include("section.inc"); + $main_file="./html/"; if (file_exists($main_file.$part.".htm")) { $main_file.=$part.".htm"; $main=join('',file($main_file)); } else { - $main=$smarty->fetch("rnd.tpl"); + $main=join('',file("./html/RnD-Main.htm")); }