36 |
|
<html> |
37 |
|
<body bgcolor="#ffffff"> |
38 |
|
|
39 |
< |
<font face="arial, sans-serif"> |
40 |
< |
<h4>I-scream report browser [trial 2.0]</h4> |
41 |
< |
</font> |
39 |
> |
<table border="0" align="center" cellpadding="2" cellspacing="5"> |
40 |
> |
<tr> |
41 |
> |
<td> |
42 |
> |
<? include("left.inc"); ?> |
43 |
> |
</td> |
44 |
> |
<td> |
45 |
> |
<? include("title.inc"); ?> |
46 |
|
|
43 |
– |
<hr> |
47 |
|
|
48 |
< |
<font face="arial, sans-serif" size="2"> |
49 |
< |
<b>View reports for <? echo "$day" ?></b> |
50 |
< |
</font> |
48 |
> |
<font face="arial, sans-serif" size="2"> |
49 |
> |
<b>View reports for <? echo "$day" ?></b> |
50 |
> |
</font> |
51 |
|
|
52 |
< |
<p> |
52 |
> |
<p> |
53 |
|
|
54 |
< |
<form method="GET" action=""> |
55 |
< |
<select size="1" name="machine_name"> |
56 |
< |
<? include("machine_name.inc"); ?> |
57 |
< |
</select> |
54 |
> |
<form method="GET" action=""> |
55 |
> |
<select size="1" name="machine_name"> |
56 |
> |
<? include("machine_name.inc"); ?> |
57 |
> |
</select> |
58 |
|
|
59 |
< |
<select size="1" name="report"> |
60 |
< |
<? include("report.inc"); ?> |
61 |
< |
</select> |
59 |
> |
<select size="1" name="report"> |
60 |
> |
<? include("report.inc"); ?> |
61 |
> |
</select> |
62 |
|
|
63 |
< |
<input type="submit" name="submit" value="bung"> |
63 |
> |
<input type="submit" name="submit" value="bung"> |
64 |
> |
</form> |
65 |
|
|
66 |
< |
</form> |
66 |
> |
</p> |
67 |
|
|
64 |
– |
</p> |
68 |
|
|
69 |
|
<? |
70 |
|
if ($submit == "bung") { |
71 |
|
$url = escapeshellcmd("$day/$machine_name/$report/chart.gif"); |
72 |
|
if (file_exists($url)) { |
73 |
< |
echo "<p><b>$machine - $report$</b><br><img src=\"$url\" width=\"500\" height=\"250\"><br><img src=\"24hour.gif\" width=\"500\" height=\"39\"></p>"; |
73 |
> |
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>"; |
74 |
|
} |
75 |
|
else { |
76 |
|
echo "<p>The report could not be found.</p>"; |
97 |
|
} |
98 |
|
|
99 |
|
?> |
100 |
+ |
|
101 |
+ |
<? include("bottom.inc"); ?> |
102 |
|
|
103 |
|
</body> |
104 |
|
</html> |