--- careers.php 2001/02/19 16:22:20 1.1.1.1 +++ careers.php 2001/03/05 13:32:53 1.5 @@ -10,12 +10,32 @@ $smarty->assign("section",$section); $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"; $main=join('',file($main_file)); +} elseif (file_exists("./templates/Careers-".$part.".tpl")) { + + if ($part == "ApplicationForm") { + $sth = $dbh->prepare("select iso,name from countries order by name"); + $sth->execute(); + while ($row=$sth->fetchrow_hash()) { + $countries[]=$row; + } + $smarty->assign("countries",$countries); + } elseif ($part == "OpenPositions") { + $sth = $dbh->prepare("select num,title,job_code,department,location,description,edu_req,qual_req from open_positions where visible is true order by num asc"); + $sth->execute(); + while ($row=$sth->fetchrow_hash()) { + $positions[]=$row; + } + $smarty->assign("positions",$positions); + } + + $main=$smarty->fetch("Careers-".$part.".tpl"); } else { $main_file.="Main.htm"; $main=join('',file($main_file));