"") && ($mm <> "") && ($yy <> "")) { if ((substr($dd,0,1) <> "0") AND ($dd < 10)) { $dd = "0".$dd; } $data = $yy."/".$mm."/".$dd; $timestamp = mktime(0,0,0,intval($mm),intval($dd),intval($yy)); } else { $data = date("Y/m/d",time()); $datatmp = explode("/",$data); $timestamp = mktime(0,0,0,intval($datatmp[1]),intval($datatmp[2]),intval($datatmp[0])); $dd = $datatmp[2]; $mm = $datatmp[1]; $yy = $datatmp[0]; } $month = $mm; $year = $yy; $today = getdate(); $month = $month ? $month : $today['mon']; $year = $year ? $year : $today['year']; $lastyear = ($month==1) ? $year-1 : $year; $lastmonth = ($month==1) ? 12 : $month-1; $nextyear = ($month==12) ? $year+1 : $year; $nextmonth = ($month==12) ? 1 : $month+1; opentable($locale['Cal103']); $DATA = $yy."-".$mm."-".$dd; $result = dbquery("SELECT * FROM ".$db_prefix."events WHERE event_data='$DATA' AND event_deleted='NO' ORDER BY event_orario ASC, idx ASC"); $rows = dbrows($result); echo "\n"; if ($rows != 0) { echo ""; echo "\n"; echo "\n"; echo "\n"; echo ""; while($data = dbarray($result)) { $ora = ($data[event_orario]=="00:00:00")?($locale['Cal132']):($data[event_orario]); echo ""; echo "\n"; echo "\n"; echo "\n"; echo ""; } } else { echo "\n"; } echo "
".$locale['Cal105']."".$locale['Cal111']."".$locale['Cal107']."
".$ora."".$data[event_titre]."".nl2br(parseubb($data[event_texte]))."
".$locale['Cal108']."
"; tablebreak(); $result = dbquery("SELECT event_note FROM ".$db_prefix."events WHERE event_data='$DATA' AND event_deleted='NO' ORDER BY event_orario ASC, idx ASC"); $rows = dbrows($result); if ($rows != 0) { echo "\n"; while($note = dbarray($result)) { if ($note[event_note] <> "") { echo "\n"; } } echo "
  ".parseubb($note[event_note])."
\n"; } closetable(); require_once BASEDIR."side_right.php"; require_once BASEDIR."footer.php"; ?>