/[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.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    
 $section=str_replace(".php","",basename($PHP_SELF));  
 $smarty->assign("section",$section);  
   
9  include("common.inc");  include("common.inc");
10    
11  $title="CAREERS";  include("section.inc");
12  if ($menu_item) $title.=" : $menu_item";  $smarty->assign("section",$section);
13  $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";
# Line 23  if (file_exists($main_file.$part.".htm") Line 19  if (file_exists($main_file.$part.".htm")
19    
20          if ($part == "Mail" && !check_required()) $part="ApplicationForm";          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          $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                  from open_positions,open_position_locations
24                  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";
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 39  if (file_exists($main_file.$part.".htm") Line 35  if (file_exists($main_file.$part.".htm")
35                          $sth = $dbh->prepare($sql);                          $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                  }                  }
# Line 73  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="dpavlin@pliva.hr";                          $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          }          }

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

  ViewVC Help
Powered by ViewVC 1.1.26