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.21 by pjm2, Tue Mar 13 20:21:11 2001 UTC vs.
Revision 1.22 by pjm2, Tue Mar 13 20:26:35 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="minichart.gif" width="20" height="20" border="0"></a>
42 >        <a href="browser.php?machine_name=$machine&report=$report&day=$yesterday&submit=Show">
43 >         <img src="minichart.gif" width="20" height="20" border="0">
44 >        </a>
45 >        <font size="2">View yesterday's 24-hour chart</font>
46   EOT;
47   }
48  
# Line 49 | Line 52 | function showBar($title, $value, $max, $units, $input)
52  
53      include("latest_config.inc.php");
54  
55 +    $report = $value;
56 +
57      preg_match("/$value=([^\,]*)\,/", $input, $matches);
58      $value = $matches[1];
59      if (!is_int($max)) {
# Line 77 | Line 82 | function showBar($title, $value, $max, $units, $input)
82              <td align="right"><?=$max?><?=$units?></td>
83            </tr>
84            <tr>
85 <            <td colspan="2"><? linkToHistory($value); ?> View yesterday's graph</td>
85 >            <td colspan="2" align="center"><? linkToHistory($report); ?></td>
86            </tr>
87            <tr>
88              <td colspan="2">&nbsp;</td>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines