| 36 |
|
$timeTillNextAlert = getValue("timeTillNextAlert", $alert); |
| 37 |
|
$initialAlertTime = getValue("initialAlertTime", $alert); |
| 38 |
|
|
| 39 |
+ |
if ($thresholdLevel == "1") { |
| 40 |
+ |
$thresholdLevel = "Lower"; |
| 41 |
+ |
} |
| 42 |
+ |
else if ($thresholdLevel == "2") { |
| 43 |
+ |
$thresholdLevel = "Upper"; |
| 44 |
+ |
} |
| 45 |
+ |
else { |
| 46 |
+ |
$thresholdLevel = "Normal"; |
| 47 |
+ |
} |
| 48 |
+ |
|
| 49 |
|
$alertColour = $alertLevelColours[$alertLevelNum]; |
| 50 |
|
$alertLevel = $alertLevelNames[$alertLevelNum]; |
| 51 |
|
$initialAlertTime = strftime("%x %X", intval($initialAlertTime / 1000)); |
| 86 |
|
</tr> |
| 87 |
|
<tr> |
| 88 |
|
<td align="right"><font size="2">Threshold:</font></td> |
| 89 |
< |
<td align="left">$thresholdValue</td> |
| 89 |
> |
<td align="left">$thresholdValue ($thresholdLevel)</td> |
| 90 |
|
</tr> |
| 91 |
|
<tr> |
| 92 |
|
<td align="right"><font size="2">Alert value:</font></td> |