getMaxServices(); $_REQUEST[idcategory] = empty($_REQUEST[idcategory])?0:$_REQUEST[idcategory]; ?>
 
 
 
 
 
  dbObj->debug=true; $tmpid = $objCategory->chkParentID($_REQUEST[idcategory]); //$objCategory->dbObj->debug=false; ?>
listCategoryByParentID(0) as $category): ?> class="active-category" background="images/products/products_tr_bg.gif" bgcolor="#CCCCCC" >
        
listCategoryByParentID($tmpid) as $subcategory): ?>
bgcolor="#bdbdbd" bgcolor="#DEDEDE" >           
     
 สินค้า genRecursiveShowCategory("products.html",$_REQUEST[idcategory]);?>

  listSubCategory($_REQUEST[idcategory]) as $sub): ?>      |

getChildCategory($_REQUEST[idcategory]); $objProducts->Limit = 12; $_REQUEST[page] = empty($_REQUEST[page])?1:$_REQUEST[page]; if($_REQUEST[idcategory]){ $param = 'idcategory='.$_REQUEST[idcategory].'&'; } $paging = $objProducts->GenProductInChildCategoryPageList("products.html?".$param,$subCat, 10, $_REQUEST[page]); foreach($objProducts->GetProductInChildCategory($subCat,$objProducts->Limit,$_REQUEST[page]) as $product): ?>