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.38 by pjm2, Tue Mar 13 19:29:11 2001 UTC vs.
Revision 1.44 by tdb, Fri Mar 11 12:23:32 2005 UTC

# Line 1 | Line 1
1   <?php
2  
3 # Navigation for the i-scream reports.
4 # pjm2@ukc.ac.uk
3   #
4 + # i-scream central monitoring system
5 + # http://www.i-scream.org
6 + # Copyright (C) 2000-2002 i-scream
7 + #
8 + # This program is free software; you can redistribute it and/or
9 + # modify it under the terms of the GNU General Public License
10 + # as published by the Free Software Foundation; either version 2
11 + # of the License, or (at your option) any later version.
12 + #
13 + # This program is distributed in the hope that it will be useful,
14 + # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 + # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 + # GNU General Public License for more details.
17 + #
18 + # You should have received a copy of the GNU General Public License
19 + # along with this program; if not, write to the Free Software
20 + # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 + #
22 +
23   # CONFIGURABLE CONSTANTS: -
24  
25   include("browser_config.inc.php");
# Line 98 | Line 115 | include("iutils.inc.php");
115   <?
116      if ($submit == "Show" && $machine_name && $report) {
117          
101        include("$reportDirectory/$day/$machine_name/$report/$reportLimitsFile");
102        
118          $url = "$webRoot/$day/$machine_name/$report/$reportChartFile";
119          if (isReportEmpty("$reportDirectory/$day/$machine_name/$report/$reportChartDataFile", $minFileSize)) {
120              echo "Host <b>$machine_name</b> did not send any information about <b>$report</b> on <b>$day</b>.  Please select another report.";
121          }
122 <        else if (file_exists("$reportDirectory/$day/$machine_name/$report/$reportChartFile")) {  ?>
123 <          
122 >        else if (file_exists("$reportDirectory/$day/$machine_name/$report/$reportChartFile")) {  
123 >
124 >            include("$reportDirectory/$day/$machine_name/$report/$reportLimitsFile");
125 >            
126 >            ?>
127 >            
128              <center><b>[<? echo $machine_name; ?>] - <? echo $report; ?></b></center>
129            
130              <table border="0" cellpadding="0" cellspacing="0">
# Line 128 | Line 147 | include("iutils.inc.php");
147               </tr>
148              </table>
149              
150 <            <hr weigth="1" color="<? echo $lineColor ?>">
150 >            <hr weight="1" color="<? echo $lineColor ?>">
151 >            
152 >            <b>Latest data</b>
153 >            <p>
154 >            Latest set of data received from
155 >            <a href="<? echo "latest.php?machine=$machine_name"; ?>"><?=$machine_name?></a>
156 >            <br>
157 >            Alerts for <a href="alerts.php?machine=<?=$machine_name?>"><?=$machine_name?></a>
158 >
159 >
160 >            <hr weight="1" color="<? echo $lineColor ?>">
161              
162              <b>Extra data</b>
163              <p>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines