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.4 by pjm2, Sun Feb 4 12:44:17 2001 UTC vs.
Revision 1.9 by pjm2, Sun Feb 4 15:01:03 2001 UTC

# Line 36 | Line 36 | function getdirArray($dir='./',$sort='asort') {
36   <html>
37   <body bgcolor="#ffffff">
38  
39 < <font face="arial, sans-serif">
40 < <h4>I-scream report browser [trial 2.0]</h4>
41 < </font>
39 > <table border="0" align="center" cellpadding="2" cellspacing="5">
40 > <tr>
41 >   <td valign="top">
42 >    <? include("left.inc"); ?>
43 >   </td>
44 >   <td>
45 >    <? include("title.inc"); ?>
46  
43 <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="">
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 >      <option selected value="">[select machine]</option>
57 >      <? include("machine_name.inc"); ?>
58 >     </select>
59  
60 <  <select size="1" name="report">
61 <   <? include("report.inc"); ?>
62 <  </select>
60 >     <select size="1" name="report">
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 < </form>
68 >    </p>
69  
64 </p>
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 - $report$</b><br><img src=\"$url\" width=\"500\" height=\"250\"><br><img src=\"24hour.gif\" width=\"500\" height=\"39\"></p>";
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>";
76          }
77          else {
78              echo "<p>The report could not be found.</p>";
# Line 86 | Line 91 | function getdirArray($dir='./',$sort='asort') {
91  
92   <?
93  
94 <    $file_array = getdirArray('/home/cut/pjm2/webpages/reports','asort');
94 >    $file_array = getdirArray('/home/cut/pjm2/webpages/reports','rsort');
95 >    print "<ul>";
96      foreach($file_array as $file_name) {
97          if (is_dir($file_name)) {
98 <            print "+ <a href=\"$file_name\">$file_name</a><br>";
98 >            print "<li><a href=\"$file_name\">$file_name</a>";
99          }
100      }
101 +    print "</ul>";
102  
103   ?>
104 +
105 + <? include("bottom.inc"); ?>
106  
107   </body>
108   </html>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines