Sanità

(active tab)"; } else if($w=='M'){ $actMed="active"; $spMed="(active tab)"; } else if($w=='A'){ $actOth="active"; $spOth="(active tab)"; } ?> id; $sql = "Select nid from {node} n, {field_data_field_comune} f where n.type='struttura_sanitaria' and f.entity_id=n.nid and field_comune_cid=$myComune"; $results = db_query($sql); $o = ""; foreach($results as $row){ $node = node_load($row->nid); $object = entity_metadata_wrapper('node', $node); if($object->field_tipo_1->value()==$w) { $nodeView = node_view($node); $o .= drupal_render($nodeView); } } if(!isset ($o)) $o = "Nessun contenuto disponibile"; echo $o; ?>