--- careers.php 2001/04/10 11:02:47 1.11
+++ careers.php 2002/04/25 12:16:41 1.18
@@ -1,20 +1,27 @@
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";
@@ -23,9 +30,9 @@
if ($part == "Mail" && !check_required()) $part="ApplicationForm";
- $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
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();
@@ -39,6 +46,8 @@
$sth = $dbh->prepare($sql);
$sth->execute();
if ($row=$sth->fetchrow_hash()) {
+ include("rot13.inc");
+ $row[sendto]=rot13($row[sendto]);
$smarty->assign("position",$row);
}
}
@@ -73,27 +82,35 @@
";
$smarty->assign("mail","You sent following e-mail: