accommodation: villa, apartment, hotel, residence, bed and breakfast, guesthouse, self catering, vacation rental, holiday home.">





NumberOfRecords; //echo '
'.$tv.' in '.$area.':'; for($i=0;$i<$tv;$i++){ if ($villa<$totbox){ $propref = $xml->Villas->Villa[$i]->prop_ref; $proptype = $xml->Villas->Villa[$i]->PropType; if (in_array($proptype, $tipi_ok)){ //echo '/'.$villa; $id[$villa] = $propref; $tip[$villa] = $proptype; $urls = 'http://www.villarenters.com/advert.aspx?ref='.$propref.'&rag=15544N&rcam=rentago'; $urlp[$villa] = 'http://www.villarenters.com/advert.aspx?ref='.$propref.'&tab=5&rag=15544N&rcam=rentago'; $immagine = $xml->Villas->Villa[$i]->PropImages->PropImage[0]->ImageURL; $is[$villa] = "\"\""; $citta = $xml->Villas->Villa[$i]->Locations->Location[0]->LocationDescription; $nazione = $xml->Villas->Villa[$i]->Locations->Location[1]->LocationDescription; $luogo[$villa] = formatta($citta.' '.$nazione); $denominazione = formatta($xml->Villas->Villa[$i]->Title); $den[$villa] = "".$denominazione.""; $sin = $xml->Villas->Villa[$i]->Summary; $postiletto=$xml->Villas->Villa[$i]->Sleeps; $camere= $xml->Villas->Villa[$i]->DoubleBeds+$xml->Villas->Villa[$i]->TwinBeds+$xml->Villas->Villa[$i]->SingleBeds; $sep = ''; if ($postiletto>0 or $camere>0){ $sin .= '
---
'; } if ($postiletto>0){ $sin .= 'Sleeps: '.$postiletto; $sep = ' - '; } if ($camere>0){ $sin .= $sep.'Bedrooms: '.$camere; } $breve[$villa] = formatta($sin); $villa++; }//solo per tipo proprietà scelto }//fino al numero di totbox }//elenco da xml di villarenters }//nuova area // ora ho array con le proprietà provenienti da una o piu' aree, inizio a visualizzare i box if ($villa<$totbox){ $totbox = $villa; } if($totbox>0){ ?>



Book now
0 } //if villarenters_codice ?>



"; echo $descrizioneregione; echo "

"; ?>
Private villas and holiday rentals . Rental property, villas for rent.

0){ ?> \"\""; }else{ $is = "\"\""; } $cit = mysql_result($result, $i, id_citta); $sql = "select $nome from $tbl_citta where id_citta='$cit'"; $result2 = mysql_db_query($db_db,$sql); $citta = stripslashes(mysql_result($result2, 0, $nome)); $naz = mysql_result($result, $i, id_nazione); $sql = "select $nome from $tbl_nazioni where id_nazione='$naz'"; $result2 = mysql_db_query($db_db,$sql); $nazione = stripslashes(mysql_result($result2, 0, $nome)); $denominazione = stripslashes(mysql_result($result, $i, $nome)); $den = "".$denominazione.""; //$sin = stripslashes(mysql_result($result, $i, $sintesi)); $sin = nl2br(strip_tags(stripslashes(mysql_result($result, $i, $sintesi)))); $box++; if (($box-1)%3==0){ ?>
Selected sponsors



0 // 3 adv from accommodation if (!empty($adv_strutture)){ $sql = "select * from $tbl_strutture where id_struttura in ($adv_strutture) order by rand() limit 3 "; }else{ $sql = "select * from $tbl_strutture where id_regione='$r' and stato='A' and attivo='s' order by rand() limit 3 "; } }else{ // accommodation (on 3 cols) //$sql = "select * from $tbl_strutture where id_regione='$r' and tipostruttura='$k' and stato='A' and attivo='s' order by denominazione"; $sql = "select * from $tbl_strutture where id_regione='$r' and tipostruttura='$k' and stato='A' and attivo='s' order by rand() limit 30"; } // fine hp $result = mysql_db_query($db_db,$sql); $num_rows = mysql_num_rows($result); //echo $n."-".$c."-".$sql; if ($num_rows>0){ ?> \"\""; }else{ $is = "\"\""; } $citta = mysql_result($result, $i, comune); if (empty($citta)){ $cit = mysql_result($result, $i, id_citta); $sql = "select $nome,progressivo from $tbl_citta where id_citta='$cit'"; $result2 = mysql_db_query($db_db,$sql); $citta = stripslashes(mysql_result($result2, 0, $nome)); $progressivo = mysql_result($result2, 0, 'progressivo'); if ($progressivo==999){ $citta = $regione; } } $naz = mysql_result($result, $i, id_nazione); $sql = "select $nome from $tbl_nazioni where id_nazione='$naz'"; $result2 = mysql_db_query($db_db,$sql); $nazione = stripslashes(mysql_result($result2, 0, $nome)); $tipostruttura = mysql_result($result, $i, 'tipostruttura'); reset($ricettivita); while (list ($key, $val) = each ($ricettivita)) { if ($tipostruttura==$key){ $tip = $val; } } $tipoup = mysql_result($result, $i, "tipoup"); $urlp = stripslashes(mysql_result($result, $i, $urlprenotazione)); if ($urlp=="http://") $urlp = ""; if (!empty($urlp) and substr($urlp,0,7)!="http://") $urlp = "http://".$urlp; $denominazione = stripslashes(mysql_result($result, $i, 'denominazione')); $den = "".$denominazione.""; //$sin = nl2br(stripslashes(mysql_result($result, $i, $sintesi))); $sin = nl2br(strip_tags(stripslashes(mysql_result($result, $i, $sintesi)))); $postiletto = mysql_result($result, $i, "postiletto"); $camere = mysql_result($result, $i, "camere"); if (($tipostruttura=='3' or $tipostruttura=='5') and (!empty($postiletto) or !empty($camere))){ $sin .= "
---
Sleeps: ".$postiletto." - Bedrooms: ".$camere; } $box++; if (($box-1)%3==0){ ?>
Random accommodation



Book now
Book now
0 ?>