mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
git-svn-id: http://www.observium.org/svn/observer/trunk@2970 61d68cd4-352d-0410-923a-c4978735b2b8
23 lines
704 B
PHP
23 lines
704 B
PHP
<?php
|
|
|
|
echo('<table cellspacing="0" cellpadding="5" width="100%">');
|
|
|
|
$i=0;
|
|
foreach (dbFetchRows("SELECT * FROM `packages` WHERE `device_id` = ? ORDER BY `name`", array($device['device_id'])) as $entry)
|
|
{
|
|
if (!is_integer($i/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
|
|
echo("<tr bgcolor=$row_colour>");
|
|
echo('<td width=200><a href="'. generate_url($vars, array('name' => $entry['name'])).'">'.$entry['name'].'</a></td>');
|
|
echo("<td>".$entry['version']."-".$entry['build']."</td>");
|
|
echo("<td>".$entry['arch']."</td>");
|
|
echo("<td>".$entry['manager']."</td>");
|
|
echo("<td>".format_si($entry['size'])."</td>");
|
|
echo("</tr>");
|
|
|
|
$i++;
|
|
}
|
|
|
|
echo("</table>");
|
|
|
|
?>
|