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.6 by pjm2, Sun Feb 4 13:13:20 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>
41 < </font>
39 > <table border="0" align="center" cellpadding="2" cellspacing="5">
40 > <tr>
41 >   <td>
42 >    <? include("left.inc"); ?>
43 >   </td>
44 >   <td>
45 >    <? include("title.inc"); ?>
46  
48 <hr>
47  
48 < <font face="arial, sans-serif" size="2">
49 < <b>View reports for <? echo "$day" ?></b>
50 < </font>
48 >    <font face="arial, sans-serif" size="2">
49 >    <b>View reports for <? echo "$day" ?></b>
50 >    </font>
51  
52 < <p>
52 >    <p>
53  
54 < <form method="GET" action="browser.php">
55 <  <select size="1" name="machine_name">
56 <   <? include("machine_name.inc"); ?>
57 <  </select>
54 >    <form method="GET" action="">
55 >     <select size="1" name="machine_name">
56 >      <? include("machine_name.inc"); ?>
57 >     </select>
58  
59 <  <select size="1" name="report">
60 <   <? include("report.inc"); ?>
61 <  </select>
59 >     <select size="1" name="report">
60 >      <? include("report.inc"); ?>
61 >     </select>
62  
63 <  <input type="submit" name="submit" value="bung">
63 >     <input type="submit" name="submit" value="bung">
64 >    </form>
65  
66 < </form>
66 >    </p>
67  
69 </p>
68  
69 + <?
70 +    if ($submit == "bung") {
71 +        $url = escapeshellcmd("$day/$machine_name/$report/chart.gif");
72 +        if (file_exists($url)) {
73 +            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>";
74 +        }
75 +        else {
76 +            echo "<p>The report could not be found.</p>";
77 +        }
78 +    }
79 +    
80 + ?>
81 +
82   <hr>
83  
84   <p>
# Line 86 | Line 97 | function getdirArray($dir='./',$sort='asort') {
97      }
98  
99   ?>
100 +
101 + <? include("bottom.inc"); ?>
102  
103   </body>
104 < </html>
104 > </html>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines