/[corp_html]/careers.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /careers.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by dpavlin, Mon Mar 12 14:01:50 2001 UTC revision 1.10 by dpavlin, Mon Mar 19 10:47:46 2001 UTC
# Line 9  $smarty->assign( array ( Title=>"Pliva d Line 9  $smarty->assign( array ( Title=>"Pliva d
9  $section=str_replace(".php","",basename($PHP_SELF));  $section=str_replace(".php","",basename($PHP_SELF));
10  $smarty->assign("section",$section);  $smarty->assign("section",$section);
11    
12    include("common.inc");
13    
14  $title="CAREERS";  $title="CAREERS";
15  if ($menu_item) $title.=" : $menu_item";  if ($menu_item) $title.=" : $menu_item";
16  $lpic="careers"; $lext=".jpg";  $lpic="careers"; $lext=".jpg";
# Line 19  if (file_exists($main_file.$part.".htm") Line 21  if (file_exists($main_file.$part.".htm")
21          $main=join('',file($main_file));          $main=join('',file($main_file));
22  } elseif (file_exists("./templates/Careers-".$part.".tpl")) {  } elseif (file_exists("./templates/Careers-".$part.".tpl")) {
23    
24            if ($part == "Mail" && !check_required()) $part="ApplicationForm";
25    
26          if ($part == "ApplicationForm") {          if ($part == "ApplicationForm") {
27                  $sth = $dbh->prepare("select iso,name from countries order by name");                  $sth = $dbh->prepare("select iso,name from countries order by name");
28                  $sth->execute();                  $sth->execute();
# Line 35  if (file_exists($main_file.$part.".htm") Line 39  if (file_exists($main_file.$part.".htm")
39                          }                          }
40                  }                  }
41          } elseif ($part == "OpenPositions") {          } elseif ($part == "OpenPositions") {
42                  $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 = $dbh->prepare("select num,title,job_code,department,location,description,edu_req,qual_req from open_positions where visible is true and expiration >= date('now') order by num asc");
43                  $sth->execute();                  $sth->execute();
44                  while ($row=$sth->fetchrow_hash()) {                  while ($row=$sth->fetchrow_hash()) {
45                          $positions[]=$row;                          $positions[]=$row;
# Line 80  Resume: $resume_name ($resume_size bytes Line 84  Resume: $resume_name ($resume_size bytes
84    
85  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
86    
 include("common.inc");  
87  $smarty->assign("MAIN",$main);  $smarty->assign("MAIN",$main);
88    
89  $smarty->assign("contact_url","careers.php?part=ContactUs");  $smarty->assign("contact_url","careers.php?part=ContactUs");

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.26