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 |
dpavlin |
1.2 |
$sub_part=substr($part,0,strpos($part,"-")); |
25 |
|
|
if ($sub_part == "CustomManuf") { |
26 |
|
|
$multi_page=array( |
27 |
|
|
"fine_chemicals.php?part=CustomManuf-Page1", |
28 |
|
|
"fine_chemicals.php?part=CustomManuf-Page2", |
29 |
|
|
"fine_chemicals.php?part=CustomManuf-Page3", |
30 |
|
|
"fine_chemicals.php?part=CustomManuf-Page4", |
31 |
|
|
"fine_chemicals.php?part=CustomManuf-Page5", |
32 |
|
|
); |
33 |
|
|
} |
34 |
dpavlin |
1.1 |
|
35 |
|
|
$main_file="./fc/"; |
36 |
|
|
if (file_exists($main_file.$part.".htm")) { |
37 |
|
|
$main_file.=$part.".htm"; |
38 |
|
|
} else { |
39 |
|
|
$main_file.="Main.htm"; |
40 |
|
|
} |
41 |
|
|
$main=join('',file($main_file)); |
42 |
|
|
|
43 |
|
|
include("common.inc"); |
44 |
dpavlin |
1.2 |
|
45 |
|
|
unset($menu); |
46 |
|
|
|
47 |
|
|
$sth = $dbh->prepare("select item,url,file from menu where section='fine' order by num"); |
48 |
|
|
$sth->execute(); |
49 |
|
|
while ($row=$sth->fetchrow_hash()) { |
50 |
|
|
$menu[]=$row; |
51 |
|
|
} |
52 |
|
|
$smarty->assign("menu",$menu); |
53 |
|
|
|
54 |
|
|
$smarty->assign( array(back_url=>$back_url, MAIN=>$main, |
55 |
|
|
contact_url => 'fine_chemicals.php?part=ContactUs')); |
56 |
dpavlin |
1.1 |
|
57 |
|
|
$smarty->display("index.tpl"); |
58 |
|
|
?> |