diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-07-11 20:40:27 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-07-11 20:40:27 +0200 |
commit | f59f0eae9c44a7464eded0a0d4352c0689df6d11 (patch) | |
tree | 0c26b56928a6ca3da1184f0798c833a5782836b9 /includes/sys_template.php | |
parent | 3d15b591e3f4196846fff005cc800feb383073c7 (diff) |
#4 pentabarf room import
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r-- | includes/sys_template.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php index 7524b0cb..c3e874ae 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -15,6 +15,20 @@ function template_render($file, $data) { } } +function table_body($array) { + $html = ""; + foreach ($array as $line) { + $html .= "<tr>"; + if (is_array($line)) { + + } else { + $html .= "<td>" . $line . "</td>"; + } + $html .= "</tr>"; + } + return $html; +} + function html_options($name, $options, $selected = "") { $html = ""; foreach ($options as $value => $label) |