diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index bee6de0c11..6a92a99016 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -3535,7 +3535,8 @@ function html_print_input_text( $disabled=false, $list='', $placeholder=null, - $pattern=null + $pattern=null, + $id=false ) { if ($maxlength == 0) { $maxlength = 255; @@ -3593,7 +3594,7 @@ function html_print_input_text( return html_print_input_text_extended( $name, $value, - 'text-'.$name, + (($id === false) ? 'text-'.$name : $id), $alt, $size, $maxlength, @@ -6861,6 +6862,11 @@ function html_print_input($data, $wrapper='div', $input_only=false) (isset($data['time_end']) === true) ? $data['time_end'] : '', (isset($data['date_text']) === true) ? $data['date_text'] : SECONDS_1DAY, (isset($data['class']) === true) ? $data['class'] : 'w100p', + (isset($data['date_format_php']) === true) ? $data['date_format_php'] : 'Y/m/d', + (isset($data['time_format_php']) === true) ? $data['time_format_php'] : 'H:i:s', + (isset($data['date_format_js']) === true) ? $data['date_format_js'] : 'yy/mm/dd', + (isset($data['time_format_js']) === true) ? $data['time_format_js'] : 'HH/mm/ss', + (isset($data['id']) === true) ? $data['id'] : '', ); break; @@ -7843,7 +7849,8 @@ function html_print_select_date_range( $date_format_php='Y/m/d', $time_format_php='H:i:s', $date_format_js='yy/mm/dd', - $time_format_js='HH:mm:ss' + $time_format_js='HH:mm:ss', + $id='', ) { global $config; @@ -7894,7 +7901,7 @@ function html_print_select_date_range( $fields['chose_range'] = __('Chose start/end date period'); $fields['none'] = __('None'); - $output = html_print_input_hidden('custom_date', $custom_date, true); + $output = html_print_input_hidden('custom_date', $custom_date, true, false, false, 'hidden-custom_date'.$id); $output .= '