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;
|
2016-08-18 20:28:22 -05:00
|
|
|
} else {
|
2015-07-13 20:10:26 +02:00
|
|
|
$bg = $list_colour_a;
|
|
|
|
|
}
|
2008-11-27 12:36:37 +00:00
|
|
|
|
2011-03-17 11:46:02 +00:00
|
|
|
unset($icon);
|
2017-02-13 00:41:05 +02:00
|
|
|
$severity_colour = eventlog_severity($entry['severity']);
|
2008-11-27 12:36:37 +00:00
|
|
|
|
2017-02-13 00:41:05 +02:00
|
|
|
$icon = "<i class='fa fa-bookmark fa-lg $severity_colour' aria-hidden='true'></i>";
|
2007-04-03 14:10:23 +00:00
|
|
|
|
2015-07-13 20:10:26 +02:00
|
|
|
echo '<tr">
|
2017-01-29 01:44:36 +02:00
|
|
|
<td>'.$icon.'
|
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
|
|
|
|
2016-02-17 13:59:58 +00:00
|
|
|
echo $entry['link'].' '.htmlspecialchars($entry['message']).'</td>
|
2015-07-13 20:10:26 +02:00
|
|
|
</tr>';
|