Files
librenms-librenms/includes/html/pages/device/packages.inc.php
Tony Murray 1c379dcd05 Remove legacy function calls (#12651)
* massive inlines

* fix style and wtf

* remove rrdtool.inc.php include

* fix CommonFunctions namespace issues

* looking for missing class space, fix undefined class issues

* style fixes
2021-03-29 00:25:30 +02:00

25 lines
762 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 ($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>';