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

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

  ViewVC Help
Powered by ViewVC 1.1.26