Re: function.html_select_date.php altered (added custom selected values on the dropdowns)

Pete Morgan <[email protected]> Tue, 25 Oct 2005 15:32:20 +0200
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
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 ]

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php