--- careers.php 2001/09/18 10:26:46 1.14 +++ careers.php 2002/04/25 12:16:41 1.18 @@ -1,19 +1,27 @@ assign( array ( Title=>"Pliva d.d." ) ); -$section=str_replace(".php","",basename($PHP_SELF)); -$smarty->assign("section",$section); +include("section.inc"); include("common.inc"); -$title="CAREERS"; -if ($menu_item) $title.=" : $menu_item"; -$lpic="careers"; $lext=".jpg"; -$mpic="careers.gif"; + $main_file="./html/Careers-"; if (file_exists($main_file.$part.".htm")) { $main_file.=$part.".htm"; @@ -87,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"); ?> -