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.1 by pjm2, Sat Feb 3 22:34:02 2001 UTC vs.
Revision 1.5 by pjm2, Sun Feb 4 13:01:50 2001 UTC

# Line 31 | Line 31 | function getdirArray($dir='./',$sort='asort') {
31  
32      include("day.inc");
33  
34    if ($submit == "bung") {
35        $url = escapeshellcmd("$day/$machine_name/$report/chart.gif");
36        Header("Location: $url");
37        exit;
38    }
34   ?>
35  
36   <html>
37 < <body bgcolor="eeeeff">
37 > <body bgcolor="#ffffff">
38  
39   <font face="arial, sans-serif">
40 < <h4>I-scream report browser</h4>
40 > <h4>I-scream report browser [trial 2.0]</h4>
41   </font>
42  
43   <hr>
# Line 53 | Line 48 | function getdirArray($dir='./',$sort='asort') {
48  
49   <p>
50  
51 < <form method="GET" action="browser.php">
51 > <form method="GET" action="">
52    <select size="1" name="machine_name">
53     <? include("machine_name.inc"); ?>
54    </select>
# Line 67 | Line 62 | function getdirArray($dir='./',$sort='asort') {
62   </form>
63  
64   </p>
65 +
66 + <?
67 +    if ($submit == "bung") {
68 +        $url = escapeshellcmd("$day/$machine_name/$report/chart.gif");
69 +        if (file_exists($url)) {
70 +            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>";
71 +        }
72 +        else {
73 +            echo "<p>The report could not be found.</p>";
74 +        }
75 +    }
76 +    
77 + ?>
78  
79   <hr>
80  
# Line 88 | Line 96 | function getdirArray($dir='./',$sort='asort') {
96   ?>
97  
98   </body>
99 < </html>
99 > </html>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines