/[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.4 by dpavlin, Sat Mar 3 12:56:33 2001 UTC revision 1.10 by dpavlin, Mon Mar 19 10:47:46 2001 UTC
# Line 9  $smarty->assign( array ( Title=>"Pliva d Line 9  $smarty->assign( array ( Title=>"Pliva d
9  $section=str_replace(".php","",basename($PHP_SELF));  $section=str_replace(".php","",basename($PHP_SELF));
10  $smarty->assign("section",$section);  $smarty->assign("section",$section);
11    
12    include("common.inc");
13    
14  $title="CAREERS";  $title="CAREERS";
15  if ($menu_item) $title.=" : $menu_item";  if ($menu_item) $title.=" : $menu_item";
16  $lpic="careers"; $lext=".jpg";  $lpic="careers"; $lext=".jpg";
# Line 19  if (file_exists($main_file.$part.".htm") Line 21  if (file_exists($main_file.$part.".htm")
21          $main=join('',file($main_file));          $main=join('',file($main_file));
22  } elseif (file_exists("./templates/Careers-".$part.".tpl")) {  } elseif (file_exists("./templates/Careers-".$part.".tpl")) {
23    
24          $sth = $dbh->prepare("select iso,name from countries order by name");          if ($part == "Mail" && !check_required()) $part="ApplicationForm";
25          $sth->execute();  
26          while ($row=$sth->fetchrow_hash()) {          if ($part == "ApplicationForm") {
27                  $countries[]=$row;                  $sth = $dbh->prepare("select iso,name from countries order by name");
28                    $sth->execute();
29                    while ($row=$sth->fetchrow_hash()) {
30                            $countries[]=$row;
31                    }
32                    $smarty->assign("countries",$countries);
33    
34                    if ($position) {
35                            $sth = $dbh->prepare("select num,title,job_code,department,location from open_positions where visible is true and num=$position");
36                            $sth->execute();
37                            if ($row=$sth->fetchrow_hash()) {
38                                    $smarty->assign("position",$row);
39                            }
40                    }
41            } elseif ($part == "OpenPositions") {
42                    $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");
43                    $sth->execute();
44                    while ($row=$sth->fetchrow_hash()) {
45                            $positions[]=$row;
46                    }
47                    $smarty->assign("positions",$positions);
48            } elseif ($part == "Mail") {
49    
50    $mail="
51    First name: $first_name
52    Last name: $last_name
53    Address: $address1
54            $address2
55    City: $city
56    State: $state
57    ZIP: $zip
58    Country: $country
59    e-mail: $email
60    tel: $tel
61    Purpose: $purpose $open_position
62    Interest: $intereset
63            $other_what
64    Comments:
65    $comments
66    
67    Resume: $resume_name ($resume_size bytes)
68    ";
69                    $smarty->assign("mail","You sent following e-mail:<br><pre>$mail</pre>");
70                    include("class.CMailFile");
71                    $sendto="careercenter@pliva.hr";
72                    $replyto="$first_name $last_name <$email>";
73                    $mailfile = new CMailFile("application for submission",$sendto,$replyto,$mail,$resume);
74                    $mailfile->sendfile();
75                    @unlink($resume);
76          }          }
         $smarty->assign("countries",$countries);  
77    
78          $main=$smarty->fetch("Careers-".$part.".tpl");          $main=$smarty->fetch("Careers-".$part.".tpl");
79  } else {  } else {
# Line 35  if (file_exists($main_file.$part.".htm") Line 84  if (file_exists($main_file.$part.".htm")
84    
85  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
86    
 include("common.inc");  
87  $smarty->assign("MAIN",$main);  $smarty->assign("MAIN",$main);
88    
 $smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF));  
   
89  $smarty->assign("contact_url","careers.php?part=ContactUs");  $smarty->assign("contact_url","careers.php?part=ContactUs");
90    
91  $smarty->display("index.tpl");  $smarty->display("index.tpl");
92  ?>  ?>
93    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.26