| 58 |
|
<td width="50"> |
| 59 |
|
|
| 60 |
|
</td> |
| 61 |
< |
<td align="left"> |
| 61 |
> |
<td> |
| 62 |
|
<img src="level$alertLevelNum.gif" width="41" height="9" border="0" alt="$alertLevel"> |
| 63 |
|
</td> |
| 64 |
< |
<td align="left"> |
| 64 |
> |
<td> |
| 65 |
|
<font size="$fontsize" color="$alertColour"><b>$alertLevel</b></font> |
| 66 |
|
</td> |
| 67 |
< |
<td align="left"> |
| 68 |
< |
<font size="$fontsize">$attributeName</font> |
| 67 |
> |
<td> |
| 68 |
> |
<font size="$fontsize">$attributeName (c:$value t:$thresholdValue)</font> |
| 69 |
|
</td> |
| 70 |
|
<td> |
| 71 |
|
|
| 115 |
|
|
| 116 |
|
if ($small == "on") { |
| 117 |
|
echo <<<EOT |
| 118 |
< |
<table border="0" cellpadding="2" cellspacing="0"> |
| 118 |
> |
<table border="0" cellpadding="2" cellspacing="6"> |
| 119 |
|
<tr> |
| 120 |
|
<td colspan="5"> |
| 121 |
|
<font size="$fontsize"><b><a href="alerts.php?machine=$machine" style="color: black; text-decoration: none;">$machine</a></b></font> |
| 127 |
|
echo <<<EOT |
| 128 |
|
<p> </p> |
| 129 |
|
<table border="0" cellpadding="3" cellspacing="2" bgcolor="#000066" width="100%"> |
| 130 |
< |
<tr> |
| 130 |
> |
<tr> |
| 131 |
|
<td> |
| 132 |
|
<font color="white"> |
| 133 |
|
<b> |
| 167 |
|
} |
| 168 |
|
|
| 169 |
|
if ($small == "on") { |
| 170 |
< |
echo "</table>"; |
| 170 |
> |
echo <<<EOT |
| 171 |
> |
<tr> |
| 172 |
> |
<td colspan="5"> </td> |
| 173 |
> |
</tr> |
| 174 |
> |
</table> |
| 175 |
> |
EOT; |
| 176 |
|
} |
| 177 |
|
else { |
| 178 |
|
echo <<<EOT |
| 188 |
|
|
| 189 |
|
<? include($titleHTML); ?> |
| 190 |
|
|
| 191 |
< |
<? if (!$hideform) { ?> |
| 191 |
> |
<? if ($hideform != "on") { ?> |
| 192 |
|
|
| 193 |
|
<? printLine("Latest alerts for hosts"); ?> |
| 194 |
|
|
| 219 |
|
|
| 220 |
|
printLine(""); |
| 221 |
|
|
| 222 |
+ |
$masterwidth = ""; |
| 223 |
+ |
if ($small != "on") { |
| 224 |
+ |
$masterwidth = ' width="100%"'; |
| 225 |
+ |
} |
| 226 |
+ |
|
| 227 |
+ |
echo <<<EOT |
| 228 |
+ |
<table border="0" align="center"$masterwidth> |
| 229 |
+ |
<tr> |
| 230 |
+ |
<td> |
| 231 |
+ |
EOT; |
| 232 |
+ |
|
| 233 |
|
if ($machine == "ALL") { |
| 234 |
|
$machine_array = getdirArray($alertDirectory, 'asort'); |
| 235 |
|
if ($machine_array != FALSE) { |
| 237 |
|
printReports($machine, $small); |
| 238 |
|
} |
| 239 |
|
} |
| 240 |
+ |
else { |
| 241 |
+ |
print "<font size='$fontsize'><b>There are currently no alerts</b></font>"; |
| 242 |
+ |
} |
| 243 |
|
} |
| 244 |
|
else { |
| 245 |
|
printReports($machine, $small); |
| 246 |
|
} |
| 247 |
|
|
| 248 |
+ |
echo <<<EOT |
| 249 |
+ |
</td> |
| 250 |
+ |
</tr> |
| 251 |
+ |
</table> |
| 252 |
+ |
EOT; |
| 253 |
|
} |
| 254 |
|
else { |
| 255 |
|
printLine(""); |