/[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.11 by dpavlin, Tue Apr 10 11:02:47 2001 UTC revision 1.14 by dpavlin, Tue Sep 18 10:26:46 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  include("common.inc");  include("common.inc");
   
13  $title="CAREERS";  $title="CAREERS";
14  if ($menu_item) $title.=" : $menu_item";  if ($menu_item) $title.=" : $menu_item";
15  $lpic="careers"; $lext=".jpg";  $lpic="careers"; $lext=".jpg";
# Line 23  if (file_exists($main_file.$part.".htm") Line 22  if (file_exists($main_file.$part.".htm")
22    
23          if ($part == "Mail" && !check_required()) $part="ApplicationForm";          if ($part == "Mail" && !check_required()) $part="ApplicationForm";
24    
25          $sql="select num,title,job_code,department,open_position_locations.location as location,description,edu_req,qual_req          $sql="select num,title,job_code,department,open_position_locations.location as location,description,edu_req,qual_req,open_position_locations.email as sendto
26                  from open_positions,open_position_locations                  from open_positions,open_position_locations
27                  where open_positions.location_id=open_position_locations.id and visible is true";                  where open_positions.location_id=open_position_locations.id and $visible_is_true";
28          if ($part == "ApplicationForm") {          if ($part == "ApplicationForm") {
29                  $sth = $dbh->prepare("select iso,name from countries order by name");                  $sth = $dbh->prepare("select iso,name from countries order by name");
30                  $sth->execute();                  $sth->execute();
# Line 39  if (file_exists($main_file.$part.".htm") Line 38  if (file_exists($main_file.$part.".htm")
38                          $sth = $dbh->prepare($sql);                          $sth = $dbh->prepare($sql);
39                          $sth->execute();                          $sth->execute();
40                          if ($row=$sth->fetchrow_hash()) {                          if ($row=$sth->fetchrow_hash()) {
41                                    include("rot13.inc");
42                                    $row[sendto]=rot13($row[sendto]);
43                                  $smarty->assign("position",$row);                                  $smarty->assign("position",$row);
44                          }                          }
45                  }                  }
# Line 73  Resume: $resume_name ($resume_size bytes Line 74  Resume: $resume_name ($resume_size bytes
74  ";  ";
75                  $smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>");                  $smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>");
76                  include("class.CMailFile");                  include("class.CMailFile");
77  #               $sendto="careercenter@pliva.hr";                  if (!isset($sendto) || !strstr($sendto,"@")) {
78                  $sendto="dpavlin@pliva.hr";                          $sendto="careercenter@pliva.hr";
79                    } else {
80                            include("rot13.inc");
81                            $sendto=rot13($sendto);
82                    }
83                  $replyto="$first_name $last_name <$email>";                  $replyto="$first_name $last_name <$email>";
84                  $mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume);                  $mailfile = new CMailFile("Application for $open_position",$sendto,$replyto,$mail,$resume);
85                  $mailfile->sendfile();                  $mailfile->sendfile();
86                  @unlink($resume);                  @unlink($resume);
87          }          }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.26