37 |
} |
} |
38 |
|
|
39 |
$main_file="./fc/"; |
$main_file="./fc/"; |
40 |
if (file_exists($main_file.$part.".htm")) { |
if ($part=="ContactUs") { |
41 |
|
$sth = $dbh->prepare("select name,comment,email,tel,fax from fc_contact where is_office is not true order by num"); |
42 |
|
$sth->execute(); |
43 |
|
while ($row=$sth->fetchrow_hash()) { |
44 |
|
$person[]=$row; |
45 |
|
} |
46 |
|
|
47 |
|
$sth = $dbh->prepare("select office,name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is true order by num"); |
48 |
|
$sth->execute(); |
49 |
|
while ($row=$sth->fetchrow_hash()) { |
50 |
|
$office[]=$row; |
51 |
|
} |
52 |
|
$smarty->assign( array( person=>$person, office=>$office ) ); |
53 |
|
$main=$smarty->fetch("fc_ContactUs.tpl"); |
54 |
|
|
55 |
|
} elseif (file_exists($main_file.$part.".htm")) { |
56 |
$main_file.=$part.".htm"; |
$main_file.=$part.".htm"; |
57 |
|
$main=join('',file($main_file)); |
58 |
} else { |
} else { |
59 |
$main_file.="Main.htm"; |
$main_file.="Main.htm"; |
60 |
$title="Products : Fine Chemicals"; |
$title="Products : Fine Chemicals"; |
61 |
|
$main=join('',file($main_file)); |
62 |
} |
} |
|
$main=join('',file($main_file)); |
|
63 |
|
|
64 |
include("common.inc"); |
include("common.inc"); |
65 |
|
|