$value) { if ($value != "") { switch ($var) { case 'name': $where[] = generate_query_values($value, $var); break; } } } echo generate_box_open(); echo '
Package | '; echo 'Version | '; echo '||||
---|---|---|---|---|---|
' . $name . ' | ' . PHP_EOL; echo ''; $vers = []; $content = ""; $table = ''; foreach ($package as $version => $builds) { foreach ($builds as $build => $devices) { if ($build) { $dbuild = '-' . $build; } else { $dbuild = ''; } $content .= $version . $dbuild; foreach ($devices as $entry) { $this_device = ['device_id' => $entry['device_id'], 'hostname' => $GLOBALS['cache']['devices']['hostname_map'][$entry['device_id']]]; $dbuild = !empty($entry['build']) ? '-' . $entry['build'] : ''; if (!empty($this_device['hostname'])) { if (!empty($vars['name'])) { $table .= ' | ||||
' . $entry['version'] . $dbuild . ' | ' . get_type_class_label($entry['arch'], 'arch') . ' | ' . get_type_class_label($entry['manager'], 'pkg') . ' | ' . generate_device_link($this_device) . ' | ' . format_si($entry['size']) . ' | '; $table .= '