|
|
Home
page / Calendar
of Events |
CALENDAR OF THE EVENTS |
if ($Mese=="") { $Mese=date(m) ; }
if ($Anno=="") { $Anno=date(Y) ; }
if ($Oggi=="") { $Oggi=date(d) ; }
$SQL="select * from $CALENDARIO order by datainizio";
$RisSql=mysql_query($SQL,$PVE);
while ($Calendario=mysql_fetch_array($RisSql)) {
$Data=substr($Calendario[datainizio],0,4).substr($Calendario[datainizio],5,2).substr($Calendario[datainizio],8,2);
$DataFin=substr($Calendario[datafine],0,4).substr($Calendario[datafine],5,2).substr($Calendario[datafine],8,2);
while ($DataFin>=$Data) {
$IdEvento[$Data]=$Calendario[idcalendario];
$Data=$Data+1;
}
}
echo "";
for ($M=1; $M<13; $M++) {
switch ($M) {
case 1: $NOMEMESE="January"; $COLMESE="#FFFF66"; break;
case 2: $NOMEMESE="February"; break;
case 3: $NOMEMESE="March"; break;
case 4: $NOMEMESE="April"; break;
case 5: $NOMEMESE="May"; break;
case 6: $NOMEMESE="June"; break;
case 7: $NOMEMESE="July"; break;
case 8: $NOMEMESE="August"; break;
case 9: $NOMEMESE="September"; break;
case 10: $NOMEMESE="October"; break;
case 11: $NOMEMESE="November"; break;
case 12: $NOMEMESE="Dicember"; break;
}
echo "$NOMEMESE  ";
}
echo " | | ";
?>
|
Click on the months in order to visualize the description of the
events |
|