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> |
114 |
|
<table border="0" cellpadding="2" cellspacing="0"> |
115 |
|
<tr> |
116 |
|
<td colspan="5"> |
117 |
< |
<font size="+1"><b>$machine</b></font> |
117 |
> |
<font size="+1"><b><a href="alerts.php?machine=$machine" style="color: black; text-decoration: none;">$machine</a></b></font> |
118 |
|
</td> |
119 |
|
</tr> |
120 |
|
EOT; |
127 |
|
<td> |
128 |
|
<font color="white"> |
129 |
|
<b> |
130 |
< |
Current alerts for $machine |
130 |
> |
Current alerts for <a href="latest.php?machine=$machine" style="color: white">$machine</a> |
131 |
|
</b> |
132 |
|
<font size="2"> |
133 |
|
<br>Sorted by time, latest first. |