/[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.4 by dpavlin, Sat Mar 3 12:56:33 2001 UTC revision 1.5 by dpavlin, Mon Mar 5 13:32:53 2001 UTC
# Line 19  if (file_exists($main_file.$part.".htm") Line 19  if (file_exists($main_file.$part.".htm")
19          $main=join('',file($main_file));          $main=join('',file($main_file));
20  } elseif (file_exists("./templates/Careers-".$part.".tpl")) {  } elseif (file_exists("./templates/Careers-".$part.".tpl")) {
21    
22          $sth = $dbh->prepare("select iso,name from countries order by name");          if ($part == "ApplicationForm") {
23          $sth->execute();                  $sth = $dbh->prepare("select iso,name from countries order by name");
24          while ($row=$sth->fetchrow_hash()) {                  $sth->execute();
25                  $countries[]=$row;                  while ($row=$sth->fetchrow_hash()) {
26                            $countries[]=$row;
27                    }
28                    $smarty->assign("countries",$countries);
29            } elseif ($part == "OpenPositions") {
30                    $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");
31                    $sth->execute();
32                    while ($row=$sth->fetchrow_hash()) {
33                            $positions[]=$row;
34                    }
35                    $smarty->assign("positions",$positions);
36          }          }
         $smarty->assign("countries",$countries);  
37    
38          $main=$smarty->fetch("Careers-".$part.".tpl");          $main=$smarty->fetch("Careers-".$part.".tpl");
39  } else {  } else {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.26