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.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index b9ae39de..56751e16 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -9,6 +9,10 @@ $themes = array(
"2" => "Engelsystem 31c3"
);
+function progress_bar($valuemin, $valuemax, $valuenow, $class = '', $content = '') {
+ return '<div class="progress"><div class="progress-bar ' . $class . '" role="progressbar" aria-valuenow="' . $valuenow . '" aria-valuemin="' . $valuemin . '" aria-valuemax="' . $valuemax . '" style="width: ' . (($valuenow - $valuemin) * 100 / ($valuemax - $valuemin)) . '%">' . $content . '</div></div>';
+}
+
/**
* Render glyphicon
*