summaryrefslogtreecommitdiff
path: root/system/views/profiler/table.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/views/profiler/table.php')
-rw-r--r--system/views/profiler/table.php24
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>