26 |
|
|
27 |
|
include("alerts_config.inc.php"); |
28 |
|
|
29 |
< |
$alertLevel = getValue("alertLevel", $alert); |
29 |
> |
$alertLevelNum = getValue("alertLevel", $alert); |
30 |
|
$lastAlert = getValue("lastAlert", $alert); |
31 |
|
$thresholdLevel = getValue("thresholdLevel", $alert); |
32 |
|
$source = getValue("source", $alert); |
36 |
|
$timeTillNextAlert = getValue("timeTillNextAlert", $alert); |
37 |
|
$initialAlertTime = getValue("initialAlertTime", $alert); |
38 |
|
|
39 |
< |
$alertColour = $alertLevelColours[$alertLevel]; |
40 |
< |
$alertLevel = $alertLevelNames[$alertLevel]; |
39 |
> |
$alertColour = $alertLevelColours[$alertLevelNum]; |
40 |
> |
$alertLevel = $alertLevelNames[$alertLevelNum]; |
41 |
|
$initialAlertTime = strftime("%x %X", intval($initialAlertTime / 1000)); |
42 |
|
|
43 |
|
if ($small == "true") { |
47 |
|
|
48 |
|
</td> |
49 |
|
<td align="left"> |
50 |
+ |
<img src="level$alertLevelNum.gif" width="41" height="9" border="0" alt="$alertLevel"> |
51 |
+ |
</td> |
52 |
+ |
<td align="left"> |
53 |
|
<font size="3" color="$alertColour"><b>$alertLevel</b></font> |
54 |
|
</td> |
55 |
|
<td align="left"> |
100 |
|
echo <<<EOT |
101 |
|
<table border="0" cellpadding="2" cellspacing="0"> |
102 |
|
<tr> |
103 |
< |
<td colspan="4"> |
103 |
> |
<td colspan="5"> |
104 |
|
<font size="+1"><b>$machine</b></font> |
105 |
|
</td> |
106 |
|
</tr> |