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

Comparing projects/cms/source/reports/php/alerts/alerts.php (file contents):
Revision 1.30 by pjm2, Thu Mar 22 18:54:34 2001 UTC vs.
Revision 1.33 by tdb, Wed Feb 13 16:28:27 2002 UTC

# Line 65 | Line 65 | function printAlert($machine, $alert, $small="") {
65                <font size="$fontsize" color="$alertColour"><b>$alertLevel</b></font>
66               </td>
67               <td>
68 <              <font size="$fontsize">$attributeName</font>
68 >              <font size="$fontsize">$attributeName (c:$value t:$thresholdValue)</font>
69               </td>
70               <td>
71                &nbsp;
# Line 167 | Line 167 | EOT;
167      }
168  
169      if ($small == "on") {
170 <        echo "</table>";
170 >        echo <<<EOT
171 >            <tr>
172 >             <td colspan="5">&nbsp;</td>
173 >            </tr>
174 >           </table>
175 > EOT;
176      }
177      else {
178          echo <<<EOT
# Line 210 | Line 215 | EOT;
215  
216   <? } ?>
217  
213 <table border="0" align="center">
214 <tr>
215  <td>
216  
218   <? if ($machine) {
219  
220         printLine("");
221  
222 +       $masterwidth = "";
223 +       if ($small != "on") {
224 +           $masterwidth = ' width="100%"';
225 +       }
226 +
227 +       echo <<<EOT
228 +        <table border="0" align="center"$masterwidth>
229 +         <tr>
230 +          <td>
231 + EOT;
232 +
233         if ($machine == "ALL") {
234             $machine_array = getdirArray($alertDirectory, 'asort');
235             if ($machine_array != FALSE) {
# Line 225 | Line 237 | EOT;
237                     printReports($machine, $small);
238                 }
239             }
240 +           else {
241 +               print "<font size='$fontsize'><b>There are currently no alerts</b></font>";
242 +           }
243         }
244         else {
245             printReports($machine, $small);
246         }
247        
248 +       echo <<<EOT
249 +         </td>
250 +        </tr>
251 +       </table>
252 + EOT;
253     }
254     else {
255         printLine("");
256     }
257  
258   ?>
239
240  </td>
241 </tr>
242 </table>
259  
260   <? include($bottomHTML); ?>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines