8 |
|
|
9 |
$section="products"; |
$section="products"; |
10 |
|
|
11 |
$title="Products : SMPC"; |
include("section.inc"); |
|
$lpic="products"; $lext=".jpg"; |
|
|
$mpic="products.gif"; |
|
|
$back_url="products.php"; |
|
12 |
|
|
13 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
$title.=" : SMPC"; |
14 |
|
$back_url="products.php"; |
15 |
|
|
16 |
if (isset($smpc)) { |
if (isset($smpc)) { |
17 |
|
|
18 |
|
$sth = $dbh->prepare("select brand,form from products where smpc=$smpc"); |
19 |
|
$sth->execute(); |
20 |
|
if ($row=$sth->fetchrow_hash()) $title.=" : $row[brand] $row[form]"; |
21 |
|
|
22 |
$sth = $dbh->prepare("select section,title,body |
$sth = $dbh->prepare("select section,title,body |
23 |
from sections,paragraphs |
from sections,paragraphs |
24 |
where smpc=$smpc and sections.id=section_id and section<=5.2 |
where smpc=$smpc and sections.id=section_id and section<=5.2 |
31 |
$smarty->assign("smpc",$data); |
$smarty->assign("smpc",$data); |
32 |
} |
} |
33 |
|
|
34 |
|
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, Section_title=>$title ) ); |
35 |
|
|
36 |
$main=$smarty->fetch("smpc.tpl"); |
$main=$smarty->fetch("smpc.tpl"); |
37 |
|
|
38 |
include("common.inc"); |
include("common.inc"); |
39 |
$smarty->assign( array(back_url=>$back_url, MAIN=>$main)); |
$smarty->assign( array(back_url=>$back_url, contact_from=>"human_health", MAIN=>$main)); |
40 |
|
|
41 |
$smarty->display("index.tpl"); |
$smarty->display("index.tpl"); |
42 |
?> |
?> |