/**
* Global Page Function
*
* @return HTML_as_str
*/
+ function ShowCategories ()
{
+ extract($GLOBALS);
+ $sTempHTML .= "
+
";
// --- Get list of all categories
+ $objRS=$db->get_results("SELECT * FROM tbl_local_categories WHERE Archived = 0 AND LC_active = 1 AND Shop_ID = ".$intShopID." ORDER BY LC_Order, LC_Name");
+ foreach ($objRS as $CategoryList)
{
+ if ($CategoryList->LCID == $_REQUEST['pcid'])
{
+ $sTempHTML .="LCID."'>".$CategoryList->LC_Name."";
// --- Find out how many items in current category
+ $sTempHTML .=" (".$CategoryList->LC_Item_Count.")
\r\n";
}
+ $sTempHTML .="
";
+ return $sTempHTML;
}
?>