Skip to content
Snippets Groups Projects
Commit 4e881dbe authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

add support for presentation plugin at the summary table

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1375 44740490-163a-0410-bde0-09ae8108e29a
parent eecae181
No related branches found
No related tags found
No related merge requests found
......@@ -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>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment