From 82af1db4bdba0a48ebad88a65a7660979de627fe Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 8 Jul 2006 20:18:36 +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 eab5ff6ff9..ea60b955c9 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 = "