/[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.5 by dpavlin, Mon Mar 5 13:32:53 2001 UTC revision 1.8 by dpavlin, Mon Mar 12 14:01:50 2001 UTC
# Line 26  if (file_exists($main_file.$part.".htm") Line 26  if (file_exists($main_file.$part.".htm")
26                          $countries[]=$row;                          $countries[]=$row;
27                  }                  }
28                  $smarty->assign("countries",$countries);                  $smarty->assign("countries",$countries);
29    
30                    if ($position) {
31                            $sth = $dbh->prepare("select num,title,job_code,department,location from open_positions where visible is true and num=$position");
32                            $sth->execute();
33                            if ($row=$sth->fetchrow_hash()) {
34                                    $smarty->assign("position",$row);
35                            }
36                    }
37          } elseif ($part == "OpenPositions") {          } elseif ($part == "OpenPositions") {
38                  $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 order by num asc");
39                  $sth->execute();                  $sth->execute();
# Line 33  if (file_exists($main_file.$part.".htm") Line 41  if (file_exists($main_file.$part.".htm")
41                          $positions[]=$row;                          $positions[]=$row;
42                  }                  }
43                  $smarty->assign("positions",$positions);                  $smarty->assign("positions",$positions);
44            } elseif ($part == "Mail") {
45    
46    $mail="
47    First name: $first_name
48    Last name: $last_name
49    Address: $address1
50            $address2
51    City: $city
52    State: $state
53    ZIP: $zip
54    Country: $country
55    e-mail: $email
56    tel: $tel
57    Purpose: $purpose $open_position
58    Interest: $intereset
59            $other_what
60    Comments:
61    $comments
62    
63    Resume: $resume_name ($resume_size bytes)
64    ";
65                    $smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>");
66                    include("class.CMailFile");
67                    $sendto="careercenter@pliva.hr";
68                    $replyto="$first_name $last_name <$email>";
69                    $mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume);
70                    $mailfile->sendfile();
71                    @unlink($resume);
72          }          }
73    
74          $main=$smarty->fetch("Careers-".$part.".tpl");          $main=$smarty->fetch("Careers-".$part.".tpl");
# Line 47  $smarty->assign( array ( lpic=>$lpic, le Line 83  $smarty->assign( array ( lpic=>$lpic, le
83  include("common.inc");  include("common.inc");
84  $smarty->assign("MAIN",$main);  $smarty->assign("MAIN",$main);
85    
 $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF));  
   
86  $smarty->assign("contact_url","careers.php?part=ContactUs");  $smarty->assign("contact_url","careers.php?part=ContactUs");
87    
88  $smarty->display("index.tpl");  $smarty->display("index.tpl");
89  ?>  ?>
90    

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

  ViewVC Help
Powered by ViewVC 1.1.26