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 |
> |
|
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 |
> |
|
57 |
> |
</td> |
58 |
> |
</tr> |
59 |
> |
EOT; |
60 |
|
} |
61 |
|
else { |
62 |
|
echo <<<EOT |
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; |
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 |
|
|
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 |
|
|