From 3d128da722970f0524bb774175d2707cc496e1a3 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 2 Apr 2020 13:59:38 +0200 Subject: [PATCH] show table with total document size per user --- views/bootstrap/class.Charts.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/views/bootstrap/class.Charts.php b/views/bootstrap/class.Charts.php index b79a8a7d9..1d87d07fe 100644 --- a/views/bootstrap/class.Charts.php +++ b/views/bootstrap/class.Charts.php @@ -241,15 +241,23 @@ $(document).ready( function() { echo "".htmlspecialchars($item['key'])."".$item['total'].""; $total += $item['total']; } + echo "".$total.""; break; case 'docsaccumulated': foreach($data as $item) { echo "".date('Y-m-d', $item['key']/1000)."".$item['total'].""; $total += $item['total']; } + echo "".$total.""; + break; + case 'sizeperuser': + foreach($data as $item) { + echo "".htmlspecialchars($item['key'])."".SeedDMS_Core_File::format_filesize($item['total']).""; + $total += $item['total']; + } + echo "".SeedDMS_Core_File::format_filesize($total).""; break; } - echo "".$total.""; echo ""; echo "\n";