1 |
dpavlin |
1.1 |
<?php |
2 |
|
|
|
3 |
|
|
if ($QUERY_STRING == "") { |
4 |
|
|
Header("Location: $PHP_SELF?part=Main"); |
5 |
|
|
} |
6 |
|
|
|
7 |
|
|
require("Smarty.class.php"); |
8 |
|
|
require("conn.inc"); |
9 |
|
|
|
10 |
|
|
$smarty = new Smarty; |
11 |
|
|
|
12 |
|
|
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
13 |
|
|
|
14 |
|
|
$section="products"; |
15 |
|
|
|
16 |
|
|
$title="Products : Fine Chemicals"; |
17 |
|
|
$lpic="products"; $lext=".jpg"; |
18 |
|
|
$mpic="products.gif"; |
19 |
|
|
$back_url="products.php"; |
20 |
|
|
|
21 |
|
|
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
22 |
|
|
|
23 |
|
|
|
24 |
|
|
$multi_page=array( |
25 |
|
|
"fine_chemicals.php?part=Main", |
26 |
|
|
"fine_chemicals.php?part=Profile", |
27 |
|
|
"fine_chemicals.php?part=Products", |
28 |
|
|
"fine_chemicals.php?part=CustomManuf-Page1", |
29 |
|
|
"fine_chemicals.php?part=CustomManuf-Page2", |
30 |
|
|
"fine_chemicals.php?part=CustomManuf-Page3", |
31 |
|
|
"fine_chemicals.php?part=CustomManuf-Page4", |
32 |
|
|
"fine_chemicals.php?part=CustomManuf-Page5", |
33 |
|
|
"fine_chemicals.php?part=ContactUs" |
34 |
|
|
); |
35 |
|
|
|
36 |
|
|
$main_file="./fc/"; |
37 |
|
|
if (file_exists($main_file.$part.".htm")) { |
38 |
|
|
$main_file.=$part.".htm"; |
39 |
|
|
} else { |
40 |
|
|
$main_file.="Main.htm"; |
41 |
|
|
} |
42 |
|
|
$main=join('',file($main_file)); |
43 |
|
|
|
44 |
|
|
include("common.inc"); |
45 |
|
|
$smarty->assign( array(back_url=>$back_url, MAIN=>$main)); |
46 |
|
|
|
47 |
|
|
$smarty->display("index.tpl"); |
48 |
|
|
?> |