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"; |
24 |
|
|
|
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
|
|
|
|
|
|
|
25 |
$sub_part=substr($part,0,strpos($part,"-")); |
$sub_part=substr($part,0,strpos($part,"-")); |
26 |
if ($sub_part == "CustomManuf") { |
if ($sub_part == "CustomManuf") { |
27 |
$multi_page=array( |
$multi_page=array( |
34 |
} |
} |
35 |
|
|
36 |
$main_file="./fc/"; |
$main_file="./fc/"; |
37 |
if (file_exists($main_file.$part.".htm")) { |
if ($part=="ContactUs") { |
38 |
|
$sth = $dbh->prepare("select name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is not true order by num"); |
39 |
|
$sth->execute(); |
40 |
|
while ($row=$sth->fetchrow_hash()) { |
41 |
|
$person[]=$row; |
42 |
|
} |
43 |
|
|
44 |
|
$sth = $dbh->prepare("select office,name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is true order by num"); |
45 |
|
$sth->execute(); |
46 |
|
while ($row=$sth->fetchrow_hash()) { |
47 |
|
$office[]=$row; |
48 |
|
} |
49 |
|
$smarty->assign( array( person=>$person, office=>$office ) ); |
50 |
|
$main=$smarty->fetch("fc_ContactUs.tpl"); |
51 |
|
|
52 |
|
$title.=" : Contact Us"; |
53 |
|
|
54 |
|
} elseif (file_exists($main_file.$part.".htm")) { |
55 |
$main_file.=$part.".htm"; |
$main_file.=$part.".htm"; |
56 |
|
$main=join('',file($main_file)); |
57 |
} else { |
} else { |
58 |
$main_file.="Main.htm"; |
$main_file.="Main.htm"; |
59 |
|
$title="Products : Fine Chemicals"; |
60 |
|
$main=join('',file($main_file)); |
61 |
} |
} |
|
$main=join('',file($main_file)); |
|
62 |
|
|
63 |
include("common.inc"); |
include("common.inc"); |
64 |
|
|
65 |
unset($menu); |
unset($menu); |
66 |
|
|
67 |
$sth = $dbh->prepare("select item,url,file from menu where section='fine' order by num"); |
$sth = $dbh->prepare("select item,url,file from menu where section='fine' and $visible_is_true order by num"); |
68 |
$sth->execute(); |
$sth->execute(); |
69 |
while ($row=$sth->fetchrow_hash()) { |
while ($row=$sth->fetchrow_hash()) { |
70 |
$menu[]=$row; |
$menu[]=$row; |
71 |
} |
} |
72 |
$smarty->assign("menu",$menu); |
$smarty->assign("menu",$menu); |
73 |
|
|
74 |
$smarty->assign( array(back_url=>$back_url, MAIN=>$main, |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, |
75 |
contact_url => 'fine_chemicals.php?part=ContactUs')); |
Section_title=>$title, back_url=>$back_url, MAIN=>$main, |
76 |
|
contact_url => 'fine_chemicals.php?part=ContactUs')); |
77 |
|
|
78 |
$smarty->display("index.tpl"); |
$smarty->display("index.tpl"); |
79 |
?> |
?> |