Commit e4057ebc authored by Benjamin Sonntag's avatar Benjamin Sonntag
Browse files

Closes #676, quota show totals

parent ced98746
......@@ -220,7 +220,7 @@ if (is_array($val)) {
</table>
</form>
<?php
printf("<p>".__("%s accounts")."</p>",count($r));
printf("<p>"._("%s accounts")."</p>",count($r));
}
?>
</body>
......
......@@ -37,6 +37,9 @@ include("head.php");
<?php
$quota_utilise = 0;
$tot = 0;
if ($mem->user['uid'] == "2000")
$user_list = $admin->get_list(1);
else{
......@@ -74,11 +77,17 @@ foreach($sequence as $key) {
} else {
$style = '';
}
$quota_utilise = $quota_utilise + $q['u'];
$tot = $tot + $q['t'];
print "<td $style>".str_replace(" ", "&nbsp;", m_quota::display_val($key, $q['u']).'/'.m_quota::display_val($key, $q['t'])).'</td>';
}
print "</tr>";
$mem->unsu();
}
echo "<br><tr height=\"15\"></tr><tr><td>"._("Total")."</td><td $style>";
echo format_size($quota_utilise)." / ".format_size($tot)."</td></tr>";
print "</table>";
?>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment