source: trunk/www/dch/scheduling.php@ 18769

Last change on this file since 18769 was 18416, checked in by Daniela Dorner, 9 years ago
added suggested schedule
File size: 2.6 KB
Line 
1<html>
2<head>
3 <meta name="Author" content="Daniela Dorner" />
4 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5 <title>FACT Project</title>
6 <link rel="StyleSheet" type="text/css" href="../style.css" />
7</head>
8<?php
9
10include ("dates.php");
11
12echo "<body>\n";
13echo "<form name='formular' action='scheduling.php' METHOD='GET'>\n";
14echo "scheduling plots for ";
15
16
17$d = isset($_GET['date']) ? $_GET['date'] : '';
18
19$date=GetDates($d, "scheduling");
20$date2=date("Ymd", strtotime($date));
21$path="../scheduling/".date("Y/m/d", strtotime($date));
22
23echo "</form>\n";
24
25if (is_dir($path))
26{
27 printf("<a href='%s'>more files</a>\n",$path);
28 printf("<input id='button' type='button' style='font-size:medium;font-weight:bold;background:white;border:1px' onclick='var e=document.getElementById(\"sched\"); e.setAttribute(\"style\",e.visible?\"display:none\":\"display:block\"); document.getElementById(\"button\").value=e.visible?\"+\":\"-\"; e.visible=!e.visible;' value='+'>Suggested Schedule</input>");
29 printf("<div id='sched' style='display:none;'><pre>");
30 $schedfile=$path."/schedule-".$date2.".txt";
31 echo file_get_contents($schedfile);
32 printf("</pre></div>");
33 echo "<table>\n";
34 echo "<tr>\n";
35 //printf("<td><img src='%s/visibility%s.png' alt='visibility'></td>", $path, $date);
36 //printf("<td valign='top'><img src='%s/legend%s.png' alt='legend'></td>", $path, $date);
37 printf("<td><img src='%s/%s-ZenithDistance.png' alt='visibility'></td>\n", $path, $date2);
38 printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>\n", $path, $date2);
39 echo "</tr>\n";
40 echo "<tr>\n";
41 //printf("<td><img src='%s/currents%s.png' alt='currents'></td>", $path, $date);
42 //printf("<td valign='top'><img src='%s/legend%s.png' alt='legend'></td>", $path, $date);
43 printf("<td><img src='%s/%s-PredictedCurrent.png' alt='currents'></td>\n", $path, $date2);
44 printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>\n", $path, $date2);
45 echo "</tr>\n";
46 echo "<tr>\n";
47 printf("<td><img src='%s/%s-MoonDist.png' alt='moondist'></td>\n", $path, $date2);
48 printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>\n", $path, $date2);
49 echo "</tr>\n";
50 echo "<tr>\n";
51 printf("<td><img src='%s/%s-RelativeThreshold.png' alt='threshold'></td>\n", $path, $date2);
52 printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>\n", $path, $date2);
53 echo "</tr>\n";
54 echo "</table>\n";
55}
56else
57 echo "No files available for ".$date.".\n";
58
59
60echo "</body>\n";
61echo "</html>\n";
62?>
Note: See TracBrowser for help on using the repository browser.