summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authorJan-Philipp Litza <janphilipp@litza.de>2012-12-29 13:58:59 +0100
committerJan-Philipp Litza <janphilipp@litza.de>2012-12-29 13:58:59 +0100
commit7c7b2d3b54084319ed0d6392f9ea13e00173f011 (patch)
treed52b460356377be1339d4c2a1bed8639f9c14764 /includes/sys_template.php
parent1867c884848b85c5766c7d2cbc30b353356d00a9 (diff)
polished code and display of shiftview and used more icons
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index 0f030e86..a120bb2d 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -233,4 +233,9 @@ function html_select_key($id, $name, $rows, $selected) {
$html .= '</select>';
return $html;
}
+
+function img_button($link, $icon, $text, $extra_text = '') {
+ $translation = empty($text)? '' : Get_Text($text);
+ return '<a href="' . htmlspecialchars($link) . '"><img src="pic/icons/' . htmlspecialchars($icon) . '.png" alt="' . $translation . '" ' . (empty($translation)? '' : 'title="' . $translation . '"') . '>' . (empty($extra_text)? '' : ' ' . $extra_text) . '</a>';
+}
?>