9 |
$section=str_replace(".php","",basename($PHP_SELF)); |
$section=str_replace(".php","",basename($PHP_SELF)); |
10 |
$smarty->assign("section",$section); |
$smarty->assign("section",$section); |
11 |
|
|
12 |
|
include("common.inc"); |
13 |
|
|
14 |
$title="CAREERS"; |
$title="CAREERS"; |
15 |
if ($menu_item) $title.=" : $menu_item"; |
if ($menu_item) $title.=" : $menu_item"; |
16 |
$lpic="careers"; $lext=".jpg"; |
$lpic="careers"; $lext=".jpg"; |
21 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |
22 |
} elseif (file_exists("./templates/Careers-".$part.".tpl")) { |
} elseif (file_exists("./templates/Careers-".$part.".tpl")) { |
23 |
|
|
24 |
|
if ($part == "Mail" && !check_required()) $part="ApplicationForm"; |
25 |
|
|
26 |
if ($part == "ApplicationForm") { |
if ($part == "ApplicationForm") { |
27 |
$sth = $dbh->prepare("select iso,name from countries order by name"); |
$sth = $dbh->prepare("select iso,name from countries order by name"); |
28 |
$sth->execute(); |
$sth->execute(); |
30 |
$countries[]=$row; |
$countries[]=$row; |
31 |
} |
} |
32 |
$smarty->assign("countries",$countries); |
$smarty->assign("countries",$countries); |
33 |
|
|
34 |
|
if ($position) { |
35 |
|
$sth = $dbh->prepare("select num,title,job_code,department,location from open_positions where visible is true and num=$position"); |
36 |
|
$sth->execute(); |
37 |
|
if ($row=$sth->fetchrow_hash()) { |
38 |
|
$smarty->assign("position",$row); |
39 |
|
} |
40 |
|
} |
41 |
} elseif ($part == "OpenPositions") { |
} elseif ($part == "OpenPositions") { |
42 |
$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 = $dbh->prepare("select num,title,job_code,department,location,description,edu_req,qual_req from open_positions where visible is true and expiration >= date('now') order by num asc"); |
43 |
$sth->execute(); |
$sth->execute(); |
44 |
while ($row=$sth->fetchrow_hash()) { |
while ($row=$sth->fetchrow_hash()) { |
45 |
$positions[]=$row; |
$positions[]=$row; |
58 |
Country: $country |
Country: $country |
59 |
e-mail: $email |
e-mail: $email |
60 |
tel: $tel |
tel: $tel |
61 |
Purpose: $purpose |
Purpose: $purpose $open_position |
62 |
Interest: $intereset |
Interest: $intereset |
63 |
$other_what |
$other_what |
64 |
Comments: |
Comments: |
84 |
|
|
85 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
86 |
|
|
|
include("common.inc"); |
|
87 |
$smarty->assign("MAIN",$main); |
$smarty->assign("MAIN",$main); |
88 |
|
|
89 |
$smarty->assign("contact_url","careers.php?part=ContactUs"); |
$smarty->assign("contact_url","careers.php?part=ContactUs"); |