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.12 by pjm2, Sun Mar 11 21:38:57 2001 UTC vs.
Revision 1.17 by pjm2, Sun Mar 11 22:11:56 2001 UTC

# Line 61 | Line 61 | function showStat($title, $value, $input) {
61  
62  
63   # show a bar-represented value.
64 < function showBar($title, $value, $max, $input) {
64 > function showBar($title, $value, $max, $units, $input) {
65  
66      include("latest_config.inc.php");
67  
# Line 80 | Line 80 | function showBar($title, $value, $max, $input) {
80      ?>
81          <table border="0" cellpadding="0" cellspacing="0" align="center">
82            <tr>
83 <            <td colspan="2"><b><?=$title?></b></td>
83 >            <td colspan="2"><b><?=$title?></b> <font size="2">(<?=$value?><?=$units?>)</font></td>
84            </tr>
85            <tr>
86              <td colspan="2" bgcolor="#eeeeff"><img src="<?=$barImage?>" border="0" height="20" width="<?=$width?>"></td>
# Line 89 | Line 89 | function showBar($title, $value, $max, $input) {
89              <td colspan="2"><img src="<?=$scaleImage?>" border="0" height="11" width="<?=$max_width?>"></td>
90            </tr>
91            <tr>
92 <            <td align="left">0</td>
93 <            <td align="right"><?=$max?></td>
92 >            <td align="left">0<?=$units?></td>
93 >            <td align="right"><?=$max?><?=$units?></td>
94            </tr>
95 +          <tr>
96 +            <td colspan="2">&nbsp;</td>
97 +          </tr>
98          </table>
99      <?
100   }
# Line 123 | Line 126 | function showBar($title, $value, $max, $input) {
126   <input type="submit" name="submit" value="Display">
127   </form>
128  
126 <hr weight="1" color="<? echo $lineColor ?>">
127
129   <? if ($machine) {
130  
131         $last_modified = filemtime("$latestDirectory/$machine/$latestData");
132         clearstatcache();
133         $data_age = time() - $last_modified;
134  
135 <       $last_modified = strftime("%a %d %b %Y at %T", $last_modified);
135 >       $last_modified = date("l jS F - g:ia", $last_modified);
136  
137         if ($data_age > $warning_age) {
138             $warning = <<<EOT
# Line 144 | Line 145 | EOT;
145         }
146  
147   echo <<<EOT
148 <       <table border="0" bgcolor="#000066" cellpadding="3" cellspacing="1" align="center">
148 >       <table border="0" bgcolor="#000066" cellpadding="3" cellspacing="1">
149           <tr>
150             <td bgcolor="#000066">
151               &nbsp;
# Line 172 | Line 173 | EOT;
173             # Display the data specified in the display include.
174             include("latest_display.inc.php");
175         }
175      
176       printLine("");
176     }
177  
178   ?>
179  
180 + <? printLine(""); ?>
181  
182   <? include($bottomHTML); ?>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines