| 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 |
| 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> |
| 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 |
|
|
| 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 |
|
|