From f59f0eae9c44a7464eded0a0d4352c0689df6d11 Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Mon, 11 Jul 2011 20:40:27 +0200 Subject: #4 pentabarf room import --- includes/sys_template.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'includes/sys_template.php') 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 .= ""; + if (is_array($line)) { + + } else { + $html .= "" . $line . ""; + } + $html .= ""; + } + return $html; +} + function html_options($name, $options, $selected = "") { $html = ""; foreach ($options as $value => $label) -- cgit v1.2.3-54-g00ecf