html select date [PATCH]
"Nicklas Bondesson" <[email protected]> Sun, 3 Jul 2005 21:29:57 +0200
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
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}
Hope this one will make it to the CVS.
Nicklas
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php