/[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.16 by dpavlin, Tue Oct 2 07:45:45 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("section.inc");
 $smarty->assign("section",$section);  
10    
11  include("common.inc");  include("common.inc");
12    
 $title="CAREERS";  
 if ($menu_item) $title.=" : $menu_item";  
 $lpic="careers"; $lext=".jpg";  
 $mpic="careers.gif";  
13  $main_file="./html/Careers-";  $main_file="./html/Careers-";
14  if (file_exists($main_file.$part.".htm")) {  if (file_exists($main_file.$part.".htm")) {
15          $main_file.=$part.".htm";          $main_file.=$part.".htm";
# Line 23  if (file_exists($main_file.$part.".htm") Line 18  if (file_exists($main_file.$part.".htm")
18    
19          if ($part == "Mail" && !check_required()) $part="ApplicationForm";          if ($part == "Mail" && !check_required()) $part="ApplicationForm";
20    
21          $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
22                  from open_positions,open_position_locations                  from open_positions,open_position_locations
23                  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";
24          if ($part == "ApplicationForm") {          if ($part == "ApplicationForm") {
25                  $sth = $dbh->prepare("select iso,name from countries order by name");                  $sth = $dbh->prepare("select iso,name from countries order by name");
26                  $sth->execute();                  $sth->execute();
# Line 39  if (file_exists($main_file.$part.".htm") Line 34  if (file_exists($main_file.$part.".htm")
34                          $sth = $dbh->prepare($sql);                          $sth = $dbh->prepare($sql);
35                          $sth->execute();                          $sth->execute();
36                          if ($row=$sth->fetchrow_hash()) {                          if ($row=$sth->fetchrow_hash()) {
37                                    include("rot13.inc");
38                                    $row[sendto]=rot13($row[sendto]);
39                                  $smarty->assign("position",$row);                                  $smarty->assign("position",$row);
40                          }                          }
41                  }                  }
# Line 73  Resume: $resume_name ($resume_size bytes Line 70  Resume: $resume_name ($resume_size bytes
70  ";  ";
71                  $smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>");                  $smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>");
72                  include("class.CMailFile");                  include("class.CMailFile");
73  #               $sendto="careercenter@pliva.hr";                  if (!isset($sendto) || !strstr($sendto,"@")) {
74                  $sendto="dpavlin@pliva.hr";                          $sendto="careercenter@pliva.hr";
75                    } else {
76                            include("rot13.inc");
77                            $sendto=rot13($sendto);
78                    }
79                  $replyto="$first_name $last_name <$email>";                  $replyto="$first_name $last_name <$email>";
80                  $mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume);                  $mailfile = new CMailFile("Application for $open_position",$sendto,$replyto,$mail,$resume);
81                  $mailfile->sendfile();                  $mailfile->sendfile();
82                  @unlink($resume);                  @unlink($resume);
83          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.26