33 |
$positions[]=$row; |
$positions[]=$row; |
34 |
} |
} |
35 |
$smarty->assign("positions",$positions); |
$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"); |
$main=$smarty->fetch("Careers-".$part.".tpl"); |
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 |
|
|