--- careers.php 2001/03/05 13:32:53 1.5 +++ careers.php 2001/03/12 14:01:50 1.8 @@ -26,6 +26,14 @@ $countries[]=$row; } $smarty->assign("countries",$countries); + + if ($position) { + $sth = $dbh->prepare("select num,title,job_code,department,location from open_positions where visible is true and num=$position"); + $sth->execute(); + if ($row=$sth->fetchrow_hash()) { + $smarty->assign("position",$row); + } + } } elseif ($part == "OpenPositions") { $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->execute(); @@ -33,6 +41,34 @@ $positions[]=$row; } $smarty->assign("positions",$positions); + } elseif ($part == "Mail") { + +$mail=" +First name: $first_name +Last name: $last_name +Address: $address1 + $address2 +City: $city +State: $state +ZIP: $zip +Country: $country +e-mail: $email +tel: $tel +Purpose: $purpose $open_position +Interest: $intereset + $other_what +Comments: +$comments + +Resume: $resume_name ($resume_size bytes) +"; + $smarty->assign("mail","You sent following e-mail:
$mail
"); + include("class.CMailFile"); + $sendto="careercenter@pliva.hr"; + $replyto="$first_name $last_name <$email>"; + $mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume); + $mailfile->sendfile(); + @unlink($resume); } $main=$smarty->fetch("Careers-".$part.".tpl"); @@ -47,9 +83,8 @@ include("common.inc"); $smarty->assign("MAIN",$main); -$smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)); - $smarty->assign("contact_url","careers.php?part=ContactUs"); $smarty->display("index.tpl"); ?> +