librenms-librenms/html/includes/print-event-short.inc.php

31 lines
507 B
PHP
Raw Normal View History

<?php
2015-07-13 20:10:26 +02:00
if ($bg == $list_colour_a) {
$bg = $list_colour_b;
}
else {
$bg = $list_colour_a;
}
unset($icon);
$icon = geteventicon($entry['message']);
2015-07-13 20:10:26 +02:00
if ($icon) {
$icon = "<img src='images/16/$icon'>";
}
2015-07-13 20:10:26 +02:00
echo '<tr">
<td></td>
<td>
2015-07-13 20:10:26 +02:00
'.$entry['humandate'].'
</td>
2015-07-13 20:10:26 +02:00
<td>';
2015-07-13 20:10:26 +02:00
if ($entry['type'] == 'interface') {
$entry['link'] = '<b>'.generate_port_link(getifbyid($entry['reference'])).'</b>';
}
2015-07-13 20:10:26 +02:00
echo $entry['link'].' '.htmlspecialchars($entry['message']).'</td>
<td></td>
2015-07-13 20:10:26 +02:00
</tr>';