| 38 |
|
|
| 39 |
|
<table border="0" align="center" cellpadding="2" cellspacing="5"> |
| 40 |
|
<tr> |
| 41 |
< |
<td> |
| 41 |
> |
<td valign="top"> |
| 42 |
|
<? include("left.inc"); ?> |
| 43 |
|
</td> |
| 44 |
|
<td> |
| 53 |
|
|
| 54 |
|
<form method="GET" action=""> |
| 55 |
|
<select size="1" name="machine_name"> |
| 56 |
+ |
<option selected value=""></option> |
| 57 |
|
<? include("machine_name.inc"); ?> |
| 58 |
|
</select> |
| 59 |
|
|
| 60 |
|
<select size="1" name="report"> |
| 61 |
+ |
<option selected value=""></option> |
| 62 |
|
<? include("report.inc"); ?> |
| 63 |
|
</select> |
| 64 |
|
|
| 72 |
|
if ($submit == "bung") { |
| 73 |
|
$url = escapeshellcmd("$day/$machine_name/$report/chart.gif"); |
| 74 |
|
if (file_exists($url)) { |
| 75 |
< |
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>"; |
| 75 |
> |
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>"; |
| 76 |
|
} |
| 77 |
|
else { |
| 78 |
|
echo "<p>The report could not be found.</p>"; |
| 92 |
|
<? |
| 93 |
|
|
| 94 |
|
$file_array = getdirArray('/home/cut/pjm2/webpages/reports','asort'); |
| 95 |
+ |
print "<ul>"; |
| 96 |
|
foreach($file_array as $file_name) { |
| 97 |
|
if (is_dir($file_name)) { |
| 98 |
< |
print "+ <a href=\"$file_name\">$file_name</a><br>"; |
| 98 |
> |
print "<li><a href=\"$file_name\">$file_name</a>"; |
| 99 |
|
} |
| 100 |
|
} |
| 101 |
+ |
print "</ul>"; |
| 102 |
|
|
| 103 |
|
?> |
| 104 |
|
|