homeempresaproductoscongresosnotas de interesgaleriacontacto
         PRODUCTOS | GASTROTEC CHILE

  location.href='catalogo.php?op=productos&id_cat=$xjeje';"; exit; } } //////////////////////////////////////////////////////////////////// $preferencias = mysql_query("select folders from carro_prefs limit 1"); if ($pref = mysql_fetch_array($preferencias)) { // preferencias $columnas=$pref["folders"]; if (numeros($_GET["id_cat"]) and $_GET["id_cat"] != "") { $id_f = $_GET["id_cat"]; } else { $id_f = 0; } /////////////////////////////////////// CATEGORIAS echo "

"; echo "» Productos / "; if ($id_f != "") { // fin $i=0; $id_sd = $id_f; while ($x != 1) { $nom_cat = mysql_query("select * from familias where id='$id_sd'"); if ($name2 = mysql_fetch_array($nom_cat)) { $family["$i"] = $name2["id"]; $id_sd = $name2["id_familia"]; if ($name2["id_familia"] == 0) { $x=1; } } $i++; } // fin } if ($family != "") { $fam = array_reverse($family); foreach ($fam as $k => $v) { $nom_cat = mysql_query("select * from familias where id='$v'"); if ($name2 = mysql_fetch_array($nom_cat)) { echo "$name2[nombre] / "; } } } echo "
"; /////////////////////////////////////// CATEGORIAS $select = mysql_query("select * from familias where id_familia='$id_f' order by nombre asc"); echo "
"; while ($row = mysql_fetch_array($select)) { ++$column; $cua = mysql_query("select * from familias where id_familia='$row[id]'"); $k = mysql_num_rows($cua); if ($k > "0") { echo " $row[nombre]
$row[descripcion]
"; } else { echo " $row[nombre]
$row[descripcion]
"; } if ($column < $columnas) { echo "
"; } else { echo "
"; } if ($column == $columnas) $column=0; } echo "
"; } // fin preferencias //////////////////////////////////////////////////////////////////// ?>

 
® 2010 Gastrotec Chile, todos los derechos reservados