--- careers.php 2001/04/10 12:43:58 1.12 +++ careers.php 2001/10/02 07:45:45 1.16 @@ -6,15 +6,10 @@ $smarty->assign( array ( Title=>"Pliva d.d." ) ); -$section=str_replace(".php","",basename($PHP_SELF)); -$smarty->assign("section",$section); +include("section.inc"); include("common.inc"); -$title="CAREERS"; -if ($menu_item) $title.=" : $menu_item"; -$lpic="careers"; $lext=".jpg"; -$mpic="careers.gif"; $main_file="./html/Careers-"; if (file_exists($main_file.$part.".htm")) { $main_file.=$part.".htm"; @@ -25,7 +20,7 @@ $sql="select num,title,job_code,department,open_position_locations.location as location,description,edu_req,qual_req,open_position_locations.email as sendto from open_positions,open_position_locations - 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"; if ($part == "ApplicationForm") { $sth = $dbh->prepare("select iso,name from countries order by name"); $sth->execute(); @@ -82,7 +77,7 @@ $sendto=rot13($sendto); } $replyto="$first_name $last_name <$email>"; - $mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume); + $mailfile = new CMailFile("Application for $open_position",$sendto,$replyto,$mail,$resume); $mailfile->sendfile(); @unlink($resume); }