From 229839c4fbefb8d1def71fb709c80ac4a1549bac Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 1 Mar 2010 16:16:43 +0000 Subject: [PATCH] Updated base selector git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15815 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/themes/modern/style.css | 10 ++++++++++ gosa-core/include/class_baseSelector.inc | 2 +- gosa-core/include/functions.inc | 9 +++++++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/gosa-core/html/themes/modern/style.css b/gosa-core/html/themes/modern/style.css index 564212618..e0dce435f 100644 --- a/gosa-core/html/themes/modern/style.css +++ b/gosa-core/html/themes/modern/style.css @@ -85,6 +85,16 @@ img, input[type=image] { } /* Image with migration color */ +button.img{ + background:none; + border:0; + margin:0; + padding:2px; +} +button.img div.img { + border:0; +} + div.img{ background-color:transparent; background-repeat:no-repeat; diff --git a/gosa-core/include/class_baseSelector.inc b/gosa-core/include/class_baseSelector.inc index 5d20269ee..ba182b7f7 100644 --- a/gosa-core/include/class_baseSelector.inc +++ b/gosa-core/include/class_baseSelector.inc @@ -203,7 +203,7 @@ class baseSelector { // Draw submitter if required if ($this->submitButton) { - $this->tree.= " "; + $this->tree.= image('images/lists/submit.png', null, "submit_base_".$this->pid, _("Submit")); } $this->tree.= ""; $this->tree.= ""; diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index fc2ff2045..9a9e2799c 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -3519,7 +3519,7 @@ function mark($needle, $haystack, $ignorecase= true) /* Return an image description using the path */ -function image($path, $label= null) +function image($path, $label= null, $action= "", $title= "") { global $config; global $BASE_DIR; @@ -3553,7 +3553,12 @@ function image($path, $label= null) } } - return "
$lbl
"; + // Clickable image or not? + if ($action == "") { + return "
$lbl
"; + } else { + return ""; + } } -- 2.30.2