2007-04-03 14:10:23 +00:00
2009-09-07 11:07:59 +00:00
< ? php
2007-04-03 14:10:23 +00:00
if ( $bg == $list_colour_a ) { $bg = $list_colour_b ; } else { $bg = $list_colour_a ; }
unset ( $icon );
$icon = geteventicon ( $entry [ 'message' ]);
2008-03-12 19:50:05 +00:00
if ( $icon ) { $icon = " <img src='images/16/ $icon '> " ; }
2007-04-03 14:10:23 +00:00
echo ( " <tr style= \" background-color: $bg\ " >
< td width = 0 ></ td >
2007-04-03 19:39:28 +00:00
< td class = syslog width = 140 >
2007-11-21 14:26:24 +00:00
" . $entry['humandate'] . "
2007-04-03 14:10:23 +00:00
</ td > " );
2008-11-27 12:36:37 +00:00
$if = mysql_fetch_array ( mysql_query ( " SELECT * from interfaces AS I, devices as D where I.device_id = D.device_id AND I.interface_id = ' " . $entry [ 'interface' ] . " ' " ));
2007-04-03 19:39:28 +00:00
echo ( " <td class=list-bold width=75>
2008-11-27 12:36:37 +00:00
" . generateiflink( $if , makeshortif( $if['ifDescr'] )) . "
2007-04-03 14:10:23 +00:00
</ td >
2007-04-03 19:39:28 +00:00
< td class = syslog > " .
2007-11-21 14:26:24 +00:00
htmlspecialchars ( truncate ( $entry [ 'message' ], 45 ))
2007-04-03 19:39:28 +00:00
. " </td>
2007-04-03 14:10:23 +00:00
< td ></ td >
</ tr > " );
?>