better formatting of disk quotas info

This commit is contained in:
mlutfy 2009-03-27 03:29:48 +00:00
parent a248eee925
commit 40028613fd
1 changed files with 3 additions and 1 deletions

View File

@ -51,8 +51,10 @@ if (!is_array($q)) {
echo _($val);
if ($q[$key]["u"] >= $q[$key]["t"]) echo "</font>";
if ($val == 'quota_bw_web') {
if ($key == 'bw_web') {
echo "&nbsp;</td><td align=\"center\">". format_size($q[$key]["u"]) ."&nbsp;</td><td align=\"center\">". format_size($q[$key]["t"]) ."&nbsp;</td>";
} elseif ($key == 'web') {
echo "&nbsp;</td><td align=\"center\">". format_size($q[$key]["u"] * 1024) . "&nbsp;</td><td align=\"center\">". format_size($q[$key]["t"]) ."&nbsp;</td>";
} else {
echo "&nbsp;</td><td align=\"center\">".$q[$key]["u"]."&nbsp;</td><td align=\"center\">".$q[$key]["t"]."&nbsp;</td>";
}