function.html_select_date.php altered (added custom selected values on the dropdowns)
| From: | Miguel Simões | Date: | Mon, 24 Oct 2005 09:34:58 +0000 |
| Subject: | function.html_select_date.php altered (added custom selected values on the dropdowns) | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-2797@lists.php.net to get a copy of this message | ||
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.
(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 ]