From 18c38f3501947616d1ed6cad8b80672bb3f3c8d8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Fri, 17 Sep 2010 18:39:53 +0000 Subject: [PATCH] nice buttons --- lam/lib/html.inc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index be1c7166..a115e4ba 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -535,23 +535,18 @@ class htmlButton extends htmlElement { logNewMessage(LOG_ERR, 'Meta HTML: Requested button in restricted mode.'); return array(); } - $value = ''; $style = ''; $class = ''; $title = ''; $name = ' name="' . $this->name . '"'; // image button if ($this->isImageButton) { - $value = ' value=" "'; $class = ' class="smallImageButton"'; $style = ' style="background-image: url(../../graphics/' . $this->value . ');"'; } // text button else { $class = ' class="smallPadding"'; - if ($this->value != null) { - $value = ' value="' . $this->value . '"'; - } } if ($this->title != null) { $title = ' title="' . $this->title . '"'; @@ -560,8 +555,11 @@ class htmlButton extends htmlElement { if (!$this->isEnabled) { $disabled = ' disabled'; } - echo ''; - if (!$this->isImageButton) { + if ($this->isImageButton) { + echo ''; + } + else { + echo ''; // text buttons get JQuery style echo '