1 | <?php
|
---|
2 |
|
---|
3 | echo (file_get_contents("header.html"));
|
---|
4 |
|
---|
5 | if (!empty($_GET["date"]))
|
---|
6 | {
|
---|
7 | $date=date("Y-m-d", strtotime($_GET["date"]));
|
---|
8 | $date2=date("Ymd", strtotime($_GET["date"]));
|
---|
9 | $path="../scheduling/".date("Y/m/d", strtotime($_GET["date"]));
|
---|
10 | }
|
---|
11 | else
|
---|
12 | {
|
---|
13 | $date=date("Y-m-d");
|
---|
14 | $date2=date("Ymd");
|
---|
15 | $path="../scheduling/".date("Y/m/d");
|
---|
16 | }
|
---|
17 |
|
---|
18 |
|
---|
19 | echo "<body>";
|
---|
20 | echo "<form action='scheduling.php' METHOD='GET'>\n";
|
---|
21 | echo "<input type='submit' value='Show'> scheduling plots for ";
|
---|
22 | printf("<input name='date' type='text' size='10' maxlength='10' value='%s'>\n", $date);
|
---|
23 | echo "</form>";
|
---|
24 | printf("<a href='%s'>more files</a>",$path);
|
---|
25 | echo "<table>";
|
---|
26 | echo "<tr>";
|
---|
27 | //printf("<td><img src='%s/visibility%s.png' alt='visibility'></td>", $path, $date);
|
---|
28 | //printf("<td valign='top'><img src='%s/legend%s.png' alt='legend'></td>", $path, $date);
|
---|
29 | printf("<td><img src='%s/%s-ZenithDistance.png' alt='visibility'></td>", $path, $date2);
|
---|
30 | printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>", $path, $date2);
|
---|
31 | echo "</tr>";
|
---|
32 | echo "<tr>";
|
---|
33 | //printf("<td><img src='%s/currents%s.png' alt='currents'></td>", $path, $date);
|
---|
34 | //printf("<td valign='top'><img src='%s/legend%s.png' alt='legend'></td>", $path, $date);
|
---|
35 | printf("<td><img src='%s/%s-PredictedCurrent.png' alt='currents'></td>", $path, $date2);
|
---|
36 | printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>", $path, $date2);
|
---|
37 | echo "<tr>";
|
---|
38 | printf("<td><img src='%s/%s-MoonDist.png' alt='moondist'></td>", $path, $date2);
|
---|
39 | printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>", $path, $date2);
|
---|
40 | echo "</tr>";
|
---|
41 | echo "<tr>";
|
---|
42 | printf("<td><img src='%s/%s-RelativeThreshold.png' alt='threshold'></td>", $path, $date2);
|
---|
43 | printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>", $path, $date2);
|
---|
44 | echo "</tr>";
|
---|
45 | echo "</table>";
|
---|
46 |
|
---|
47 |
|
---|
48 | echo "</body>";
|
---|
49 | echo "</html>";
|
---|
50 | ?>
|
---|