<?php
require_once "../../../config/settings.inc.php";
require_once "../../../include/myview.php";
require_once "../../../include/forms.php";
$t = new MyView();
$t->title = "ISU AMS Station on Agronomy";

$year = isset($_GET["year"]) ? intval($_GET["year"]) : date("Y");
$month = isset($_GET["month"]) ? intval($_GET["month"]) : date("m");
$day = isset($_GET["day"]) ? intval($_GET["day"]) : date("d");
$myTime = mktime(0, 0, 0, $month, $day, $year);

$dirRef = date("Y/m/d", $myTime);
$dataurl = "{$EXTERNAL_BASEURL}/archive/data/$dirRef/text/ot/ot0002.dat";

$ys = yearSelect(2003, $year, "year");
$ms = monthSelect($month, "month");
$ds = daySelect($day, "day");

$t->content = <<<EOM

<a href="/other/">Other Networks</a> &nbsp;<b> > </b> &nbsp; ISU AMS Station

<p>You can plot 1 minute data for this location.  Note that 
the archive <br> begins 15 Jan 2003.</p>

<table>
<tr class="even"><td>


  <form method="GET" action="1station_1min.phtml">
{$ys} {$ms} {$ds}

  <input type="submit" value="Make Plot"></form>

</td></tr><tr><td>
<a href="{$dataurl}">View raw data file</a><br />
<BR>
<img src="1min.php?year={$year}&month={$month}&day={$day}" ALT="Time Series">
<BR>
<img src="1min_V.php?year={$year}&month={$month}&day={$day}" ALT="Time Series">
<BR>
<img src="1min_P.php?year={$year}&month={$month}&day={$day}" ALT="Time Series">
</td></tr></table>
EOM;
$t->render('single.phtml');
