12 |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
$smarty->assign( array ( Title=>"Pliva d.d." ) ); |
13 |
|
|
14 |
$section="products"; |
$section="products"; |
15 |
|
include("section.inc"); |
|
if ($menu_item) { |
|
|
$title="Products : Fine Chemicals : $menu_item"; |
|
|
} else { |
|
|
$title="Products : Fine Chemicals"; |
|
|
} |
|
|
$lpic="products"; $lext=".jpg"; |
|
|
$mpic="products.gif"; |
|
16 |
$back_url="products.php"; |
$back_url="products.php"; |
17 |
|
|
|
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
|
|
|
|
|
|
|
18 |
$sub_part=substr($part,0,strpos($part,"-")); |
$sub_part=substr($part,0,strpos($part,"-")); |
19 |
if ($sub_part == "CustomManuf") { |
if ($sub_part == "CustomManuf") { |
20 |
$multi_page=array( |
$multi_page=array( |
28 |
|
|
29 |
$main_file="./fc/"; |
$main_file="./fc/"; |
30 |
if ($part=="ContactUs") { |
if ($part=="ContactUs") { |
31 |
$sth = $dbh->prepare("select name,comment,email,tel,fax from fc_contact where is_office is not true order by num"); |
$sth = $dbh->prepare("select name,comment,addr1,addr2,email,tel,fax from fc_contact where is_office is not true order by num"); |
32 |
$sth->execute(); |
$sth->execute(); |
33 |
while ($row=$sth->fetchrow_hash()) { |
while ($row=$sth->fetchrow_hash()) { |
34 |
$person[]=$row; |
$person[]=$row; |
42 |
$smarty->assign( array( person=>$person, office=>$office ) ); |
$smarty->assign( array( person=>$person, office=>$office ) ); |
43 |
$main=$smarty->fetch("fc_ContactUs.tpl"); |
$main=$smarty->fetch("fc_ContactUs.tpl"); |
44 |
|
|
45 |
|
$title.=" : Contact Us"; |
46 |
|
|
47 |
} elseif (file_exists($main_file.$part.".htm")) { |
} elseif (file_exists($main_file.$part.".htm")) { |
48 |
$main_file.=$part.".htm"; |
$main_file.=$part.".htm"; |
49 |
$main=join('',file($main_file)); |
$main=join('',file($main_file)); |
57 |
|
|
58 |
unset($menu); |
unset($menu); |
59 |
|
|
60 |
$sth = $dbh->prepare("select item,url,file from menu where section='fine' and visible order by num"); |
$sth = $dbh->prepare("select item,url,file from menu where section='fine' and $visible_is_true order by num"); |
61 |
$sth->execute(); |
$sth->execute(); |
62 |
while ($row=$sth->fetchrow_hash()) { |
while ($row=$sth->fetchrow_hash()) { |
63 |
$menu[]=$row; |
$menu[]=$row; |
64 |
} |
} |
65 |
$smarty->assign("menu",$menu); |
$smarty->assign("menu",$menu); |
66 |
|
|
67 |
$smarty->assign( array(back_url=>$back_url, MAIN=>$main, |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, |
68 |
contact_url => 'fine_chemicals.php?part=ContactUs')); |
Section_title=>$title, back_url=>$back_url, MAIN=>$main, |
69 |
|
contact_url => 'fine_chemicals.php?part=ContactUs')); |
70 |
|
|
71 |
$smarty->display("index.tpl"); |
$smarty->display("index.tpl"); |
72 |
?> |
?> |