0byt3m1n1
Path:
/
data
/
applications
/
aps
/
gallery
/
3.0.9-21
/
standard
/
htdocs
/
system
/
views
/
profiler
/
[
Home
]
File: table.php
<?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>