network(); $_text = '' . '' . '' . '' . ''; while (list($dev, $stats) = each($net)) { $_text .= "\t\n"; $_text .= "\t\t\n"; $_text .= "\t\t\n"; $_text .= "\t\t\n"; $_text .= "\t\t\n"; $_text .= "\t\n"; } $_text .= '
' . $text['device'] . '' . $text['received'] . '' . $text['sent'] . '' . $text['errors'] . '
$f_body_open" . $dev . "$f_body_close$f_body_open" . format_bytesize($stats['rx_bytes'] / 1024) . "$f_body_close$f_body_open" . format_bytesize($stats['tx_bytes'] / 1024) . "$f_body_close$f_body_open" . $stats['errs'] . '/' . $stats['drop'] . "$f_body_close
'; $tpl->set_var('network', makebox($text['netusage'], $_text, '100%')); ?>