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 |
|
|
$lpic="products"; $lext=".jpg"; |
22 |
|
|
$mpic="products.gif"; |
23 |
dpavlin |
1.1 |
|
24 |
|
|
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
25 |
|
|
|
26 |
dpavlin |
1.2 |
|
27 |
|
|
if (file_exists("html/$part.htm")) { |
28 |
|
|
$main=join('',file("html/$part.htm")); |
29 |
|
|
} else { |
30 |
|
|
$main=$smarty->fetch("$main_file.tpl"); |
31 |
|
|
} |
32 |
|
|
|
33 |
dpavlin |
1.1 |
include("common.inc"); |
34 |
dpavlin |
1.3 |
|
35 |
dpavlin |
1.1 |
$smarty->assign("MAIN",$main); |
36 |
|
|
|
37 |
|
|
$smarty->display("index.tpl"); |
38 |
|
|
?> |