diff options
author | Philip Häusler <msquare@notrademark.de> | 2014-12-19 22:41:55 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2014-12-19 22:41:55 +0100 |
commit | d02272afd6725d46c37b7ba781c5d40268aa09a6 (patch) | |
tree | c7bd969a455aed4e57524df6cfaf13a766fb01c9 /includes/sys_template.php | |
parent | a791a75b0a893308f35865542149c77f8761b3a0 (diff) |
add basic shift view
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r-- | includes/sys_template.php | 4 |
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 * |