[SMARTY-DEV] Debug console problem (and solution) -> html_select_time problem (and solution)

From: Date: Wed, 24 Jul 2002 14:04:35 +0000
Subject: [SMARTY-DEV] Debug console problem (and solution) -> html_select_time problem (and solution)
References: 1  Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-213@lists.php.net to get a copy of this message
> I remember this too which was why I was confused, I thought we already > had object support in the debug template. I must not have integrated > them :( Is there anything in your version that would compliment what > Simon posted? thanks monte! no the functionality is the same, i am pretty happy with it ;-) but i have another patch for function.html_select_time.php to bring it to the same functionality as html_select_date. i added the parameter $all_extra, $hour_extra, $minute_extra, $second_extra and $meridian_extra with the same functionality as $***_extra parameters in html_select_date. below follows the diff, i hope you find it usefull! 30,34d29 < $all_extra = null; < $hour_extra = null; < $minute_extra = null; < $second_extra = null; < $meridian_extra = null; 49c44 < $html_result .= '"' . $field_array . '[' . $prefix . 'Hour]"'; --- > $html_result .= '"' . $field_array . '[' . $prefix . 'Hour]">'."\n"; 51c46 < $html_result .= '"' . $prefix . 'Hour"'; --- > $html_result .= '"' . $prefix . > 'Hour">'."\n"; 53,59d47 < if (null !== $hour_extra){ < $html_result .= ' ' . $hour_extra; < } < if (null !== $all_extra){ < $html_result .= ' ' . $all_extra; < } < $html_result .= '>'."\n"; 75c63 < $html_result .= '"' . $field_array . '[' . $prefix . 'Minute]"'; --- > $html_result .= '"' . $field_array . '[' . $prefix . 'Minute]">'."\n"; 77,83c65 < $html_result .= '"' . $prefix . 'Minute"'; < } < if (null !== $minute_extra){ < $html_result .= ' ' . $minute_extra; < } < if (null !== $all_extra){ < $html_result .= ' ' . $all_extra; --- > $html_result .= '"' . $prefix . > 'Minute">'."\n"; 85,86d66 < $html_result .= '>'."\n"; < 102c82 < $html_result .= '"' . $field_array . '[' . $prefix . 'Second]"'; --- > $html_result .= '"' . $field_array . '[' . $prefix . 'Second]">'."\n"; 104c84 < $html_result .= '"' . $prefix . 'Second"'; --- > $html_result .= '"' . $prefix . > 'Second">'."\n"; 106,114d85 < < if (null !== $second_extra){ < $html_result .= ' ' . $second_extra; < } < if (null !== $all_extra){ < $html_result .= ' ' . $all_extra; < } < $html_result .= '>'."\n"; < 126c97 < $html_result .= '"' . $field_array . '[' . $prefix . 'Meridian]"'; --- > $html_result .= '"' . $field_array . '[' . $prefix . 'Meridian]">'."\n"; 128,135c99 < $html_result .= '"' . $prefix . 'Meridian"'; < } < < if (null !== $meridian_extra){ < $html_result .= ' ' . $meridian_extra; < } < if (null !== $all_extra){ < $html_result .= ' ' . $all_extra; --- > $html_result .= '"' . $prefix . > 'Meridian">'."\n"; 137,138d100 < $html_result .= '>'."\n"; <

« previous php.smarty.cvs (#213) next »