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="3" color="$alertColour"><b>$alertLevel</b></font> |
51 |
> |
</td> |
52 |
> |
<td align="left"> |
53 |
> |
<font size="3">$attributeName</font> |
54 |
> |
</td> |
55 |
> |
<td> |
56 |
> |
|
57 |
> |
</td> |
58 |
> |
</tr> |
59 |
> |
EOT; |
60 |
|
} |
61 |
|
else { |
62 |
|
echo <<<EOT |
94 |
|
$alertArray = getdirArray("$alertDirectory/$machine", 'rsort'); |
95 |
|
|
96 |
|
if ($small == "true") { |
97 |
< |
|
97 |
> |
echo <<<EOT |
98 |
> |
<table border="0" cellpadding="2" cellspacing="0"> |
99 |
> |
<tr> |
100 |
> |
<td colspan="4"> |
101 |
> |
<font size="+1"><b>$machine</b></font> |
102 |
> |
</td> |
103 |
> |
</tr> |
104 |
> |
EOT; |
105 |
|
} |
106 |
|
else { |
107 |
|
echo <<<EOT |
145 |
|
} |
146 |
|
|
147 |
|
if ($small == "true") { |
148 |
< |
|
148 |
> |
echo "</table>"; |
149 |
|
} |
150 |
|
else { |
151 |
|
echo <<<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 |
|
|