* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2023 Observium Limited * */ $graph_type = "printersupply_usage"; $supplies = dbFetchRows("SELECT * FROM `printersupplies` WHERE `device_id` = ? ORDER BY `supply_type`", [$device['device_id']]); if (count($supplies)) { $box_args = ['title' => 'Printer Supplies', 'url' => generate_url(['page' => 'device', 'device' => $device['device_id'], 'tab' => 'printing']), 'icon' => $config['icon']['printersupply'], ]; echo generate_box_open($box_args); echo('
' . overlib_link($link, $supply['supply_descr'], $overlib_content) . " | " . overlib_link($link, $minigraph, $overlib_content) . " | " . overlib_link($link, print_percentage_bar(400, 20, $percent, $percent_text, 'ffffff', $background['right'], NULL, "ffffff", $background['left']), $overlib_content) . " |