/[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.1.1.1 by dpavlin, Mon Feb 19 16:22:20 2001 UTC revision 1.5 by dpavlin, Mon Mar 5 13:32:53 2001 UTC
# Line 10  $section=str_replace(".php","",basename( Line 10  $section=str_replace(".php","",basename(
10  $smarty->assign("section",$section);  $smarty->assign("section",$section);
11    
12  $title="CAREERS";  $title="CAREERS";
13    if ($menu_item) $title.=" : $menu_item";
14  $lpic="careers"; $lext=".jpg";  $lpic="careers"; $lext=".jpg";
15  $mpic="careers.gif";  $mpic="careers.gif";
16  $main_file="./html/Careers-";  $main_file="./html/Careers-";
17  if (file_exists($main_file.$part.".htm")) {  if (file_exists($main_file.$part.".htm")) {
18          $main_file.=$part.".htm";          $main_file.=$part.".htm";
19          $main=join('',file($main_file));          $main=join('',file($main_file));
20    } elseif (file_exists("./templates/Careers-".$part.".tpl")) {
21    
22            if ($part == "ApplicationForm") {
23                    $sth = $dbh->prepare("select iso,name from countries order by name");
24                    $sth->execute();
25                    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            }
37    
38            $main=$smarty->fetch("Careers-".$part.".tpl");
39  } else {  } else {
40          $main_file.="Main.htm";          $main_file.="Main.htm";
41          $main=join('',file($main_file));          $main=join('',file($main_file));

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

  ViewVC Help
Powered by ViewVC 1.1.26