I am trying to figure out how to color in a cell under certain circumstances. I have my alarm company send me an email on events, like arm and disarm, and alarm. I keep the contents of the email in device E1. I figures out how to populate a cell inside the main table in ultra status, but what I would like to do is have the cell colored green if the alarm state is unarmed, and red if it is armed. I don't know how to code it. Here is what I have so far:
<tr>
<td valign="top" align="left" colspan="2" class="tableheader">Undetermined</td>
</tr>
<tr>
<td colspan="2">
<div id="divU" style="height=115; overflow: auto;">
<table border="0" width="100%" cellpadding="0" cellspacing="1">
<tr>
<td class="tablerowodd"></td>
<% response.write hs.devicestring("E1") %>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="2" class="tableheader">Undetermined</td>
</tr>
<tr>
<td colspan="2">
<div id="divU" style="height=115; overflow: auto;">
<table border="0" width="100%" cellpadding="0" cellspacing="1">
<tr>
<td class="tablerowodd"></td>
<% response.write hs.devicestring("E1") %>
</tr>
</table>
</div>
</td>
</tr>
Comment