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

Annotation of /careers.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations)
Mon Mar 5 13:32:53 2001 UTC (23 years ago) by dpavlin
Branch: MAIN
Changes since 1.4: +14 -5 lines
open positions iz baze

1 dpavlin 1.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 dpavlin 1.4 if ($menu_item) $title.=" : $menu_item";
14 dpavlin 1.1 $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 dpavlin 1.2 } elseif (file_exists("./templates/Careers-".$part.".tpl")) {
21    
22 dpavlin 1.5 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 dpavlin 1.2 }
37    
38     $main=$smarty->fetch("Careers-".$part.".tpl");
39 dpavlin 1.1 } 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("debug",$PHP_SELF." -- ".basename($PHP_SELF));
51    
52     $smarty->assign("contact_url","careers.php?part=ContactUs");
53    
54     $smarty->display("index.tpl");
55     ?>

  ViewVC Help
Powered by ViewVC 1.1.26