diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-11-24 19:20:36 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-11-24 19:20:36 -0800 |
commit | 9b6663f87a7e679ffba691cf516191fc840cf978 (patch) | |
tree | 20cf9f3aaf93b4ba69d282dcf10d259db4a752de /system/views/profiler/table.php | |
parent | 82ee5f9d338017c69331b2907f37a468ced8c66e (diff) |
Update to Kohana r4684 which is now Kohana 2.4 and has substantial
changes.
Diffstat (limited to 'system/views/profiler/table.php')
-rw-r--r-- | system/views/profiler/table.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/system/views/profiler/table.php b/system/views/profiler/table.php new file mode 100644 index 00000000..7cdf79dd --- /dev/null +++ b/system/views/profiler/table.php @@ -0,0 +1,24 @@ +<?php defined('SYSPATH') OR die('No direct access allowed.'); ?> +<table class="kp-table"> +<?php +foreach ($rows as $row): + +$class = empty($row['class']) ? '' : ' class="'.$row['class'].'"'; +$style = empty($row['style']) ? '' : ' style="'.$row['style'].'"'; +?> + <tr<?php echo $class; echo $style; ?>> + <?php + foreach ($columns as $index => $column) + { + $class = empty($column['class']) ? '' : ' class="'.$column['class'].'"'; + $style = empty($column['style']) ? '' : ' style="'.$column['style'].'"'; + $value = $row['data'][$index]; + $value = (is_array($value) OR is_object($value)) ? '<pre>'.htmlspecialchars(print_r($value, TRUE), ENT_QUOTES, Kohana::CHARSET).'</pre>' : htmlspecialchars($value, ENT_QUOTES, Kohana::CHARSET); + echo '<td' . $style . $class . '>' . wordwrap($value, 100, '<br />', true) . '</td>'; + } + ?> + </tr> +<?php +endforeach; +?> +</table> |