ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/historical/browser.php
(Generate patch)

Comparing projects/cms/source/reports/php/historical/browser.php (file contents):
Revision 1.7 by pjm2, Sun Feb 4 14:25:47 2001 UTC vs.
Revision 1.8 by pjm2, Sun Feb 4 14:49:36 2001 UTC

# Line 53 | Line 53 | function getdirArray($dir='./',$sort='asort') {
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>";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines