From a1168151d73c031cd3d06bc1ee4219ca713934ab Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Mon, 19 Apr 2010 13:35:31 +0000 Subject: [PATCH] 2010-04-19 Sergio Martin * include/functions_html.php: Added the parameter style to print_select_from_sql() function git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2578 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_html.php | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6d6c6fc6a4..c3c748dd88 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-04-19 Sergio Martin + + * include/functions_html.php: Added the parameter style + to print_select_from_sql() function + 2010-04-19 Miguel de Dios * include/functions_db.php: rollback to the fixed (r2563) in the function diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 794014e217..1136f3b89a 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -257,11 +257,12 @@ function print_select ($fields, $name, $selected = '', $script = '', $nothing = * @param bool $multiple Whether to allow multiple selections or not. Single by default * @param bool $sort Whether to sort the options or not. Sorted by default. * @param bool $disabled if it's true, disable the select. + * @param string $style The string of style. * * @return string HTML code if return parameter is true. */ function print_select_from_sql ($sql, $name, $selected = '', $script = '', $nothing = '', $nothing_value = '0', $return = false, - $multiple = false, $sort = true, $disabled = false) { + $multiple = false, $sort = true, $disabled = false, $style = false) { $fields = array (); $result = get_db_all_rows_sql ($sql); @@ -274,7 +275,7 @@ function print_select_from_sql ($sql, $name, $selected = '', $script = '', $noth $fields[$id] = $value; } - return print_select ($fields, $name, $selected, $script, $nothing, $nothing_value, $return, $multiple, $sort,'',$disabled); + return print_select ($fields, $name, $selected, $script, $nothing, $nothing_value, $return, $multiple, $sort,'',$disabled, $style); } /**