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