";
echo "";
echo "";
echo " ";
echo " ";
echo "";
echo "
| ||||||||||||||||||||||||||||||||||||
".$notizia['titolo'].""; ?>Notizia inserita da: ".$autore['nome']." ".$autore['cognome'].""; echo " in data {$notizia['giorno']}/{$notizia['mese']}/{$notizia['anno']} alle ore {$notizia['ora']}:{$notizia['minuti']}"; ?> Condividi ".$notizia['vista']." volte "; echo " ".$notizia['contenuto']." "; echo " | ";
?>
"; //print_r($dates); //echo ""; $mon_num = date("n",$first_day); $temp_yr = $next_yr = $prev_yr = $year; $prev = $mon_num - 1; $next = $mon_num + 1; //If January is currently displayed, month previous is December of previous year if ($mon_num == 1) { $prev_yr = $year - 1; $prev = 12; } //If December is currently displayed, month next is January of next year if ($mon_num == 12) { $next_yr = $year + 1; $next = 1; } $mes['1'] ='Gennaio'; $mes['2'] ='Febbraio'; $mes['3'] ='Marzo'; $mes['4'] ='Aprile'; $mes['5'] ='Maggio'; $mes['6'] ='Giugno'; $mes['7'] ='Luglio'; $mes['8'] ='Agosto'; $mes['9'] ='Settembre'; $mes['10'] ='Ottobre'; $mes['11'] ='Novembre'; $mes['12'] ='Dicembre'; echo " ";
echo "".
"".
"";
echo "\n";
echo " ";
echo "";
$end = ($start_day > 4)? 6:5;
for ($row=1;$row<=$end;$row++)
{
for ($col=0;$col<=7;$col++)
{
if ($dates[$row][$col] == "")
$dates[$row][$col] = " ";
if (!strcmp($dates[$row][$col]," "))
$count++;
$t = $dates[$row][$col];
//If date is today, highlight it
if ($col > 0)
{
//if (($t == date("j")) && ($mon == date("n")) && ($year == date("Y")))
//echo "\n";
//else
//If the date is absent ie after 31, print space
echo "\n";
}
}// for -col
if (($row + 1) != ($end+1))
echo "";
else
echo "";
}// for - row
echo " ";
}
//----------Main Loop-----------
print_HTML_header();
$month = $_GET['month'];
//If $month is not present, set it to current month.
$month = (empty($month)) ? date("n") : $month;
$year = $_GET['year'];
//If $year is not present, set it to current year.
$year = (empty($year)) ? date("Y") : $year;
print_calendar($month,$year);
print_HTML_footer();
?>
Ricevi le news via mail: Delivered by FeedBurner "; echo ""; echo "
"; echo " ![]() "; echo " ![]() "; echo " ![]() "; echo " ![]() | |||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
Le ultime news | ||||||||||||||||||||||||||||||||||||
";
$sql = "SELECT titolo, id, date_format(data, '%d') as giorno,
date_format(data, '%m') as mese, date_format(data, '%y') as anno,
date_format(data, '%H') as ora, date_format(data, '%i') as minuti,
date_format(data, '%s') as secondi, contenuto, autore FROM news ORDER BY id DESC LIMIT 6";
$result = $db->esegui($sql);
while ($notizia2 = $db->FetchArray($result))
{
echo "";
echo " ";
echo "{$notizia2['giorno']}/{$notizia2['mese']}/{$notizia2['anno']} - {$notizia2['ora']}:{$notizia2['minuti']} ".$notizia2['titolo'];
echo " ".' '; echo ""; } echo " | ||||||||||||||||||||||||||||||||||||
I piĆ¹ cliccati | ||||||||||||||||||||||||||||||||||||
";
$sql = "SELECT titolo, id, date_format(data, '%d') as giorno,
date_format(data, '%m') as mese, date_format(data, '%y') as anno,
date_format(data, '%H') as ora, date_format(data, '%i') as minuti,
date_format(data, '%s') as secondi, contenuto, autore FROM news ORDER BY vista DESC LIMIT 6";
$result = $db->esegui($sql);
while ($notizia2 = $db->FetchArray($result))
{
echo "";
echo " ";
echo "{$notizia2['giorno']}/{$notizia2['mese']}/{$notizia2['anno']} - {$notizia2['ora']}:{$notizia2['minuti']} ".$notizia2['titolo'];
echo " ".' '; echo ""; } echo " | ||||||||||||||||||||||||||||||||||||
Segnala ad un amico ![]() | ||||||||||||||||||||||||||||||||||||
"; if (mail($_POST['mail'], "News da doremifasol.org", $msg, "FROM <".$_POST['nome'].">")) echo "Notizia inviata!"; else echo "Problemi nell'invio della segnalazione!"; echo " | ||||||||||||||||||||||||||||||||||||
"; echo " | "; echo "||||||||||||||||||||||||||||||||||||
Ricevi le news via email | ||||||||||||||||||||||||||||||||||||
"; ?> "; echo " | ||||||||||||||||||||||||||||||||||||
Commenti degli utenti | ||||||||||||||||||||||||||||||||||||
";
echo " ";
$res = $db->esegui("SELECT * FROM commenti WHERE news_id='".$notizia['id']."' AND app='1' ORDER BY id DESC");
while ($c = $db->FetchArray($res))
{
echo " ";
echo " ";
echo " ";
echo "";
echo " ";
echo "";
}
echo "
| ||||||||||||||||||||||||||||||||||||
"; echo $sponsor['codice']; echo " | ||||||||||||||||||||||||||||||||||||
doremifasol.org |