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.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 80 | Line 95 | function printReports($machine, $small="") {
95    
96      if ($small == "true") {
97          echo <<<EOT
98 <           <table border="0" cellpadding="2" cellspacing="2" bgcolor="#ffffff" width="100%">
98 >           <table border="0" cellpadding="2" cellspacing="0">
99              <tr>
100 <             <td bgcolor="#000066">
101 <              <font color="white"><b>$machine</b></font>
100 >             <td colspan="4">
101 >              <b>$machine</b>
102               </td>
103              </tr>
104   EOT;
# Line 146 | 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 168 | 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