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.2 by pjm2, Sat Feb 3 22:35:15 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">
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><img src=\"$url\" width=\"500\" height=\"250\"></p>";
71 +        }
72 +        else {
73 +            echo "<p>The report could not be found.</p>";
74 +        }
75 +    }
76 +    
77 + ?>
78  
79   <hr>
80  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines