From fefbfddedae742cdba17ce535d23d4eb2660b397 Mon Sep 17 00:00:00 2001 From: guruevi Date: Fri, 10 Oct 2008 21:04:56 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1140 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 8 ++++++++ pandora_console/include/functions_html.php | 7 +++++-- pandora_console/operation/reporting/reporting_xml.php | 9 ++++++--- 3 files changed, 19 insertions(+), 5 deletions(-) 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 .= '