connessione(); $month=$_GET['month']; $year=$_GET['year']; //$linguai=$_SESSION['linguai']; $linguai=$_GET['lang']; $id=$_GET['id']; ?> 0)include("lingue/$linguai.php"); else {include("lingue/it.php"); $linguai="it"; } ?> 0){ $pez=explode("/",$dal); $month=$pez[1]; } $start=mktime(0,0,0,$month,1,$year); $firstdayarray=getdate($start); ?> Disponibilit´┐Ż ".$months[$x-1]." "; else echo"".$months[$x-1]." "; $contat++; } $mesidiff=12-$contat; $yy1=$yy+1; echo " - ".$yy1.":  "; for($x=1;$x<=$mesidiff;$x++){ if($month==$x)echo" ".$months[$x-1]." "; else echo"".$months[$x-1]." "; $contat++; } //$month="1"; //$start=mktime(0,0,0,$month,1,$year); echo"
"; echo""; //prima riga stampa la data echo""; if($id<=0)echo""; //prende il giusto numero di giorni if($firstdayarray[month]=="January")$gggiorni=31; if($firstdayarray[month]=="February")$gggiorni=29; if($firstdayarray[month]=="March")$gggiorni=31; if($firstdayarray[month]=="April")$gggiorni=30; if($firstdayarray[month]=="May")$gggiorni=31; if($firstdayarray[month]=="June")$gggiorni=30; if($firstdayarray[month]=="July")$gggiorni=31; if($firstdayarray[month]=="August")$gggiorni=31; if($firstdayarray[month]=="September")$gggiorni=30; if($firstdayarray[month]=="October")$gggiorni=32; if($firstdayarray[month]=="November")$gggiorni=30; if($firstdayarray[month]=="December")$gggiorni=31; for($count=0;$count<($gggiorni);$count++) { $dayarray=getdate($start); $quale=$dayarray[weekday]; echo""; $start+=ADAY; } echo""; if($id>0)$dati=mysql_query("select * from tipocamere where id='$id'"); else $dati=mysql_query("select * from tipocamere"); while($array=mysql_fetch_array($dati)){ if($linguai=="it"){ $item=$array[nomeIT]; }else if($linguai=="en"){ $item=$array[nomeEN]; }else if($linguai=="de"){ $item=$array[nomeDE]; }else if($linguai=="sp"){ $item=$array[nomeSP]; }else if($linguai=="fr"){ $item=$array[nomeFR]; }else{ $item=$array[nomeEN]; } $itemp=$array[id]; $tariffazione=$array[tariffazione]; //if($tariffazione==0)$tariffazione=""; //else $tariffazione=""; $tarif=$array[tariffazione]; echo""; if($id<=0)echo""; $start=mktime(0,0,0,$month,1,$year); //prende il giusto numero di giorni if($month=="01")$gggiorni=31; if($month=="02")$gggiorni=29; if($month=="03")$gggiorni=31; if($month=="04")$gggiorni=30; if($month=="05")$gggiorni=31; if($month=="06")$gggiorni=30; if($month=="07")$gggiorni=31; if($month=="08")$gggiorni=31; if($month=="09")$gggiorni=30; if($month=="10")$gggiorni=32; if($month=="11")$gggiorni=30; if($month=="12")$gggiorni=31; for($count=0;$count<($gggiorni);$count++) { $dayarray=getdate($start); $quale=$dayarray[weekday]; echo""; $start+=ADAY; } echo""; } echo"
"; if($quale=="Monday"){ if($linguai=="it")echo"Lu"; if($linguai=="en")echo"Mo"; if($linguai=="de")echo"Mo"; if($linguai=="es")echo"Lu"; if($linguai=="fr")echo"Lu"; } if($quale=="Tuesday"){ if($linguai=="it")echo"Ma"; if($linguai=="en")echo"Tu"; if($linguai=="de")echo"Di"; if($linguai=="es")echo"Ma"; if($linguai=="fr")echo"Ma"; } if($quale=="Wednesday"){ if($linguai=="it")echo"Me"; if($linguai=="en")echo"We"; if($linguai=="de")echo"Ma"; if($linguai=="es")echo"Mi"; if($linguai=="fr")echo"Me"; } if($quale=="Thursday"){ if($linguai=="it")echo"Gi"; if($linguai=="en")echo"Th"; if($linguai=="de")echo"Do"; if($linguai=="es")echo"Ju"; if($linguai=="fr")echo"Je"; } if($quale=="Friday"){ if($linguai=="it")echo"Ve"; if($linguai=="en")echo"Fr"; if($linguai=="de")echo"Fr"; if($linguai=="es")echo"Vi"; if($linguai=="fr")echo"Ve"; } if($quale=="Saturday"){ if($linguai=="it")echo"Sa"; if($linguai=="en")echo"Sa"; if($linguai=="de")echo"Sa"; if($linguai=="es")echo"Sa"; if($linguai=="fr")echo"Sa"; } if($quale=="Sunday"){ if($linguai=="it")echo"Do"; if($linguai=="en")echo"Su"; if($linguai=="de")echo"So"; if($linguai=="es")echo"Do"; if($linguai=="fr")echo"Di"; } echo "
$dayarray[mday]"; if(strlen($dayarray[mday])==1)$dayarray[mday]="0".$dayarray[mday]; echo"
$item0) echo"bgcolor=\"#80F2A8\""; else echo"bgcolor=\"#FE0100\""; echo">  "; //$pezzi[1] € echo"
"; echo"

"; ?> 0){ while($row_event=mysql_fetch_object($result)){ return $row_event->numero."|".$row_event->prezzo; } }else return; } ?>