Re: [SMARTY-GENERAL] Improvement in smarty_function_html_select_date
| From: | Andrei Zmievski | Date: | Wed, 03 Apr 2002 19:25:44 +0000 |
| Subject: | Re: [SMARTY-GENERAL] Improvement in smarty_function_html_select_date | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3467@lists.php.net to get a copy of this message | ||
What does this accomplish exactly?
On Wed, 03 Apr 2002, Martin Kjeldsen wrote:
> Hi,
>
> I just want to ask if somebody is laking the a select possibility in
> smarty_function_html_select_date. It's pretty easy to implement in the
> existent function. Maybe this a possible improvement in the function
> distributed from the smarty website.
>
> Around line 50 add:
> $sel_days = strftime("%d", $time);
> $sel_month = strftime("%m", $time);
> $sel_year = strftime("%Y", $time);
>
> In line 103 change:
> strftime("%m", $time) -> $sel_month
>
> on so in lines 132, 145, 172.
>
> Martin
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
-Andrei
* E Pluribus UNIX. *