Locations
0) { $registrato = ""; echo "
"; for ($i = 0; $i < count($arrRealta); $i++) { if ($registrato != $arrRealta[$i]["Registrato"]) { $txtRegistrato = "LOCALI NON REGISTRATI"; $registrato = $arrRealta[$i]["Registrato"]; if ($registrato == 1) { $txtRegistrato = "LOCALI REGISTRATI"; } echo "
" . $txtRegistrato . "
"; } if ($registrato == 1) { echo ""; echo ""; echo ""; echo "
" . $arrRealta[$i]["Nome"] . "
" . $arrRealta[$i]["NomeTipo"] . " (" . $arrRealta[$i]["Sigla"] . ")
"; } else { $posto = $arrRealta[$i]["Sigla"]; if ($arrRealta[$i]["Comune"] != "") { $posto = $arrRealta[$i]["Comune"] . ", " . $posto; } echo "
" . $arrRealta[$i]["Nome"] . " (" . $arrRealta[$i]["NomeTipo"] . " - " . $posto . ")
"; } } echo "
"; } else { echo "Nessun luogo in questa regione.
"; } include("footer.php"); ?>