Re: function.html_select_date.php altered (added custom selected values on the dropdowns)
| From: | Pete Morgan | Date: | Tue, 25 Oct 2005 13:32:20 +0000 |
| Subject: | Re: function.html_select_date.php altered (added custom selected values on the dropdowns) | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2798@lists.php.net to get a copy of this message | ||
Miguel Simões wrote:
Hy everyone, Just recently I've subscribed this Mailing List, hoping to help in new contents/adding functions to this great project. My first contrib is as attach on this message. The {html_select_date} was changed to making people able to select the selected year/month/day on the dropdowns.These options are already there ... with the "time" attribute http://smarty.php.net/manual/en/language.function.html.select.date.php
(I hope that the new code included does not need any comments for you all to understand and give me your feedback) --- DESCRIPTION --- Added param['year_selected'], param['month_selected'] and param['day_selected']. If not given on template they will output the current date (as actual code does). The values MUST be integer (all three of them). This is not a major change, but for what I've seen this was requested a lot of times int the forums. -- Miguel Simões aka abyssal [ if you Slackware you know Linux, if you know RedHat you just know RedHat ]