Merge "Make it possible to sort on simple custom columns"
[ninja.git] / modules / lsfilter / widgets / gridstat / view.php
blobf254ecff27142ccfb407ab87067fd969a3445adb
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
3 echo '<table class="w-table">';
4 echo '<tbody>';
5 foreach($this->data as $row) {
6 echo '<tr>';
7 echo '<td class="icon dark">';
8 echo '<span class="icon-16 x16-'.$row['icon'].'"></span>';
9 echo '</td>';
10 echo '<td><strong>'.htmlentities(strtoupper($row['title'])).'</strong><br />';
11 echo implode(' + ', array_map(function($field) {
12 return '<a href="' . htmlentities(listview::querylink($field['filter'])) . '">' . sprintf($field['text'], $field['count']) . '</a>';
13 }, $row['fields']));
14 echo '</td>';
15 echo '</tr>';
17 echo '</tbody>';
18 echo '</table>';