show table with total document size per user

This commit is contained in:
Uwe Steinmann 2020-04-02 13:59:38 +02:00
parent b602becdb8
commit 3d128da722

View File

@ -241,15 +241,23 @@ $(document).ready( function() {
echo "<tr><td>".htmlspecialchars($item['key'])."</td><td>".$item['total']."</td></tr>";
$total += $item['total'];
}
echo "<tr><th></th><th>".$total."<th></tr>";
break;
case 'docsaccumulated':
foreach($data as $item) {
echo "<tr><td>".date('Y-m-d', $item['key']/1000)."</td><td>".$item['total']."</td></tr>";
$total += $item['total'];
}
echo "<tr><th></th><th>".$total."<th></tr>";
break;
case 'sizeperuser':
foreach($data as $item) {
echo "<tr><td>".htmlspecialchars($item['key'])."</td><td>".SeedDMS_Core_File::format_filesize($item['total'])."</td></tr>";
$total += $item['total'];
}
echo "<tr><th></th><th>".SeedDMS_Core_File::format_filesize($total)."<th></tr>";
break;
}
echo "<tr><th></th><th>".$total."<th></tr>";
echo "</table>";
echo "</div>\n";