RE: html_select_date [PATCH]
"Nicklas Bondesson" <[email protected]> Tue, 5 Jul 2005 11:06:47 +0200
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
I must have missed that atrribute when I last checked the manual. Will try and see if it does what I want. Nicklas > -----Original Message----- > From: messju mohr [mailto:[email protected]] > Sent: den 5 juli 2005 10:55 > To: Nicklas Bondesson > Cc: [email protected] > Subject: Re: [SMARTY-DEV] html_select_date [PATCH] > > On Mon, Jul 04, 2005 at 11:10:55AM +0200, Nicklas Bondesson wrote: > > Hello, > > Hi, > > > Attached is a patch to html_select_date which will let you assign a > > start/default value for the year, month and day select boxes. > > > > Example: > > {html_select_date end_year="+3" field_order="$_CONFIG_date_order" > > field_separator="$_CONFIG_date_separator" prefix="to" > month_format="%m" > > day_value_format="%02d" all_extra="class='textbox'" > > start_year_user=$smarty.request.toYear > > start_month_user=$smarty.request.toMonth > > start_day_user=$smarty.request.toDay} > > I think this can already be achieved with the time-attribute, not? > > time="`$smarty.request.toYe`-`$smarty.request.toMonth`-`$smart y.request.toDay`" > > > Hope this will make it to the CVS. > > > > Nicklas > > -- > Smarty Development Mailing List (http://smarty.php.net/) To > unsubscribe, visit: http://www.php.net/unsub.php > > -- Smarty Development Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php