Commit 59dc90b8 authored by Florian Kaiser's avatar Florian Kaiser
Browse files

add quota sum

parent e7ff2473
......@@ -15,11 +15,13 @@
$alt=false;
$total_objects = 0;
$total_bytes = 0;
$total_quota = 0;
?>
<?php
foreach($_['data'] as $row){
$total_objects += $row['objects'];
$total_bytes += $row['bytes'];
$total_quota += intval($row['quotavalue']);
?>
<tr class="<?php if ($alt=!$alt) echo 'alt';?>">
<td><?php p($row['username']); ?></td>
......@@ -35,7 +37,7 @@
<td>TOTAL</td>
<td><?php p($total_objects); ?></td>
<td value="<?php p($total_bytes); ?>"><?php p($this->human_file_size($total_bytes)); ?></td>
<td>&nbsp;</td>
<td value="<?php p($total_quota); ?>"><?php p($this->human_file_size($total_quota)); ?></td>
<td>&nbsp;</td>
</tr>
</tfoot>
......
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