13 |
|
|
14 |
$section="products"; |
$section="products"; |
15 |
|
|
16 |
$title="Products : Fine Chemicals"; |
if ($menu_item) { |
17 |
|
$title="Products : Fine Chemicals : $menu_item"; |
18 |
|
} else { |
19 |
|
$title="Products : Fine Chemicals"; |
20 |
|
} |
21 |
$lpic="products"; $lext=".jpg"; |
$lpic="products"; $lext=".jpg"; |
22 |
$mpic="products.gif"; |
$mpic="products.gif"; |
23 |
$back_url="products.php"; |
$back_url="products.php"; |
25 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
26 |
|
|
27 |
|
|
28 |
$multi_page=array( |
$sub_part=substr($part,0,strpos($part,"-")); |
29 |
"fine_chemicals.php?part=Main", |
if ($sub_part == "CustomManuf") { |
30 |
"fine_chemicals.php?part=Profile", |
$multi_page=array( |
31 |
"fine_chemicals.php?part=Products", |
"fine_chemicals.php?part=CustomManuf-Page1", |
32 |
"fine_chemicals.php?part=CustomManuf-Page1", |
"fine_chemicals.php?part=CustomManuf-Page2", |
33 |
"fine_chemicals.php?part=CustomManuf-Page2", |
"fine_chemicals.php?part=CustomManuf-Page3", |
34 |
"fine_chemicals.php?part=CustomManuf-Page3", |
"fine_chemicals.php?part=CustomManuf-Page4", |
35 |
"fine_chemicals.php?part=CustomManuf-Page4", |
"fine_chemicals.php?part=CustomManuf-Page5", |
36 |
"fine_chemicals.php?part=CustomManuf-Page5", |
); |
37 |
"fine_chemicals.php?part=ContactUs" |
} |
|
); |
|
38 |
|
|
39 |
$main_file="./fc/"; |
$main_file="./fc/"; |
40 |
if (file_exists($main_file.$part.".htm")) { |
if (file_exists($main_file.$part.".htm")) { |
41 |
$main_file.=$part.".htm"; |
$main_file.=$part.".htm"; |
42 |
} else { |
} else { |
43 |
$main_file.="Main.htm"; |
$main_file.="Main.htm"; |
44 |
|
$title="Products : Fine Chemicals"; |
45 |
} |
} |
46 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |
47 |
|
|
48 |
include("common.inc"); |
include("common.inc"); |
49 |
$smarty->assign( array(back_url=>$back_url, MAIN=>$main)); |
|
50 |
|
unset($menu); |
51 |
|
|
52 |
|
$sth = $dbh->prepare("select item,url,file from menu where section='fine' order by num"); |
53 |
|
$sth->execute(); |
54 |
|
while ($row=$sth->fetchrow_hash()) { |
55 |
|
$menu[]=$row; |
56 |
|
} |
57 |
|
$smarty->assign("menu",$menu); |
58 |
|
|
59 |
|
$smarty->assign( array(back_url=>$back_url, MAIN=>$main, |
60 |
|
contact_url => 'fine_chemicals.php?part=ContactUs')); |
61 |
|
|
62 |
$smarty->display("index.tpl"); |
$smarty->display("index.tpl"); |
63 |
?> |
?> |