From 4e881dbe1dcdcef6b07af4e2b634252d49d49b2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20=C3=85kre=20Solberg?= <andreas.solberg@uninett.no>
Date: Thu, 5 Mar 2009 14:40:26 +0000
Subject: [PATCH] add support for presentation plugin at the summary table

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1375 44740490-163a-0410-bde0-09ae8108e29a
---
 modules/statistics/templates/statistics-tpl.php | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/modules/statistics/templates/statistics-tpl.php b/modules/statistics/templates/statistics-tpl.php
index 5e498e52a..3c6fc8394 100644
--- a/modules/statistics/templates/statistics-tpl.php
+++ b/modules/statistics/templates/statistics-tpl.php
@@ -169,10 +169,16 @@ echo '<div id="table" class="tabset_content">
 <table class="tableview"><tr><th class="value">Value</th><th class="category">Data range</th>';
 foreach ( $this->data['summaryDataset'] as $key => $value ) {
 	$clint = $classint[$i++ % 2];
+	
+	$keyName = $key;
+	if(array_key_exists($key, $this->data['delimiterPresentation'])) $keyName = $this->data['delimiterPresentation'][$key];
+
+	
+	
 	if ($key === '_') {
-	    echo '<tr class="total ' . $clint . '"><td  class="value">' . $value . '</td><td class="category">Total</td></tr>';
+	    echo '<tr class="total '  . $clint . '"><td  class="value">' . $value . '</td><td class="category">' . $keyName . '</td></tr>';
     } else {
-	    echo '<tr class="' . $clint . '"><td  class="value">' . $value . '</td><td class="category">' . $key . '</td></tr>';
+	    echo '<tr class="' . $clint . '"><td  class="value">' . $value . '</td><td class="category">' . $keyName . '</td></tr>';
     }
 }
 echo '</table></div>';
-- 
GitLab