23 |
|
|
24 |
if ($part == "Mail" && !check_required()) $part="ApplicationForm"; |
if ($part == "Mail" && !check_required()) $part="ApplicationForm"; |
25 |
|
|
26 |
$sql="select num,title,job_code,department,open_position_locations.location as location,description,edu_req,qual_req |
$sql="select num,title,job_code,department,open_position_locations.location as location,description,edu_req,qual_req,open_position_locations.email as sendto |
27 |
from open_positions,open_position_locations |
from open_positions,open_position_locations |
28 |
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"; |
29 |
if ($part == "ApplicationForm") { |
if ($part == "ApplicationForm") { |
39 |
$sth = $dbh->prepare($sql); |
$sth = $dbh->prepare($sql); |
40 |
$sth->execute(); |
$sth->execute(); |
41 |
if ($row=$sth->fetchrow_hash()) { |
if ($row=$sth->fetchrow_hash()) { |
42 |
|
include("rot13.inc"); |
43 |
|
$row[sendto]=rot13($row[sendto]); |
44 |
$smarty->assign("position",$row); |
$smarty->assign("position",$row); |
45 |
} |
} |
46 |
} |
} |
75 |
"; |
"; |
76 |
$smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>"); |
$smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>"); |
77 |
include("class.CMailFile"); |
include("class.CMailFile"); |
78 |
# $sendto="careercenter@pliva.hr"; |
if (!isset($sendto) || !strstr($sendto,"@")) { |
79 |
$sendto="dpavlin@pliva.hr"; |
$sendto="careercenter@pliva.hr"; |
80 |
|
} else { |
81 |
|
include("rot13.inc"); |
82 |
|
$sendto=rot13($sendto); |
83 |
|
} |
84 |
$replyto="$first_name $last_name <$email>"; |
$replyto="$first_name $last_name <$email>"; |
85 |
$mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume); |
$mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume); |
86 |
$mailfile->sendfile(); |
$mailfile->sendfile(); |