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.6 by pjm2, Sun Feb 4 13:13:20 2001 UTC vs.
Revision 1.7 by pjm2, Sun Feb 4 14:25:47 2001 UTC

# Line 38 | Line 38 | function getdirArray($dir='./',$sort='asort') {
38  
39   <table border="0" align="center" cellpadding="2" cellspacing="5">
40   <tr>
41 <   <td>
41 >   <td valign="top">
42      <? include("left.inc"); ?>
43     </td>
44     <td>
# 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>
57        <? include("machine_name.inc"); ?>
58       </select>
59  
60       <select size="1" name="report">
61 +      <option selected value=""></option>
62        <? include("report.inc"); ?>
63       </select>
64  
# Line 70 | Line 72 | function getdirArray($dir='./',$sort='asort') {
72      if ($submit == "bung") {
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>";
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 90 | Line 92 | function getdirArray($dir='./',$sort='asort') {
92   <?
93  
94      $file_array = getdirArray('/home/cut/pjm2/webpages/reports','asort');
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines