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 |
$lpic="careers"; $lext=".jpg"; |
14 |
$mpic="careers.gif"; |
15 |
$main_file="./html/Careers-"; |
16 |
if (file_exists($main_file.$part.".htm")) { |
17 |
$main_file.=$part.".htm"; |
18 |
$main=join('',file($main_file)); |
19 |
} elseif (file_exists("./templates/Careers-".$part.".tpl")) { |
20 |
|
21 |
$sth = $dbh->prepare("select iso,name from countries order by iso"); |
22 |
$sth->execute(); |
23 |
while ($row=$sth->fetchrow_hash()) { |
24 |
$countries[]=$row; |
25 |
} |
26 |
$smarty->assign("countries",$countries); |
27 |
|
28 |
$main=$smarty->fetch("Careers-".$part.".tpl"); |
29 |
} else { |
30 |
$main_file.="Main.htm"; |
31 |
$main=join('',file($main_file)); |
32 |
} |
33 |
|
34 |
|
35 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
36 |
|
37 |
include("common.inc"); |
38 |
$smarty->assign("MAIN",$main); |
39 |
|
40 |
$smarty->assign("debug",$PHP_SELF." -- ".basename($PHP_SELF)); |
41 |
|
42 |
$smarty->assign("contact_url","careers.php?part=ContactUs"); |
43 |
|
44 |
$smarty->display("index.tpl"); |
45 |
?> |