2009-09-07 11:07:59 +00:00
|
|
|
<?php
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if ($bg == $list_colour_a) {
|
|
|
|
$bg = $list_colour_b;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$bg = $list_colour_a;
|
|
|
|
}
|
2008-11-27 12:36:37 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
unset($icon);
|
2008-11-27 12:36:37 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
$icon = geteventicon($entry['message']);
|
2015-07-13 20:10:26 +02:00
|
|
|
if ($icon) {
|
|
|
|
$icon = "<img src='images/16/$icon'>";
|
|
|
|
}
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
echo '<tr">
|
2014-02-26 22:33:45 +00:00
|
|
|
<td></td>
|
|
|
|
<td>
|
2015-07-13 20:10:26 +02:00
|
|
|
'.$entry['humandate'].'
|
2011-03-17 11:46:02 +00:00
|
|
|
</td>
|
2015-07-13 20:10:26 +02:00
|
|
|
<td>';
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
if ($entry['type'] == 'interface') {
|
|
|
|
$entry['link'] = '<b>'.generate_port_link(getifbyid($entry['reference'])).'</b>';
|
|
|
|
}
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
echo $entry['link'].' '.htmlspecialchars($entry['message']).'</td>
|
2011-03-17 11:46:02 +00:00
|
|
|
<td></td>
|
2015-07-13 20:10:26 +02:00
|
|
|
</tr>';
|