10 |
$smarty->assign("section",$section); |
$smarty->assign("section",$section); |
11 |
|
|
12 |
$title="CAREERS"; |
$title="CAREERS"; |
13 |
|
if ($menu_item) $title.=" : $menu_item"; |
14 |
$lpic="careers"; $lext=".jpg"; |
$lpic="careers"; $lext=".jpg"; |
15 |
$mpic="careers.gif"; |
$mpic="careers.gif"; |
16 |
$main_file="./html/Careers-"; |
$main_file="./html/Careers-"; |
19 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |
20 |
} elseif (file_exists("./templates/Careers-".$part.".tpl")) { |
} elseif (file_exists("./templates/Careers-".$part.".tpl")) { |
21 |
|
|
22 |
$sth = $dbh->prepare("select iso,name from countries order by name"); |
if ($part == "ApplicationForm") { |
23 |
$sth->execute(); |
$sth = $dbh->prepare("select iso,name from countries order by name"); |
24 |
while ($row=$sth->fetchrow_hash()) { |
$sth->execute(); |
25 |
$countries[]=$row; |
while ($row=$sth->fetchrow_hash()) { |
26 |
|
$countries[]=$row; |
27 |
|
} |
28 |
|
$smarty->assign("countries",$countries); |
29 |
|
} elseif ($part == "OpenPositions") { |
30 |
|
$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"); |
31 |
|
$sth->execute(); |
32 |
|
while ($row=$sth->fetchrow_hash()) { |
33 |
|
$positions[]=$row; |
34 |
|
} |
35 |
|
$smarty->assign("positions",$positions); |
36 |
} |
} |
|
$smarty->assign("countries",$countries); |
|
37 |
|
|
38 |
$main=$smarty->fetch("Careers-".$part.".tpl"); |
$main=$smarty->fetch("Careers-".$part.".tpl"); |
39 |
} else { |
} else { |