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.23 by pjm2, Tue Mar 13 20:31:39 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"><img src="minichart.gif" alt="View yesterday's 24-hour chart" width="20" height="20" border="0"></a>
43   EOT;
44   }
45  
# Line 49 | Line 49 | function showBar($title, $value, $max, $units, $input)
49  
50      include("latest_config.inc.php");
51  
52 +    $report = $value;
53 +
54      preg_match("/$value=([^\,]*)\,/", $input, $matches);
55      $value = $matches[1];
56      if (!is_int($max)) {
# Line 64 | Line 66 | function showBar($title, $value, $max, $units, $input)
66      ?>
67          <table border="0" cellpadding="0" cellspacing="0" align="center">
68            <tr>
69 <            <td colspan="2"><b><?=$title?></b> <font size="2">(<?=$value?><?=$units?>)</font></td>
69 >            <td colspan="2"><? linkToHistory($report); ?> <b><?=$title?></b> <font size="2">(<?=$value?><?=$units?>)</font></td>
70            </tr>
71            <tr>
72              <td colspan="2" bgcolor="#eeeeff"><img src="<?=$barImage?>" border="0" height="20" width="<?=$width?>"></td>
# Line 75 | Line 77 | function showBar($title, $value, $max, $units, $input)
77            <tr>
78              <td align="left">0<?=$units?></td>
79              <td align="right"><?=$max?><?=$units?></td>
78          </tr>
79          <tr>
80            <td colspan="2"><? linkToHistory($value); ?> View yesterday's graph</td>
80            </tr>
81            <tr>
82              <td colspan="2">&nbsp;</td>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines