www.valledellacupa.it
if( $wchben == "" && $wchcom == "" && $sec == "" && $csp == "" ){ ?>
} ?>
|
if( $wchben != "" ){ ?>
echo $thsben[2] ?> | echo $thsben[12] ?> echo $thsben[13] ?> |
 |
$idpic = 0;
if( $hh = opendir('inside/sched1/img') ){
while(false !== ($ff = readdir($hh)) ){
if( $ff != "." && $ff != ".." && $ff != "u.php" && $ff != "thumbnail.class.php" ){
list($ben,$num,$nam) = split('[_]',$ff);
if( $ben == $wchben ){
$idpic++;
$v_img[$num] = array(0=>$num,1=>$nam,2=>'inside/sched1/img/'.$ff);
}
}
}
closedir($hh);
}
if( $idpic > 0 ){
for( $p=1; $p<=$idpic; $p++ ){
$ststy = "";
$picdsct = split("[.]",$v_img[$p][1]);
$picdsc = str_replace("-"," ",$picdsct[0]);
if( strlen($picdsc) < 4 ) $picdsc = "";
if( $p > 1 ) $ststy = "style=display:none;";
// echo "".$picdsc."  ";
echo "";
}
$picwd = $idpic;
if( $idpic < 5 ) $picwd = 5;
echo "";
for( $p=1; $p<=$picwd; $p++ ){
if( is_file($v_img[$p][2]) ){
echo " | ";
}else{
echo " | ";
}
if( $p/4 == floor($p/4) ) echo " ";
}
echo "
";
}else{
echo "nessuna foto presente ";
}
?> |
|
// echo " "; ?>
|
if( $thsben[39] != "" ){ ?>
macrotematismo: |
echo $thsben[39] ?> |
} ?>
if( $thsben[40] != "" ){ ?>
categoria: |
echo $thsben[40] ?> |
} ?>
if( $thsben[41] != "" ){ ?>
tipologia: |
echo $thsben[41] ?> |
} ?>
if( $thsben[13] != "" ){ ?>
toponimo: |
echo $thsben[13] ?> |
} ?>
if( $thsben[16] != "" ){ ?>
altri toponimi: |
echo $thsben[16] ?> |
} ?>
if( $thsben[15] != "" ){ ?>
origine toponimo: |
echo $thsben[15] ?> |
} ?>
$llat = str_replace("’","'",$thsben[46]);
$llat = str_replace(",",".",$llat);
$llat = str_replace("N","",$llat);
$llat = str_replace(" ","",$llat);
$llon = str_replace("’","'",$thsben[47]);
$llon = str_replace(",",".",$llon);
$llon = str_replace("E","",$llon);
$llon = str_replace(" ","",$llon);
?>
if( $llat != "" && $llon != "" ){ ?>
}else{ ?>
coordinate GPS non presenti
} ?>
echo "".$thsben[2].", " ?>
if( $thsben[14] != "" ) echo "".$thsben[14]." " ?>
if( $thsben[42] != "" ) echo "".$thsben[42]." " ?>
if( $thsben[43] != "" ) echo "".$thsben[43]." " ?>
if( $thsben[44] != "" ) echo "".$thsben[44]." " ?>
if( $thsben[46] != "" ) echo " Lat:".$llat."" ?>
if( $thsben[47] != "" ) echo "Lon:".$llon."" ?>
if( $thsben[17] != "" ) echo "quota:".$thsben[17]."m s.l.m." ?> |
if( $thsben[48] != "" ){ ?>
proprietà: |
echo $thsben[48] ?> |
} ?>
if( $thsben[49] != "" ){ ?>
accessibilità: |
echo $thsben[49] ?> |
} ?>
if( $thsben[20] != "" ){ ?>
uso originario: |
echo $thsben[20] ?> |
} ?>
if( $thsben[21] != "" ){ ?>
uso attuale: |
echo $thsben[21] ?> |
} ?>
if( $thsben[6] != "" ){ ?>
stato di conservazione: |
echo $thsben[6] ?> |
} ?>
if( $thsben[50] != "" ){ ?>
fruibilità: |
echo $thsben[50] ?> |
} ?>
if( $thsben[58] != "" ){ ?>
visite guidate: |
echo $thsben[58] ?> |
} ?>
if( $thsben[59] != "" ){ ?>
supporti didattici: |
echo $thsben[59] ?> |
} ?>
if( $thsben[60] != "" ){ ?>
ingresso: |
echo $thsben[60] ?> |
} ?>
if( $thsben[61] != "" ){ ?>
sito WEB: |
echo $thsben[61] ?> |
} ?>
if( $thsben[62] != "" ){
// $thsben[62] = str_replace(" ","",$thsben[62]);
$lilink = split(" ",$thsben[62]);
$lilinn = count($lilink);
for( $l=0; $l<$lilinn; $l++ ) $lilint .= "".$lilink[$l]." ";
?>
colleg. con altri siti: |
echo $lilint ?> |
} ?>
if( $thsben[51] != "" ){ ?>
ente gestore: |
echo $thsben[51] ?> |
} ?>
if( $thsben[52] != "" ){ ?>
persona di contatto: |
echo $thsben[52] ?> |
} ?>
if( $thsben[53] != "" ){ ?>
riferimenti: |
echo $thsben[53] ?> |
} ?>
if( $thsben[54] != "" ){ ?>
periodo di apertura: |
echo $thsben[54] ?> |
} ?>
if( $thsben[55] != "" ){ ?>
orario: |
echo $thsben[55] ?> |
} ?>
if( $thsben[56] != "" ){ ?>
giorno di chiusura: |
echo $thsben[56] ?> |
} ?>
if( $thsben[63] != "" ){ ?>
materiali costruttivi: |
echo $thsben[63] ?> |
} ?>
if( $thsben[18] != "" ){ ?>
dati catastali: |
echo $thsben[18] ?> |
} ?>
if( $thsben[19] != "" ){ ?>
strum. urbanistico: |
echo $thsben[19] ?> |
} ?>
if( $thsben[29] != "" ){ ?>
vincolo: |
echo $thsben[29] ?> |
} ?>
if( $thsben[30] != "" ){ ?>
area strum. urbanistico: |
echo $thsben[30] ?> |
} ?>
if( $thsben[31] != "" ){ ?>
data costruzione: |
echo $thsben[31] ?> |
} ?>
if( $thsben[57] != "" ){ ?>
secolo: |
echo $thsben[57] ?> |
} ?>
if( $thsben[32] != "" ){ ?>
data certa: |
echo $thsben[32] ?> |
} ?>
|
if( $thsben[23] != "" ){ ?>
echo $thsben[2] ?> | echo $thsben[12] ?> echo $thsben[13] ?>
echo str_replace("-bkrw-"," ",$thsben[23]) ?> |
} ?>
if( $thsben[22] != "" ){ ?>
notizie storiche:
echo str_replace("-bkrw-"," ",$thsben[22]) ?> |
} ?>
if( $thsben[24] != "" ){ ?>
bibliografia:
echo str_replace("-bkrw-"," ",$thsben[24]) ?> |
} ?>
if( $thsben[25] != "" ){
// $thsben[25] = str_replace(" ","",$thsben[25]);
$lilink2 = split(" ",$thsben[25]);
$lilin2n = count($lilink2);
for( $l=0; $l<$lilin2n; $l++ ) $lilint2 .= "".$lilink2[$l]." ";
?>
documentazione:
echo $lilint2 ?> |
} ?>
|
}elseif( $wchcom != "" ){
$pdfcom = $wchcom;
if( $wchcom == "S. Donato" ) $pdfcom = "Sandonato";
if( $wchcom == "S. Cesario" ) $pdfcom = "Sancesario";
if( $wchcom == "S. Pietro in Lama" ) $pdfcom = "Sanpietroinlama";
?>
echo $wchcom ?> |
 |
 " width="100%" />
$gogcom = $wchcom;
if( $wchcom == "S. Donato" ) $gogcom = "San Donato Lecce";
if( $wchcom == "S. Cesario" ) $gogcom = "San Cesario, Lecce";
?>
|
include str_replace(" ","",strtolower($pdfcom)).".php" ?>
|
}elseif( $sec != "" ){ // macrotematismi ?>
include("mt.php"); ?>
}elseif( $csp != "" ){ // contenuti speciali ?>
include("cs.php"); ?>
}else{ ?>
} ?>
|
$comimg = "comuni.png";
if( $pdfcom != "" ) $comimg = "com_".strtolower($pdfcom).".png" ?>
|
echo "macrotematismo ";
$txt39 = array("Architettura Urbana","Architettura Rurale");
$nnn39 = count($txt39);
echo " ";
echo "categoria ";
$txt40 = array("Luoghi del culto","Luoghi del lavoro","Architettura insediativa e domestica","Luoghi del sociale","Sistemi paesistici e naturalistici","Architettura monolitica e megalitica","Siti archeologici");
$subvec["Luoghi del culto"] = array("Chiese","Cappelle","Cripte","Edicole votive","Colonne votive");
$subvec["Luoghi del lavoro"] = array("Frantoi","Molini","Palmenti","Tabacchifici");
$subvec["Architettura insediativa e domestica"] = array("Palazzi","Ville","Case a corte","Masserie","Costruzioni trulliformi","Casini","Case a torre");
$subvec["Luoghi del sociale"] = array("Piazze");
$subvec["Sistemi paesistici e naturalistici"] = array("Parchi");
$subvec["Architettura monolitica e megalitica"] = array("Dolmen","Menhir");
$subvec["Siti archeologici"] = array("Specchie","Ipogei");
$subvecn = count($subvec[str_replace("%20"," ",$SE2)]);
$nnn40 = count($txt40);
echo " ";
echo "";
echo "tipologia ";
//$txt41 = array("Chiese","Cappelle","Cripte","Frantoi","Molini","Palmenti","Palazzi","Ville","Case a corte","Masserie","Costruzioni trulliformi","Casini","Piazze","Aree protette","Parchi","Giardini","Dolmen","Menhir","Specchie","Ipogei","Parchi");
//$nnn41 = count($txt41);
echo " | ";
echo "";
echo "fruibilità ";
$txt50 = array("Fruibile","Non fruibile");
$nnn50 = count($txt50);
echo " |
";
echo "testo ";
?>
|
|
if( $vvv != "" ){
$fh1 = fopen("salentomap/js/".$_SERVER['REMOTE_ADDR']."-gmaps2.js", 'w');
$idse = 0;
for( $b=0; $b<$dbbenin; $b++ ){
$ckcomm2 = "KO";
$ttt = split("__-__",$dbbenif[$b]);
// SE
// if( $ckcomm == "KO" ){
for( $g=0; $g<$ccmn; $g++ ){
//echo $g."@".$ccmm[$g]."@".$v_com[$g]."@ ";
if( $ccmm[$g] == "1" ){
//echo "@".$v_com[$ccmm[$g]]."@==== ";
//echo "@".$ttt[2]."@".$v_com[$g]."@ ";
if( $ttt[2] == $v_com[$g] ) $ckcomm2 = "OK";
}
}
// }
//echo $ckcomm."@@@";
if( $ttt[65] != "OFF" &&
( $SE1 == "999" || $SE1 == $ttt[39] ) &&
( $SE2 == "999" || $SE2 == $ttt[40] ) &&
( $SE3 == "999" || $SE3 == $ttt[41] ) &&
( $SE4 == "999" || $SE4 == $ttt[50] ) &&
( $SE5 == "" || stristr($dbbenif[$b],$SE5) ) &&
( $ckcomm == "OK" || $ckcomm2 == "OK" )
){
$v_se[$idse] = split("__-__",$dbbenif[$b]);
$idse++;
if( $ttt[40] == "Luoghi del culto" ) $catmap = 1;
if( $ttt[40] == "Luoghi del lavoro" ) $catmap = 2;
if( $ttt[40] == "Architettura insediativa e domestica" ) $catmap = 3;
if( $ttt[40] == "Luoghi del sociale" ) $catmap = 4;
if( $ttt[40] == "Sistemi paesistici e naturalistici" ) $catmap = 5;
if( $ttt[40] == "Architettura monolitica e megalitica" ) $catmap = 6;
if( $ttt[40] == "Siti archeologici" ) $catmap = 7;
if( $ttt[46] != "" && $ttt[47] != "" ) $bandie[$catmap] .= "var bandierina = new BandierinaGoogle ('".($ttt[46]*1)."','".($ttt[47]*1)."','".str_replace("'","\'",$ttt[12]." ".$ttt[13])."',ic_".$catmap.",'gal_r.php?wchben=".$ttt[0]."&vvv=".$vvv."&bbb=".$bbb."'); elencoBandierine.push(bandierina);
";
}
}
for( $c=0; $c<$nnn40; $c++ ){
fwrite($fh1,"\nfunction lo_".($c+1)."() { \n");
fwrite($fh1,$bandie[$c+1]);
fwrite($fh1,"}");
}
}
$SE1T = "".$SE1.", ";
if( $SE1 == "999" ) $SE1T = "";
$SE2T = "".$SE2.", ";
if( $SE2 == "999" ) $SE2T = "";
$SE3T = "".$SE3.", ";
if( $SE3 == "999" ) $SE3T = "";
$SE4T = "".$SE4.", ";
if( $SE4 == "999" ) $SE4T = "";
if( $vvv != "" && $idse == 0 ) echo "".$idse." risultati trovati per ".$SE1T.$SE2T.$SE3T.$SE4T." nei comuni selezionati
";
if( $idse > 0 ){
echo "".$idse." risultati trovati per ".$SE1T.$SE2T.$SE3T.$SE4T." nei comuni selezionati
";
echo "";
for( $b=0; $b<$idse; $b++ ){
$nwfnt = "dgrey10";
if( $b == $bbb && $bbb != "" ) $nwfnt = "red12";
echo "".($b+1).": |
".$v_se[$b][2]." |
".$v_se[$b][12]." ".$v_se[$b][13]." | ";
}
echo " ";
}
?> |
|