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.16 by pjm2, Wed Mar 21 12:22:16 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>
47 >              <font size="2">$attributeName <font color="$alertColour"><b>$alertLevel</b></font></font>
48 >             </td>
49 >            </tr>
50 > EOT;
51      }
52      else {
53          echo <<<EOT
# Line 79 | Line 85 | function printReports($machine, $small="") {
85      $alertArray = getdirArray("$alertDirectory/$machine", 'rsort');
86    
87      if ($small == "true") {
88 <        
88 >        echo <<<EOT
89 >           <table border="0" cellpadding="2" cellspacing="0" bgcolor="#ffffff" width="100%">
90 >            <tr>
91 >             <td bgcolor="#000066">
92 >              <font color="white"><b>$machine</b></font>
93 >             </td>
94 >            </tr>
95 > EOT;
96      }
97      else {
98          echo <<<EOT
# Line 123 | Line 136 | EOT;
136      }
137  
138      if ($small == "true") {
139 <        
139 >        echo "</table>";
140      }
141      else {
142          echo <<<EOT
# Line 139 | Line 152 | EOT;
152  
153   <? include($titleHTML); ?>
154  
155 < <? printLine("Display the latest alerts for a host"); ?>
155 > <? printLine("Latest alerts for hosts"); ?>
156  
157 + <? if (!$hideform) { ?>
158 +
159   <form method="<? echo $formMethod ?>" action="<? echo $thisPage ?>">
160   <?
161  
# Line 161 | Line 176 | EOT;
176   <input type="hidden" name="small" value="<?=$small?>">
177   <input type="submit" name="submit" value="Display">
178   </form>
179 +
180 + <? } ?>
181  
182   <? if ($machine) {
183  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines