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.15 by pjm2, Wed Mar 21 12:13:15 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 80 | Line 86 | function printReports($machine, $small="") {
86    
87      if ($small == "true") {
88          echo <<<EOT
89 <           <table border="0" cellpadding="2" cellspacing="2" bgcolor="#ffffff" width="100%">
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>
# Line 146 | 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 168 | 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