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 |
dpavlin |
1.2 |
$multi_page=array( |
13 |
|
|
"products.php?part=Azithromycin1", |
14 |
|
|
"products.php?part=Azithromycin2", |
15 |
|
|
"products.php?part=Azithromycin3" |
16 |
|
|
); |
17 |
|
|
|
18 |
dpavlin |
1.1 |
$main_file=$section; |
19 |
|
|
|
20 |
dpavlin |
1.2 |
$title="PRODUCTS"; |
21 |
dpavlin |
1.4 |
if ($menu_item) $title.=" : $menu_item"; |
22 |
dpavlin |
1.2 |
$lpic="products"; $lext=".jpg"; |
23 |
|
|
$mpic="products.gif"; |
24 |
dpavlin |
1.1 |
|
25 |
|
|
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
26 |
|
|
|
27 |
dpavlin |
1.2 |
|
28 |
|
|
if (file_exists("html/$part.htm")) { |
29 |
|
|
$main=join('',file("html/$part.htm")); |
30 |
|
|
} else { |
31 |
|
|
$main=$smarty->fetch("$main_file.tpl"); |
32 |
|
|
} |
33 |
|
|
|
34 |
dpavlin |
1.1 |
include("common.inc"); |
35 |
dpavlin |
1.3 |
|
36 |
dpavlin |
1.1 |
$smarty->assign("MAIN",$main); |
37 |
|
|
|
38 |
|
|
$smarty->display("index.tpl"); |
39 |
|
|
?> |