ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/reports/php/latest/latest.php
(Generate patch)

Comparing projects/cms/source/reports/php/latest/latest.php (file contents):
Revision 1.20 by pjm2, Tue Mar 13 20:08:53 2001 UTC vs.
Revision 1.21 by pjm2, Tue Mar 13 20:21:11 2001 UTC

# Line 39 | Line 39 | function linkToHistory($report) {
39      global $machine;
40      $yesterday = date("Y-m-d", time() - 86400);
41      echo <<<EOT
42 <        <a href="browser.php?machine_name=$machine&report=$report&day=$yesterday&submit=Show"><img src="historical.gif" width="20" height="20" border="0"></a>
42 >        <a href="browser.php?machine_name=$machine&report=$report&day=$yesterday&submit=Show"><img src="minichart.gif" width="20" height="20" border="0"></a>
43   EOT;
44   }
45  
# Line 75 | Line 75 | function showBar($title, $value, $max, $units, $input)
75            <tr>
76              <td align="left">0<?=$units?></td>
77              <td align="right"><?=$max?><?=$units?></td>
78 +          </tr>
79 +          <tr>
80 +            <td colspan="2"><? linkToHistory($value); ?> View yesterday's graph</td>
81            </tr>
82            <tr>
83              <td colspan="2">&nbsp;</td>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines