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-"; |
17 |
if (file_exists($main_file.$part.".htm")) { |
if (file_exists($main_file.$part.".htm")) { |
18 |
$main_file.=$part.".htm"; |
$main_file.=$part.".htm"; |
19 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |
20 |
|
} elseif (file_exists("./templates/Careers-".$part.".tpl")) { |
21 |
|
|
22 |
|
if ($part == "ApplicationForm") { |
23 |
|
$sth = $dbh->prepare("select iso,name from countries order by name"); |
24 |
|
$sth->execute(); |
25 |
|
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 |
|
} elseif ($part == "Mail") { |
37 |
|
|
38 |
|
$mail=" |
39 |
|
First name: $first_name |
40 |
|
Last name: $last_name |
41 |
|
Address: $address1 |
42 |
|
$address2 |
43 |
|
City: $city |
44 |
|
State: $state |
45 |
|
ZIP: $zip |
46 |
|
Country: $country |
47 |
|
e-mail: $email |
48 |
|
tel: $tel |
49 |
|
Purpose: $purpose |
50 |
|
Interest: $intereset |
51 |
|
$other_what |
52 |
|
Comments: |
53 |
|
$comments |
54 |
|
|
55 |
|
Resume: $resume_name ($resume_size bytes) |
56 |
|
"; |
57 |
|
$smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>"); |
58 |
|
include("class.CMailFile"); |
59 |
|
$sendto="careercenter@pliva.hr"; |
60 |
|
$replyto="$first_name $last_name <$email>"; |
61 |
|
$mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume); |
62 |
|
$mailfile->sendfile(); |
63 |
|
@unlink($resume); |
64 |
|
} |
65 |
|
|
66 |
|
$main=$smarty->fetch("Careers-".$part.".tpl"); |
67 |
} else { |
} else { |
68 |
$main_file.="Main.htm"; |
$main_file.="Main.htm"; |
69 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |
75 |
include("common.inc"); |
include("common.inc"); |
76 |
$smarty->assign("MAIN",$main); |
$smarty->assign("MAIN",$main); |
77 |
|
|
|
$smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)); |
|
|
|
|
78 |
$smarty->assign("contact_url","careers.php?part=ContactUs"); |
$smarty->assign("contact_url","careers.php?part=ContactUs"); |
79 |
|
|
80 |
$smarty->display("index.tpl"); |
$smarty->display("index.tpl"); |
81 |
?> |
?> |
82 |
|
|