6 |
|
|
7 |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
8 |
|
|
9 |
$section=str_replace(".php","",basename($PHP_SELF)); |
include("section.inc"); |
|
$smarty->assign("section",$section); |
|
10 |
|
|
11 |
include("common.inc"); |
include("common.inc"); |
12 |
|
|
|
$title="CAREERS"; |
|
|
if ($menu_item) $title.=" : $menu_item"; |
|
|
$lpic="careers"; $lext=".jpg"; |
|
|
$mpic="careers.gif"; |
|
13 |
$main_file="./html/Careers-"; |
$main_file="./html/Careers-"; |
14 |
if (file_exists($main_file.$part.".htm")) { |
if (file_exists($main_file.$part.".htm")) { |
15 |
$main_file.=$part.".htm"; |
$main_file.=$part.".htm"; |
20 |
|
|
21 |
$sql="select num,title,job_code,department,open_position_locations.location as location,description,edu_req,qual_req,open_position_locations.email as sendto |
$sql="select num,title,job_code,department,open_position_locations.location as location,description,edu_req,qual_req,open_position_locations.email as sendto |
22 |
from open_positions,open_position_locations |
from open_positions,open_position_locations |
23 |
where open_positions.location_id=open_position_locations.id and visible is true"; |
where open_positions.location_id=open_position_locations.id and $visible_is_true"; |
24 |
if ($part == "ApplicationForm") { |
if ($part == "ApplicationForm") { |
25 |
$sth = $dbh->prepare("select iso,name from countries order by name"); |
$sth = $dbh->prepare("select iso,name from countries order by name"); |
26 |
$sth->execute(); |
$sth->execute(); |
77 |
$sendto=rot13($sendto); |
$sendto=rot13($sendto); |
78 |
} |
} |
79 |
$replyto="$first_name $last_name <$email>"; |
$replyto="$first_name $last_name <$email>"; |
80 |
$mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume); |
$mailfile = new CMailFile("Application for $open_position",$sendto,$replyto,$mail,$resume); |
81 |
$mailfile->sendfile(); |
$mailfile->sendfile(); |
82 |
@unlink($resume); |
@unlink($resume); |
83 |
} |
} |