Index-night.htx

Da MeteoNetwork Wiki.
Versione del 31 mar 2010 alle 20:06 di Tandomat (discussione | contributi) (Creata pagina con '<pre> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Il Meteo da<!--stationCity-->,<!--stationState--></title> <meta http-equiv="refresh…')
(diff) ← Versione meno recente | Versione attuale (diff) | Versione più recente → (diff)
Jump to navigation Jump to search
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title>Il Meteo da<!--stationCity-->,<!--stationState--></title>
  <meta http-equiv="refresh" content="150" ;="">
  <link rel="alternate" type="application/rss+xml" 
   title="Il Meteo da <!--stationCity-->,<!--stationState-->" 
   href="wxrss.xml">

  <script language="JavaScript">
function createDaySelect(name)
{
	document.write("<select name=" + name + " size='1'>");
	var mydate = new Date();
	var myday = mydate.getDate();
	var daystring = "";
	
	for (var i = 1; i <= 31; ++i) {
		if(i<10) {
			daystring = "0" + i;
			document.write(daystring);
		} else {
			daystring = i;
			document.write(daystring);
		}
		if (myday == daystring) {
			document.write("<option selected='selected' value='" + daystring + "'>" + daystring + "</option>");
		} else {
			document.write("<option value='" + daystring + "'>" + daystring + "</option>");
		}
	}
	document.write("</select>");
}

function createMonthlySelect(name)
{
	var month = new Array;
	month[0]="Gen";
	month[1]="Feb";
	month[2]="Mar";
	month[3]="Apr";
	month[4]="Mag";
	month[5]="Giu";
	month[6]="Lug";
	month[7]="Ago";
	month[8]="Set";
	month[9]="Ott";
	month[10]="Nov";
	month[11]="Dic";
	
	var mydate = new Date();
	var mymonth = mydate.getMonth();
	var monthstring = "";
	
	document.write("<select name=" + name + " size='1'>");
	
	for (var i = 0; i < 12; ++i) {
		if(i<9) {
			monthstring = "0" + (i+1);
		} else {
			monthstring = i+1;
		}
		
		if(mymonth+1 == monthstring) {
			document.write("<option selected='selected' value='" + monthstring + "'>" + month[i] + "</option>");
		} else {
			document.write("<option value='" + monthstring + "'>" + month[i] + "</option>");
		}
	}
	document.write("</select>");
}

function createYearlySelect(name)
{
	var mydate = new Date();
	var myyear = (mydate.getYear() % 1900) + 1900;
	var yearstring = "";
	
	document.write("<select name=" + name + " size='1'>");
	
	for (var i = 0; i < 51; ++i)
    {
		if (i < 10)
        {
			yearstring = "200" + i;
		} 
        else 
        {
			yearstring = "20" + i;
		}
		
        if (myyear == yearstring) 
        {
			document.write("<option selected='selected' value='" + yearstring + "'>" + yearstring + "</option>");
		} 
        else 
        {
			document.write("<option value='" + yearstring + "'>" + yearstring + "</option>");
		}
	}
	document.write("</select>");
}

function openNoaaFile(month, year)
{
    var url = "NOAA/NOAA-";
    url = url + year;
    if (month != '')
    {
        url = url + "-";
        url = url + month;
    }

    url = url + ".txt";
    window.location=url;
}

function openARCFile(day, month, year)
{
    var url = "Archive/ARC-" + year + "-" + month + "-" + day + ".txt";
    window.location=url;
}

function openURL(urlname)
{
    window.location=urlname;
}

  </script>

</head>
<body
 style="background-image: url(above-clouds.jpg);">
<form method="post">
<div align="center">

<table cellpadding="1" cellspacing="1" border="0" width="95%" align="center">
<tbody>
  <tr>
    <td width="100%">
      <table cellspacing="1" cellpadding="0" width="100%" align="center" border="0">
      <tbody>
        <tr>
          <td width="35%" valign="top">
            <font color="#000000">
            <table cellspacing="1" cellpadding="0" width="100%" align="left" border="0">
            <tbody>
              <tr>
                <td align="center">
                  <!--include readings.inc-->
                </td>
              </tr>
              <tr>
                <td width="100%" align="center">
                  <br>
                  <a href="<!--localRadarURL-->">
                  <img src="<!--localRadarURL-->" 
                   border="1" height="240" width="280" alt="RADAR">
                  </a>
                </td>
              </tr>
            </tbody>
            </table>
          </font>
        </td>
        <td width="65%" valign="top">
          <table cellpadding="2" cellspacing="2" border="0" width="100%" align="center">
          <tbody>
            <tr>
              <td>
                <!--include header.inc-->
              </td>
            </tr>
            <tr>
              <td>
                <table cellpadding="2" cellspacing="2" border="0" width="100%" align="center">
                <tbody>
                  <tr>
                    <td align="center">
                        <table cellpadding="2" cellspacing="2" border="0" width="100%" align="center">
                        <tbody>
                          <tr>
                            <td align="center">
                              <img src="tempdaycomp.png"
                                   style="background: url(chart_bg.png) no-repeat center">
                            </td>
                             <td align="center">
                              <img src="heatchillcomp.png"
                                   style="background: url(chart_bg.png) no-repeat center">
                            </td>
                          </tr>
                        </tbody>
                        </table>
                    </td>
                  </tr>
                  <tr>
                    <td align="center">
                        <table cellpadding="2" cellspacing="2" border="0" width="100%" align="center">
                        <tbody>
                          <tr>
                            <td align="center">
                              <img src="tempdial.png"
                                   style="background: url(dial_bg.png) 50% 50% no-repeat">
                            </td>
                            <td align="center">
                              <img src="wind.png"
                                   style="background: url(dial_bg.png) 50% 50% no-repeat">
                            </td>
                            <td align="center">
                              <img src="humiddial.png"
                                   style="background: url(dial_bg.png) 50% 50% no-repeat">
                            </td>
                          </tr>
                        </tbody>
                        </table>
                    </td>
                  </tr>
                  <tr>
                    <td align="center">
                        <table cellpadding="2" cellspacing="2" border="0" width="100%" align="center">
                        <tbody>
                          <tr>
                            <td align="center">
                              <img src="netRainDay.png"
                                   style="border: none; background: url(dial_bg.png) 50% 50% no-repeat">
                            </td>
                            <td align="center">
                              <img src="netRainMonth.png"
                                   style="background: url(dial_bg.png) 50% 50% no-repeat">
                            </td>
                            <td align="center">
                              <img src="netRainYear.png"
                                   style="background: url(dial_bg.png) 50% 50% no-repeat">
                            </td>
                          </tr>
                        </tbody>
                        </table>
                    </td>
                  </tr>
                  <tr>
                    <td align="center">
                        <table cellpadding="2" cellspacing="2" border="0" width="100%" align="center">
                        <tbody>
                          <tr>
                            <td align="center">
                              <img src="rainday.png"
                                   style="background: url(chart_bg.png) no-repeat center">
                            </td>
                             <td align="center">
                              <img src="baromday.png"
                                   style="background: url(chart_bg.png) no-repeat center">
                            </td>
                          </tr>
                        </tbody>
                        </table>
                    </td>
                  </tr>
                  <tr>
                    <td align="center">
                      <br>
                      <hr width="96%">
                    </td>
                  </tr>
                </tbody>
                </table>
              </td>
            </tr>
            <tr>
              <td>
                <table cellpadding="2" cellspacing="2" border="0" width="100%" height="40" align="center">
                <tbody>
                  <tr>
                    <td width="15%" align="center" valign="top"> <input name="button2" type="button"
                      onClick="openURL('almanac.htm')" value="   Almanacco  "></td>
                    <td width="15%" align="center" valign="top"> <input name="button2" type="button"
                      onClick="openURL('Daily.htm')" value=" Ultime 24 ore "></td>
                    <td width="15%" align="center" valign="top"> <input name="button2" type="button"
                      onClick="openURL('Weekly.htm')" value="  Ultimi 7 giorni  "></td>
                    <td width="15%" align="center" valign="top">
                      <input type="button" value=" Ultimi 28 giorni "
                      onclick="openURL('Monthly.htm')">
                    </td>
                    <td width="15%" align="center" valign="top">
                      <input name="button" type="button"
                      onClick="openURL('Yearly.htm')" value=" Ultimi 365 giorni ">
                    </td>
                    <td width="15%" align="center" valign="top">
                      <input type="button" value="  Previsioni   "
                       onClick="openURL('<!--localForecastURL-->')">
                    </td>
                  </tr>
                </tbody>
                </table>
              </td>
            </tr>
            <tr>
              <td>
                <table cellpadding="2" cellspacing="2" border="0" width="100%" height="30" align="center">
                <tbody>
                  <tr>
                    <td width="100%" align="center" valign="middle">
                      <font face="Tw Cen MT" color="#000000">
                      Sommario Climatologico: 
                      </font>
                      <script language="JavaScript">
                       createMonthlySelect("month");
                       createYearlySelect("year");
                      </script>
    
                      <input type="button" value="Report Mensile"
                      onclick="openNoaaFile(this.form.month.value, this.form.year.value)">
                      <input type="button" value="Report Annuale"
                      onclick="openNoaaFile('',this.form.year.value)">
                    </td>
                  </tr>
                  <tr>
                    <td width="100%" align="center" valign="middle">
                      <font face="Tw Cen MT" color="#000000">
                      Cerca dati Archivio: 
                      </font>
                      <script language="JavaScript">
                       createDaySelect("day");
                       createMonthlySelect("month1");
                       createYearlySelect("year1");
                      </script>
                      <input type="button" value="Dati Giornalieri"
                      onclick="openARCFile(this.form.day.value, this.form.month1.value, this.form.year1.value)">
                    </td>
                  </tr>
                </tbody>
                </table>
              </td>
            </tr>
          </tbody>
          </table>
        </td>
      </tr>
    </tbody>
    </table>
  </td>
  </tr>
  <tr>
  <td width="100%">
    <hr width="100%" size="4">
    <table cellpadding="2" cellspacing="2" border="0" width="100%">
      <tbody>
        <tr>
          <td width="40%" valign="bottom" align="left">
            <small><font face="Arial, Helvetica, sans-serif" align="left" color="blue">
            <!--wviewUpTime-->
            </font></small>
          </td>
          <td width="20%" valign="bottom" align="center">
            <small><font face="Arial, Helvetica, sans-serif" align="center" color="blue">
            <a href="http://www.wviewweather.com">wviewweather.com</a>
            </font></small>
          </td>
          <td width="40%" valign="bottom" align="right">
            <small><font face="Arial, Helvetica, sans-serif" align="right" color="blue">
            <!--wviewVersion--> <!--stationType-->
            </font></small>
          </td>
        </tr>
      </tbody>
    </table>
  </td>
  </tr>
</tbody>
</table>
</div>
</body>
</html>