| 52 |
|
$alertLevel = $alertLevelNames[$alertLevelNum]; |
| 53 |
|
$initialAlertTime = strftime("%x %X", intval($initialAlertTime / 1000)); |
| 54 |
|
|
| 55 |
< |
if ($small == "true") { |
| 55 |
> |
if ($small == "on") { |
| 56 |
|
echo <<<EOT |
| 57 |
|
<tr> |
| 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"> |
| 67 |
> |
<td> |
| 68 |
|
<font size="$fontsize">$attributeName</font> |
| 69 |
|
</td> |
| 70 |
|
<td> |
| 113 |
|
include("alerts_config.inc.php"); |
| 114 |
|
$alertArray = getdirArray("$alertDirectory/$machine", 'rsort'); |
| 115 |
|
|
| 116 |
< |
if ($small == "true") { |
| 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> |
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
else { |
| 163 |
< |
if ($small != "true") { |
| 163 |
> |
if ($small != "on") { |
| 164 |
|
echo "There are currently no alerts held about <b>$machine</b>"; |
| 165 |
|
printLine(""); |
| 166 |
|
} |
| 167 |
|
} |
| 168 |
|
|
| 169 |
< |
if ($small == "true") { |
| 169 |
> |
if ($small == "on") { |
| 170 |
|
echo "</table>"; |
| 171 |
|
} |
| 172 |
|
else { |
| 183 |
|
|
| 184 |
|
<? include($titleHTML); ?> |
| 185 |
|
|
| 186 |
< |
<? if (!$hideform) { ?> |
| 186 |
> |
<? if ($hideform != "on") { ?> |
| 187 |
|
|
| 188 |
|
<? printLine("Latest alerts for hosts"); ?> |
| 189 |
|
|
| 210 |
|
|
| 211 |
|
<? } ?> |
| 212 |
|
|
| 213 |
+ |
<table border="0" align="center"> |
| 214 |
+ |
<tr> |
| 215 |
+ |
<td> |
| 216 |
+ |
|
| 217 |
|
<? if ($machine) { |
| 218 |
|
|
| 219 |
|
printLine(""); |
| 236 |
|
} |
| 237 |
|
|
| 238 |
|
?> |
| 239 |
+ |
|
| 240 |
+ |
</td> |
| 241 |
+ |
</tr> |
| 242 |
+ |
</table> |
| 243 |
|
|
| 244 |
|
<? include($bottomHTML); ?> |