Added filterable to summary and histogram controllers
[ninja.git] / application / views / config / index.php
blobb82ada124266a8b3614bbc8ad5ed5742942e440c
1 <?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
3 <div>
4 <?php echo (isset($pagination)) ? $pagination : ''; ?>
5 </div>
7 <?php if($header === false) { ?>
8 <p><?php echo _(sprintf('Unknown data type %s',$type)); ?></p>
9 <?php } else { ?>
10 <table id="config_table" class="padd-table">
11 <thead>
12 <tr>
13 <?php $i = 0; foreach ($header as $item) {
14 if ($i == 0)
15 echo '<th>'.$item.'</th>'."\n";
16 else
17 echo '<th>'.$item.'</th>'."\n";
18 $i++;
19 } ?>
20 </tr>
21 </thead>
22 <tbody>
23 <?php
24 $i = 0;
25 if ($data!==false) {
26 foreach ($data as $row) {
27 $i++;
28 echo '<tr class="'.($i%2 == 0 ? 'odd' : 'even').'">'."\n";
29 foreach($row as $column) {
30 echo '<td style="white-space: normal">'.$column.'</td>'."\n";
32 echo '</tr>'."\n";
34 } else { ?>
35 <tr class="even">
36 <td colspan="<?php echo count($header);?>"><?php echo _('No').' '.str_replace('_',' ',$type).' '._('configured'); ?></td>
37 </tr>
38 <?php } ?>
39 </tbody>
40 </table>
41 <?php } ?>