summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php14
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)