|
|
 Bissinger's is a European-style
chocolatier with a history that dates
back to the 17th century. |
 |
|
|
|

\n", mysql_error());
exit();
}
$tpl = new IntegratedTemplate();
$tpl->loadTemplatefile($template, true, true);
$tpl->touchBlock('__global__');
home_menu($tpl);
while($cat = mysql_fetch_assoc($catresult)) {
$tpl->setCurrentBlock("category");
$tpl->setVariable('category_name',$cat["name"]);
$tpl->setVariable('category_id',$cat["id"]);
$item_res = mysql_query("SELECT * FROM item i WHERE active = 'Y' and cat_id = {$cat['id']} order by display_order");
while($item = mysql_fetch_assoc($item_res)) {
$tpl->setCurrentBlock("item_detail");
$tpl->setVariable('item_name',strtolower($item["name"]));
$tpl->setVariable('item_id',$item["id"]);
$tpl->parseCurrentBlock("item_detail");
}
$tpl->setCurrentBlock("category");
$tpl->parseCurrentBlock("category");
}
$tpl->show();
}
showForm();
?>
|