| 53 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 54 |  | <form method="GET" action=""> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 55 |  | <select size="1" name="machine_name"> | 
 
 
 
 
 
 
 
 
 
 
 | 56 | < | <option selected value=""></option> | 
 
 
 
 
 
 
 
 
 | 56 | > | <option selected value="">[select machine]</option> | 
 
 
 
 
 
 
 
 
 
 
 | 57 |  | <? include("machine_name.inc"); ?> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 58 |  | </select> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 59 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 60 |  | <select size="1" name="report"> | 
 
 
 
 
 
 
 
 
 
 
 | 61 | < | <option selected value=""></option> | 
 
 
 
 
 
 
 
 
 | 61 | > | <option selected value="">[select report]</option> | 
 
 
 
 
 
 
 
 
 
 
 | 62 |  | <? include("report.inc"); ?> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 63 |  | </select> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 64 |  |  | 
 
 
 
 
 
 
 
 
 
 
 | 65 | < | <input type="submit" name="submit" value="bung"> | 
 
 
 
 
 
 
 
 
 | 65 | > | <input type="submit" name="submit" value="Show"> | 
 
 
 
 
 
 
 
 
 
 
 | 66 |  | </form> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 67 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 68 |  | </p> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 69 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 70 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 71 |  | <? | 
 
 
 
 
 
 
 
 
 
 
 | 72 | < | if ($submit == "bung") { | 
 
 
 
 
 
 
 
 
 | 72 | > | if ($submit == "Show" && $machine_name && $report) { | 
 
 
 
 
 
 
 
 
 
 
 | 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>"; |