/[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.7 - (show annotations)
Tue Mar 6 09:02:05 2001 UTC (18 years, 4 months ago) by dpavlin
Branch: MAIN
Changes since 1.6: +29 -0 lines
submit forme radi (sve ide na careercenter@pliva.hr adresu!)

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

  ViewVC Help
Powered by ViewVC 1.1.26