/[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

Contents of /careers.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations)
Mon Mar 19 10:47:46 2001 UTC (18 years, 1 month ago) by dpavlin
Branch: MAIN
Changes since 1.9: +4 -1 lines
required fields

1 <?php
2 require("Smarty.class.php");
3 require("conn.inc");
4
5 $smarty = new Smarty;
6
7 $smarty->assign( array ( Title=>"Pliva d.d." ) );
8
9 $section=str_replace(".php","",basename($PHP_SELF));
10 $smarty->assign("section",$section);
11
12 include("common.inc");
13
14 $title="CAREERS";
15 if ($menu_item) $title.=" : $menu_item";
16 $lpic="careers"; $lext=".jpg";
17 $mpic="careers.gif";
18 $main_file="./html/Careers-";
19 if (file_exists($main_file.$part.".htm")) {
20 $main_file.=$part.".htm";
21 $main=join('',file($main_file));
22 } elseif (file_exists("./templates/Careers-".$part.".tpl")) {
23
24 if ($part == "Mail" && !check_required()) $part="ApplicationForm";
25
26 if ($part == "ApplicationForm") {
27 $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 }
77
78 $main=$smarty->fetch("Careers-".$part.".tpl");
79 } else {
80 $main_file.="Main.htm";
81 $main=join('',file($main_file));
82 }
83
84
85 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
86
87 $smarty->assign("MAIN",$main);
88
89 $smarty->assign("contact_url","careers.php?part=ContactUs");
90
91 $smarty->display("index.tpl");
92 ?>
93

  ViewVC Help
Powered by ViewVC 1.1.26