Merge branch 'maint/7.0'
[ninja.git] / modules / lsfilter / widgets / tablestat / view.php
blob835a308769954aab9bec39bc45c946de5dc11daa
1 <?php defined('SYSPATH') OR die('No direct access allowed.');
2 echo '<table class="tablestat-widget" style="table-layout: fixed;">';
4 echo '<thead>';
5 echo '<tr>';
6 foreach( $this->table as $col ) {
7 echo '<th>';
8 echo '<a href="'.htmlentities(listview::querylink($col['filter'])).'">';
9 echo $col['name'];
10 echo '</a>';
11 echo '</th>';
13 echo '</tr>';
14 echo '</thead>';
16 echo '<tbody>';
17 echo '<tr>';
18 foreach( $this->table as $col ) {
19 echo '<td>';
20 echo '<table class="no_border">';
21 $count = 0;
22 foreach( $col['cells'] as $cell ) {
23 if( !$cell['hide'] ) {
24 $count++;
25 echo '<tr>';
26 echo '<td class="icon"><span class="icon-16 x16-'.$cell['icon'].'"></span></td>';
27 echo '<td><a href="'.htmlentities(listview::querylink($cell['filter'])).'">';
28 echo $cell['text'];
29 echo '</a></td>';
30 echo '</tr>';
33 if( $count == 0 ) {
34 echo '<tr>';
35 echo '<td class="icon"><span class="icon-16 x16-'.$col['na_icon'].'"></span></td>';
36 echo '<td>'._('N/A').'</td>';
37 echo '</tr>';
39 echo '</table>';
40 echo '</td>';
42 echo '</tr>';
43 echo '</tbody>';
45 echo '</table>';