Avail feature updated
[ninja.git] / system / views / kohana_profiler_table.php
blob482d54b676c70a10301f329fea39561ea18d69e5
1 <?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
2 <table class="kp-table">
3 <?php
4 foreach ($rows as $row):
6 $class = empty($row['class']) ? '' : ' class="'.$row['class'].'"';
7 $style = empty($row['style']) ? '' : ' style="'.$row['style'].'"';
8 ?>
9 <tr<?php echo $class; echo $style; ?>>
10 <?php
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>';
20 </tr>
21 <?php
23 endforeach;
25 </table>