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

Last change on this file since 18956 was 18879, checked in by Daniela Dorner, 7 years ago
added swift schedule
File size: 3.2 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 $swiftschedfile=$path."/swift.schedule.txt";
34 if (file_exists($swiftschedfile))
35 {
36 printf("<input id='button2' type='button' style='font-size:medium;font-weight:bold;background:white;border:1px' onclick='var e=document.getElementById(\"swiftsched\"); e.setAttribute(\"style\",e.visible?\"display:none\":\"display:block\"); document.getElementById(\"button2\").value=e.visible?\"+\":\"-\"; e.visible=!e.visible;' value='+'>from Swift Schedule</input>");
37 printf("<div id='swiftsched' style='display:none;'><pre>");
38 echo file_get_contents($swiftschedfile);
39 printf("</pre></div>");
40 }
41 echo "<table>\n";
42 echo "<tr>\n";
43 //printf("<td><img src='%s/visibility%s.png' alt='visibility'></td>", $path, $date);
44 //printf("<td valign='top'><img src='%s/legend%s.png' alt='legend'></td>", $path, $date);
45 printf("<td><img src='%s/%s-ZenithDistance.png' alt='visibility'></td>\n", $path, $date2);
46 printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>\n", $path, $date2);
47 echo "</tr>\n";
48 echo "<tr>\n";
49 //printf("<td><img src='%s/currents%s.png' alt='currents'></td>", $path, $date);
50 //printf("<td valign='top'><img src='%s/legend%s.png' alt='legend'></td>", $path, $date);
51 printf("<td><img src='%s/%s-PredictedCurrent.png' alt='currents'></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 "<tr>\n";
55 printf("<td><img src='%s/%s-MoonDist.png' alt='moondist'></td>\n", $path, $date2);
56 printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>\n", $path, $date2);
57 echo "</tr>\n";
58 echo "<tr>\n";
59 printf("<td><img src='%s/%s-RelativeThreshold.png' alt='threshold'></td>\n", $path, $date2);
60 printf("<td valign='top'><img src='%s/%s-Legend.png' alt='legend'></td>\n", $path, $date2);
61 echo "</tr>\n";
62 echo "</table>\n";
63}
64else
65 echo "No files available for ".$date.".\n";
66
67
68echo "</body>\n";
69echo "</html>\n";
70?>
Note: See TracBrowser for help on using the repository browser.