/[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.9 by dpavlin, Sun Mar 18 23:36:26 2001 UTC revision 1.15 by dpavlin, Mon Oct 1 14:05:16 2001 UTC
# Line 6  $smarty = new Smarty; Line 6  $smarty = new Smarty;
6    
7  $smarty->assign( array ( Title=>"Pliva d.d." ) );  $smarty->assign( array ( Title=>"Pliva d.d." ) );
8    
9  $section=str_replace(".php","",basename($PHP_SELF));  include("common.inc");
10    
11    include("section.inc");
12  $smarty->assign("section",$section);  $smarty->assign("section",$section);
13    
 $title="CAREERS";  
 if ($menu_item) $title.=" : $menu_item";  
 $lpic="careers"; $lext=".jpg";  
 $mpic="careers.gif";  
14  $main_file="./html/Careers-";  $main_file="./html/Careers-";
15  if (file_exists($main_file.$part.".htm")) {  if (file_exists($main_file.$part.".htm")) {
16          $main_file.=$part.".htm";          $main_file.=$part.".htm";
17          $main=join('',file($main_file));          $main=join('',file($main_file));
18  } elseif (file_exists("./templates/Careers-".$part.".tpl")) {  } elseif (file_exists("./templates/Careers-".$part.".tpl")) {
19    
20            if ($part == "Mail" && !check_required()) $part="ApplicationForm";
21    
22            $sql="select num,title,job_code,department,open_position_locations.location as location,description,edu_req,qual_req,open_position_locations.email as sendto
23                    from open_positions,open_position_locations
24                    where open_positions.location_id=open_position_locations.id and $visible_is_true";
25          if ($part == "ApplicationForm") {          if ($part == "ApplicationForm") {
26                  $sth = $dbh->prepare("select iso,name from countries order by name");                  $sth = $dbh->prepare("select iso,name from countries order by name");
27                  $sth->execute();                  $sth->execute();
# Line 28  if (file_exists($main_file.$part.".htm") Line 31  if (file_exists($main_file.$part.".htm")
31                  $smarty->assign("countries",$countries);                  $smarty->assign("countries",$countries);
32    
33                  if ($position) {                  if ($position) {
34                          $sth = $dbh->prepare("select num,title,job_code,department,location from open_positions where visible is true and num=$position");                          $sql.=" and num=$position";
35                            $sth = $dbh->prepare($sql);
36                          $sth->execute();                          $sth->execute();
37                          if ($row=$sth->fetchrow_hash()) {                          if ($row=$sth->fetchrow_hash()) {
38                                    include("rot13.inc");
39                                    $row[sendto]=rot13($row[sendto]);
40                                  $smarty->assign("position",$row);                                  $smarty->assign("position",$row);
41                          }                          }
42                  }                  }
43          } elseif ($part == "OpenPositions") {          } elseif ($part == "OpenPositions") {
44                  $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");                  $sql.=" and expiration >= date('now') order by num asc";
45                    $sth = $dbh->prepare($sql);
46                  $sth->execute();                  $sth->execute();
47                  while ($row=$sth->fetchrow_hash()) {                  while ($row=$sth->fetchrow_hash()) {
48                          $positions[]=$row;                          $positions[]=$row;
# Line 64  Resume: $resume_name ($resume_size bytes Line 71  Resume: $resume_name ($resume_size bytes
71  ";  ";
72                  $smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>");                  $smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>");
73                  include("class.CMailFile");                  include("class.CMailFile");
74                  $sendto="careercenter@pliva.hr";                  if (!isset($sendto) || !strstr($sendto,"@")) {
75                            $sendto="careercenter@pliva.hr";
76                    } else {
77                            include("rot13.inc");
78                            $sendto=rot13($sendto);
79                    }
80                  $replyto="$first_name $last_name <$email>";                  $replyto="$first_name $last_name <$email>";
81                  $mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume);                  $mailfile = new CMailFile("Application for $open_position",$sendto,$replyto,$mail,$resume);
82                  $mailfile->sendfile();                  $mailfile->sendfile();
83                  @unlink($resume);                  @unlink($resume);
84          }          }
# Line 80  Resume: $resume_name ($resume_size bytes Line 92  Resume: $resume_name ($resume_size bytes
92    
93  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
94    
 include("common.inc");  
95  $smarty->assign("MAIN",$main);  $smarty->assign("MAIN",$main);
96    
97  $smarty->assign("contact_url","careers.php?part=ContactUs");  $smarty->assign("contact_url","careers.php?part=ContactUs");

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.26