/[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.6 - (show annotations)
Mon Mar 5 15:36:16 2001 UTC (23 years, 1 month ago) by dpavlin
Branch: MAIN
Changes since 1.5: +0 -2 lines
nuke debug

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 }
37
38 $main=$smarty->fetch("Careers-".$part.".tpl");
39 } else {
40 $main_file.="Main.htm";
41 $main=join('',file($main_file));
42 }
43
44
45 $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) );
46
47 include("common.inc");
48 $smarty->assign("MAIN",$main);
49
50 $smarty->assign("contact_url","careers.php?part=ContactUs");
51
52 $smarty->display("index.tpl");
53 ?>

  ViewVC Help
Powered by ViewVC 1.1.26