# | Line 54 | Line 54 | EOT; | |
---|---|---|
54 | ||
55 | ||
56 | # show a bar-represented value. | |
57 | < | function showBar($title, $value, $max, $units, $input) { |
57 | > | function showBar($title, $value, $max, $units, $input, $arrange='normal') { |
58 | ||
59 | include("latest_config.inc.php"); | |
60 | ||
# | Line 71 | Line 71 | function showBar($title, $value, $max, $units, $input) | |
71 | } | |
72 | ||
73 | $width = intval($max_width * $value / $max); | |
74 | + | |
75 | + | if ($arrange == 'swap') { |
76 | + | $width = $max_width - $width; |
77 | + | } |
78 | ||
79 | ?> | |
80 | <table border="0" cellpadding="0" cellspacing="0" align="center"> |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |