include("include/loghi.php"); ?>
include("include/menu.php"); ?>
|
|
include("include/sottomenu.php"); ?>
|
|
|
if ($REQUEST_URI == "/index.php" )
{
echo" | ";
} else
{
echo" | ";
}
?>
|
include("include/banneralto.php"); ?>
|
|
|
|
include("include/menualto.php"); ?>
|
|
|
echo"
|
|
|
";
}
echo" |
|
|
|
|
|
|
";
//##################################################
//############ CONTROLLO FUSO
//##################################################
$hourdiff = "6"; // ore di differenza dall'ora locale
$timeadjust = ($hourdiff * 60 * 60);
$adesso = date("Y/m/d",time() + $timeadjust);
//##################################################
//##################################################
$previ = mysql_query("Select * from previsioni where (date >= '$adesso') order by date");
while ($pr = mysql_fetch_array($previ))
{
if ($pr[nome_giorno] == "Sun")
$nome_giorno = str_replace("Sun","Domenica", $pr[nome_giorno]);
if ($pr[nome_giorno] == "Mon")
$nome_giorno = str_replace("Mon","Lunedì", $pr[nome_giorno]);
if ($pr[nome_giorno] == "Tue")
$nome_giorno = str_replace("Tue","Martedì", $pr[nome_giorno]);
if ($pr[nome_giorno] == "Wed")
$nome_giorno = str_replace("Wed","Mercoledì", $pr[nome_giorno]);
if ($pr[nome_giorno] == "Thu")
$nome_giorno = str_replace("Thu","Giovedì", $pr[nome_giorno]);
if ($pr[nome_giorno] == "Fri")
$nome_giorno = str_replace("Fri","Venerdì", $pr[nome_giorno]);
if ($pr[nome_giorno] == "Sat")
$nome_giorno = str_replace("Sat","Sabato", $pr[nome_giorno]);
if ($pr[date] == $adesso)
$nome_giorno = "Oggi";
////##########################
//// INIZIO PREVISIONI
////##########################
echo "
| ";
// PREVISIONE
echo " ".$pr['previsio']
."
| ";
// TEMPERATURE VENTI E MARE
echo "
Temperature
| ".$pr['tempera'].
"
|
Venti
| ".$pr['venti'].
"
|
Mare
| ".$pr['mare'].
"
|
";
// ICONCINE E MILLIMETRI
echo "
Ore 00-04 |
Ore 04-08 |
Ore 08-12 |
Ore 12-16 |
Ore 16-20 |
Ore 20-24 |
|
|
|
|
|
|
".$pr['nottep_mm']." |
".$pr['nottet_mm']." |
".$pr['mattina_mm']." |
".$pr['pranzo_mm']." |
".$pr['pome_mm']." |
".$pr['sera_mm']." |
";
echo "
0° Termico |
".$pr['zero']." |
t° a 500 mt |
".$pr['cinq_min']." ".$pr['cinq_max']." |
t° sulla costa |
".$pr['costa_min']." ".$pr['costa_max']." |
|
".$pr['mille_min']." ".$pr['mille_max']." |
t° al piano |
".$pr['piano_min']." ".$pr['piano_max']." |
t° a 1500 mt |
".$pr['milcin_min']." ".$pr['milcin_max']." |
";
/*echo"
";*/
////#############################
////#############################
} //END WHILE
echo" |
|
|
|
|
|
|
";
$mediot = mysql_query("Select medio from medioter");
while ($med = mysql_fetch_array($mediot))
{
echo"".$med[medio]." ";
}
echo" |
|
|
|
|
|
|
";
include("include/copy.php");
echo" |
|
|
|
"; ?>
|
|
|