SinSemilla Sevilla
  
Recuperar contraseña
Regístrate Mi Cuenta info@sinsemillasevilla.com
  Inicio » Catálogo
0) { $matriz = coge_padres($row['parent_id']); $matriz[] = $row['categories_id']; return $matriz; } else return array($row['categories_id']); } function PrintSubMenus($parentID, $languageID, $start_path, $nivel=0) { $returnval = ''; if ($parentID > 0) $categorias = coge_padres($parentID); else $categorias = array(); if (($start_path == '') && ($parentID > 0)) { $start_path = $parentID; } else { if ($parentID > 0) $start_path .= "_" . $parentID; } if ($parentID != 0) { $returnval .= ""; } else { $returnval .= "
"; $returnval .= "
    "; } $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '".$parentID."' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languageID ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { if ($start_path == "") { $grouppath = $categories['categories_id']; } else { $grouppath = $start_path . "_" . $categories['categories_id']; } $cPath_new = 'cPath=' . $grouppath; $categories_string = tep_href_link(FILENAME_DEFAULT, $cPath_new); $returnval .= "
  • ".$categories['categories_name']; if ($star_path == $parentID) $returnval .= ' ('.tep_count_products_in_category($categories['categories_id']).')'; $returnval .= ""; if ( tep_has_category_subcategories($categories['categories_id'] ) ) { $returnval .= PrintSubMenus($categories['categories_id'], $languageID, $start_path, $nivel + 1); } $returnval .= "
  • "; } $returnval .= "
"; if ($parentID == 0) $returnval .= "
"; return $returnval; } ?>
Categorias