1 <?php
defined('SYSPATH') OR die('No direct access allowed.'); ?
>
2 <table
class="kp-table">
4 foreach ($rows as $row):
6 $class = empty($row['class']) ?
'' : ' class="'.$row['class'].'"';
7 $style = empty($row['style']) ?
'' : ' style="'.$row['style'].'"';
9 <tr
<?php
echo $class; echo $style; ?
>>
11 foreach ($columns as $index => $column)
13 $class = empty($column['class']) ?
'' : ' class="'.$column['class'].'"';
14 $style = empty($column['style']) ?
'' : ' style="'.$column['style'].'"';
15 $value = $row['data'][$index];
16 $value = (is_array($value) OR is_object($value)) ?
'<pre>'.html
::specialchars(print_r($value, TRUE)).'</pre>' : nl2br(html
::specialchars($value));
17 echo '<td', $style, $class, '>', $value, '</td>';