mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Misc webui cleanups * Style * More * graphing fixes * More graph cleanups * more fixes, graphs and device pages * style
25 lines
774 B
PHP
25 lines
774 B
PHP
<?php
|
|
|
|
echo '<table cellspacing="0" cellpadding="5" width="100%">';
|
|
|
|
$i = 0;
|
|
foreach (dbFetchRows('SELECT * FROM `packages` WHERE `device_id` = ? ORDER BY `name`', [$device['device_id']]) as $entry) {
|
|
echo '<tr class="list">';
|
|
echo '<td width=200><a href="' . \LibreNMS\Util\Url::generate($vars, ['name' => $entry['name']]) . '">' . $entry['name'] . '</a></td>';
|
|
if (! empty($entry['build'])) {
|
|
$dbuild = '-' . $entry['build'];
|
|
} else {
|
|
$dbuild = '';
|
|
}
|
|
|
|
echo '<td>' . $entry['version'] . $dbuild . '</td>';
|
|
echo '<td>' . $entry['arch'] . '</td>';
|
|
echo '<td>' . $entry['manager'] . '</td>';
|
|
echo '<td>' . \LibreNMS\Util\Number::formatSi($entry['size'], 2, 3, '') . '</td>';
|
|
echo '</tr>';
|
|
|
|
$i++;
|
|
}
|
|
|
|
echo '</table>';
|