From d9fd9ce50562424aa6db325637d1e2df61c98ab4 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 18 Jan 2017 14:21:33 +0200 Subject: [PATCH] -Total for statistics --- views/statistics/index.php | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/views/statistics/index.php b/views/statistics/index.php index 5bdc139..757d6d0 100644 --- a/views/statistics/index.php +++ b/views/statistics/index.php @@ -140,7 +140,15 @@ JS; Уникальных товаров, шт. $statistic) { + $total_count += $statistic[ 'count' ]; + $total_sum += $statistic[ 'sum' ]; + $total_products += $statistic[ 'products' ]; + $total_unique += $statistic[ 'unique' ]; echo Html::tag( 'tr', Html::tag('td', $name) . Html::tag('td', $statistic[ 'count' ]) . Html::tag( @@ -148,7 +156,15 @@ JS; $statistic[ 'sum' ] ) . Html::tag('td', $statistic[ 'products' ]) . Html::tag('td', $statistic[ 'unique' ]) ); - } ?> + } + ?> + + Всего + + + + + -- libgit2 0.21.4