--- careers.php 2001/10/01 14:05:16 1.15 +++ careers.php 2002/04/25 12:16:41 1.18 @@ -1,15 +1,26 @@ assign( array ( Title=>"Pliva d.d." ) ); -include("common.inc"); - include("section.inc"); -$smarty->assign("section",$section); + +include("common.inc"); $main_file="./html/Careers-"; if (file_exists($main_file.$part.".htm")) { @@ -84,18 +95,22 @@ } $main=$smarty->fetch("Careers-".$part.".tpl"); -} else { +} elseif ($part != "erec") { $main_file.="Main.htm"; $main=join('',file($main_file)); } - $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); -$smarty->assign("MAIN",$main); - $smarty->assign("contact_url","careers.php?part=ContactUs"); +if ($part == "erec") { + $erec = new ERec(); + $erec->upload_dir = "/data/erec"; + $main = $erec->page(); +} + +$smarty->assign("MAIN", $main); + $smarty->display("index.tpl"); ?> -