1 |
|
<?php |
2 |
|
|
3 |
< |
// A test navigation thingy. |
3 |
> |
// Navigation for the i-scream reports. |
4 |
|
// pjm2@ukc.ac.uk |
5 |
|
|
6 |
|
|
29 |
|
} |
30 |
|
} |
31 |
|
|
32 |
– |
include("day.inc"); |
33 |
– |
|
32 |
|
?> |
33 |
|
|
34 |
< |
<html> |
37 |
< |
<body bgcolor="#ffffff"> |
34 |
> |
<? include("title.inc"); ?> |
35 |
|
|
39 |
– |
<table border="0" align="center" cellpadding="2" cellspacing="5"> |
40 |
– |
<tr> |
41 |
– |
<td valign="top"> |
42 |
– |
<? include("left.inc"); ?> |
43 |
– |
</td> |
44 |
– |
<td> |
45 |
– |
<? include("title.inc"); ?> |
46 |
– |
|
47 |
– |
|
48 |
– |
<font face="arial, sans-serif" size="2"> |
49 |
– |
<b>View reports for <? echo "$day" ?></b> |
50 |
– |
</font> |
51 |
– |
|
52 |
– |
<p> |
53 |
– |
|
36 |
|
<form method="GET" action=""> |
37 |
|
<select size="1" name="machine_name"> |
38 |
< |
<option selected value=""></option> |
39 |
< |
<? include("machine_name.inc"); ?> |
38 |
> |
<option selected value="">[select machine]</option> |
39 |
> |
<? #include("machine_name.inc"); ?> |
40 |
|
</select> |
41 |
|
|
42 |
|
<select size="1" name="report"> |
43 |
< |
<option selected value=""></option> |
44 |
< |
<? include("report.inc"); ?> |
43 |
> |
<option selected value="">[select report]</option> |
44 |
> |
<? #include("report.inc"); ?> |
45 |
|
</select> |
46 |
|
|
47 |
< |
<input type="submit" name="submit" value="bung"> |
47 |
> |
<input type="submit" name="submit" value="Show"> |
48 |
|
</form> |
49 |
|
|
50 |
|
</p> |
51 |
|
|
52 |
|
|
53 |
|
<? |
54 |
< |
if ($submit == "bung") { |
54 |
> |
if ($submit == "Show" && $machine_name && $report) { |
55 |
|
$url = escapeshellcmd("$day/$machine_name/$report/chart.gif"); |
56 |
|
if (file_exists($url)) { |
57 |
|
echo "<p><b>[$machine_name] - $report</b><br><img src=\"$url\" width=\"500\" height=\"250\"><br><img src=\"24hour.gif\" width=\"500\" height=\"39\"></p>"; |
65 |
|
|
66 |
|
<hr> |
67 |
|
|
86 |
– |
<p> |
87 |
– |
<font face="arial, sans-serif" size="2"> |
88 |
– |
<b>Or browse all dates</b> |
89 |
– |
</font> |
90 |
– |
</p> |
91 |
– |
|
68 |
|
<? |
69 |
|
|
70 |
< |
$file_array = getdirArray('/home/cut/pjm2/webpages/reports','asort'); |
70 |
> |
$file_array = getdirArray('/home/cut/pjm2/webpages/reports','rsort'); |
71 |
|
print "<ul>"; |
72 |
|
foreach($file_array as $file_name) { |
73 |
|
if (is_dir($file_name)) { |
78 |
|
|
79 |
|
?> |
80 |
|
|
81 |
< |
<? include("bottom.inc"); ?> |
106 |
< |
|
107 |
< |
</body> |
108 |
< |
</html> |
81 |
> |
<? include("bottom.inc"); ?> |