From bc42ce2bc92dda452a11ef3042e04f2328a4c96b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 8 Jul 2006 20:20:10 +0000 Subject: [PATCH] fix: title in checkbox_multiselect was (only) set for the checkbox, not the whole label --- phpgwapi/inc/class.html.inc.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 74ea31f2a9..01116d4f26 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -199,7 +199,7 @@ class html * @param array $arr array with items to select, eg. $arr = array ( 'y' => 'yes','n' => 'no','m' => 'maybe'); * @param boolean $no_lang NOT run the labels of the options through lang(), default false=use lang() * @param string $options additional options (e.g. 'width') - * @param int $multiple number of lines for a multiselect, default 0 = no multiselect + * @param int $multiple number of lines for a multiselect, default 0 = no multiselect, < 0 sets size without multiple * @return string to set for a template or to echo into html page */ function select($name, $key, $arr=0,$no_lang=false,$options='',$multiple=0) @@ -216,12 +216,16 @@ class html $name .= '[]'; } } + elseif($multiple < 0) + { + $options .= ' size="'.abs($multiple).'"'; + } $out = "