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) ." ]"; } ?>

Los destacados del mes

Pintor Zariñena, 16
Plaza del Negrito, 2
651 144 812 (mañanas) / 699 097 918 (tardes-noches)
From Tuesday to Saturday from 7.30 p.m.
Portal de la Valldigna, 9
Open from 18h. Monday and Tuesday closed

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