From b176cb9256c8cb52277cbf1e63ea55c5db140504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hans-J=C3=BCrgen=20Tappe?= Date: Mon, 15 Aug 2011 16:25:08 +0000 Subject: [PATCH] - Allow sitemgr blocks to be moved between pages, categories and websitewide (previously only moving from a page up to the cat, then up globally was possible). - Allow options within a select to be formatted through the standard html::select_option() function --- phpgwapi/inc/class.html.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.html.inc.php b/phpgwapi/inc/class.html.inc.php index 5a25532776..d64466a159 100644 --- a/phpgwapi/inc/class.html.inc.php +++ b/phpgwapi/inc/class.html.inc.php @@ -471,9 +471,10 @@ class html * @param string $label label * @param mixed $selected value or array of values of options to mark as selected * @param boolean $no_lang NOT running the label through lang(), default false=use lang() + * @param string $extra extra text, e.g.: style="", default: '' * @return string html */ - static function select_option($value,$label,$selected,$no_lang=0,$title='') + static function select_option($value,$label,$selected,$no_lang=0,$title='',$extra='') { // the following compares strict as strings, to archive: '0' == 0 != '' // the first non-strict search via array_search, is for performance reasons, to not always search the whole array with php @@ -486,7 +487,8 @@ class html } } return '\n"; }