From 1d9e1c467cf4d3920f9bcf0157481c7ca8ea6d5d Mon Sep 17 00:00:00 2001 From: Philip Häusler Date: Sun, 28 Sep 2014 14:50:08 +0200 Subject: user list rewritten --- includes/sys_template.php | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'includes/sys_template.php') diff --git a/includes/sys_template.php b/includes/sys_template.php index aaa79993..bf0e81fc 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -8,6 +8,24 @@ $themes = array( "1" => "Engelsystem dark" ); +/** + * Render glyphicon + * + * @param string $glyph_name + */ +function glyph($glyph_name) { + return ' '; +} + +/** + * Renders a tick or a cross by given boolean + * + * @param boolean $boolean + */ +function glyph_bool($boolean) { + return '' . glyph($boolean ? 'ok' : 'remove') . ''; +} + function div($class, $content = array(), $id = "") { $id = $id != '' ? ' id="' . $id . '"' : ''; return '' . join("\n", $content) . ''; @@ -292,7 +310,11 @@ function button($href, $label, $class = "") { * Rendert eine Toolbar mit Knöpfen */ function buttons($buttons = array ()) { - return '
' . join(' ', $buttons) . '
'; + return '
' . table_buttons($buttons) . '
'; +} + +function table_buttons($buttons = array()) { + return '
' . join(' ', $buttons) . '
'; } // Load and render template -- cgit v1.2.3-54-g00ecf