2010-04-19 Sergio Martin <sergio.martin@artica.es>

* 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
This commit is contained in:
zarzuelo 2010-04-19 13:35:31 +00:00
parent 5df55a5ace
commit a1168151d7
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-04-19 Sergio Martin <sergio.martin@artica.es>
* include/functions_html.php: Added the parameter style
to print_select_from_sql() function
2010-04-19 Miguel de Dios <miguel.dedios@artica.es> 2010-04-19 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_db.php: rollback to the fixed (r2563) in the function * include/functions_db.php: rollback to the fixed (r2563) in the function

View File

@ -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 $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 $sort Whether to sort the options or not. Sorted by default.
* @param bool $disabled if it's true, disable the select. * @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. * @return string HTML code if return parameter is true.
*/ */
function print_select_from_sql ($sql, $name, $selected = '', $script = '', $nothing = '', $nothing_value = '0', $return = false, 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 (); $fields = array ();
$result = get_db_all_rows_sql ($sql); $result = get_db_all_rows_sql ($sql);
@ -274,7 +275,7 @@ function print_select_from_sql ($sql, $name, $selected = '', $script = '', $noth
$fields[$id] = $value; $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);
} }
/** /**