diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 65a3df966f..5d8bc0152e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2008-10-10 Evi Vanoost + + * operation/reporting/reporting_xml.php: Now correctly displays image + reports without messing up the XML + + * include/functions_html.php: print_select now accepts arrays (eg. for + use in select boxes with the multiple tag set) as selected values + 2008-10-10 Sancho Lerena * ajax.php: removed carriage return from EOF. diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index a4f0545fbb..dbcdb978fa 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -25,7 +25,8 @@ * * @param array $fields Array with dropdown values. Example: $fields["value"] = "label" * @param string $name Select form name - * @param variant $selected Current selected value. + * @param variant $selected Current selected value. Can be a single value or an + * array of selected values (in combination with multiple) * @param string $script Javascript onChange code. * @param string $nothing Label when nothing is selected. * @param variant $nothing_value Value when nothing is selected @@ -66,7 +67,9 @@ function print_select ($fields, $name, $selected = '', $script = '', $nothing = } foreach ($fields as $value => $label) { $output .= '