Possible addition to html_select_date
| From: | Martin Kjeldsen | Date: | Tue, 01 Jun 2004 18:11:32 +0000 |
| Subject: | Possible addition to html_select_date | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11421@lists.php.net to get a copy of this message | ||
Hi,
I would like to propose small change added to the html_select_date. There is
a uncommented param to the function which enables you to add a "header" to
the select field. E.g. to write Day as first value in the input by setting
the day_empty param. But the problem is you can't select this and then it
doesn't make much sense. You can set the values selected in the selected by
passing e.g. a timestamp to the function but 0 or -1 doesn't work as
smarty.make_timestamp returns time(). So if the functions allow a param
called day_sel the function could use that as the selected instead.
I have the code ready to be added...
Cheers
Martin