Categorías

language; $tipo = arg(0); $tipo_listado = "listado_$tipo"; $field = content_fields("field_categoria_$tipo"); eval("function _ttk() { {$field['allowed_values_php']}; }; \$list = _ttk();"); $listado = array(); $sql = "SELECT c.field_categoria_{$tipo}_value AS id, COUNT(c.field_categoria_{$tipo}_value) AS count FROM content_type_listado_{$tipo} c, node n WHERE c.nid=n.nid AND n.status IS TRUE AND n.language='$lang' GROUP BY field_categoria_{$tipo}_value"; $results = db_query($sql); if (!empty($results)) { while ($node = db_fetch_object($results)) { $listado[$node->id] = $node->count; } } $links = array(); $append = ""; /* if (arg(2)) { $append = "/". arg(2); } */ if (!empty($list)) { foreach ($list as $k=>$v) { if (!empty($listado[$k])) { $links[] = l($v, arg(0) ."/{$k}{$append}", array("html"=>true)) . " (". $listado[$k] .")"; } } } if (!empty($links)) { echo "[ ". implode(" | ", $links) ." ]"; } ?>

Featured of the month

Salvador Abril, 7
961 105 660
Closed Monday and Tuesday
Oriente, 6 Bajo
687 777102 / 687 777 013

Download publication

Valencia City 44
OPEN 500 IN THE ÁGORA
TENNIS RETURNS

RITA BARBERÁ:
“THE OCTOBER 9TH HOLLIDAY
AROUSES A COMMON EFFORT”

PHOTOGRAPHIC VALENCIA
IN THE MUVIM AND LA NAU

Newsletter Valenciacity

PÁGINAS RECOMENDADAS

Visitar el Gastro Blog CV

Oliva Nova

Gran Fira de València

¡Participa en nuestros concursos!

Publications from RuzafaShow

" src="//img/search.png" />

User login

Redacción: C/ Doctor Sumsi nº 14 - 1; 46005 Valencia (España) - Tel. 962 261 395 / email: redaccion@valenciacity.es