21 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
22 |
|
|
23 |
|
|
24 |
$multi_page=array( |
$sub_part=substr($part,0,strpos($part,"-")); |
25 |
"fine_chemicals.php?part=Main", |
if ($sub_part == "CustomManuf") { |
26 |
"fine_chemicals.php?part=Profile", |
$multi_page=array( |
27 |
"fine_chemicals.php?part=Products", |
"fine_chemicals.php?part=CustomManuf-Page1", |
28 |
"fine_chemicals.php?part=CustomManuf-Page1", |
"fine_chemicals.php?part=CustomManuf-Page2", |
29 |
"fine_chemicals.php?part=CustomManuf-Page2", |
"fine_chemicals.php?part=CustomManuf-Page3", |
30 |
"fine_chemicals.php?part=CustomManuf-Page3", |
"fine_chemicals.php?part=CustomManuf-Page4", |
31 |
"fine_chemicals.php?part=CustomManuf-Page4", |
"fine_chemicals.php?part=CustomManuf-Page5", |
32 |
"fine_chemicals.php?part=CustomManuf-Page5", |
); |
33 |
"fine_chemicals.php?part=ContactUs" |
} |
|
); |
|
34 |
|
|
35 |
$main_file="./fc/"; |
$main_file="./fc/"; |
36 |
if (file_exists($main_file.$part.".htm")) { |
if (file_exists($main_file.$part.".htm")) { |
41 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |
42 |
|
|
43 |
include("common.inc"); |
include("common.inc"); |
44 |
$smarty->assign( array(back_url=>$back_url, MAIN=>$main)); |
|
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 |
|
|
57 |
$smarty->display("index.tpl"); |
$smarty->display("index.tpl"); |
58 |
?> |
?> |