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 |
include("section.inc"); |
10 |
$smarty->assign("section",$section); |
11 |
|
12 |
$main_file="./html/AboutUs-"; |
13 |
if (file_exists($main_file.$part.".htm")) { |
14 |
$main_file.=$part.".htm"; |
15 |
$main=join('',file($main_file)); |
16 |
} elseif (file_exists("./templates/AboutUs-".$part.".tpl")) { |
17 |
|
18 |
# $sth = $dbh->prepare("select iso,name from countries order by iso"); |
19 |
# $sth->execute(); |
20 |
# while ($row=$sth->fetchrow_hash()) { |
21 |
# $countries[]=$row; |
22 |
# } |
23 |
# $smarty->assign("countries",$countries); |
24 |
|
25 |
$main=$smarty->fetch("AboutUs-".$part.".tpl"); |
26 |
} else { |
27 |
$main_file.="Main.htm"; |
28 |
$main=join('',file($main_file)); |
29 |
$title.=" : Welcome"; |
30 |
} |
31 |
|
32 |
|
33 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
34 |
|
35 |
include("common.inc"); |
36 |
$smarty->assign("MAIN",$main); |
37 |
|
38 |
$smarty->display("index.tpl"); |
39 |
?> |