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.14 by pjm2, Wed Mar 21 12:07:59 2001 UTC vs.
Revision 1.18 by pjm2, Wed Mar 21 16:46:08 2001 UTC

# Line 41 | Line 41 | function printAlert($machine, $alert, $small="") {
41      $initialAlertTime = strftime("%x %X", intval($initialAlertTime / 1000));
42  
43      if ($small == "true") {
44 <        echo "small";
44 >        echo <<<EOT
45 >            <tr>
46 >             <td width="50">
47 >              &nbsp;
48 >             </td>
49 >             <td align="left">
50 >              <font size="2" color="$alertColour"><b>$alertLevel</b></font>
51 >             </td>
52 >             <td align="left">
53 >              <font size="2">$attributeName</font>
54 >             </td>
55 >             <td>
56 >              &nbsp;
57 >             </td>
58 >            </tr>
59 > EOT;
60      }
61      else {
62          echo <<<EOT
# Line 79 | Line 94 | function printReports($machine, $small="") {
94      $alertArray = getdirArray("$alertDirectory/$machine", 'rsort');
95    
96      if ($small == "true") {
97 <        
97 >        echo <<<EOT
98 >           <table border="0" cellpadding="2" cellspacing="0">
99 >            <tr>
100 >             <td colspan="4">
101 >              <b>$machine</b>
102 >             </td>
103 >            </tr>
104 > EOT;
105      }
106      else {
107          echo <<<EOT
# Line 123 | Line 145 | EOT;
145      }
146  
147      if ($small == "true") {
148 <        
148 >        echo "</table>";
149      }
150      else {
151          echo <<<EOT
# Line 139 | Line 161 | EOT;
161  
162   <? include($titleHTML); ?>
163  
164 < <? printLine("Display the latest alerts for a host"); ?>
164 > <? if (!$hideform) { ?>
165  
166 + <? printLine("Latest alerts for hosts"); ?>
167 +
168   <form method="<? echo $formMethod ?>" action="<? echo $thisPage ?>">
169   <?
170  
# Line 161 | Line 185 | EOT;
185   <input type="hidden" name="small" value="<?=$small?>">
186   <input type="submit" name="submit" value="Display">
187   </form>
188 +
189 + <? } ?>
190  
191   <? if ($machine) {
192  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines