RE: [SMARTY-GENERAL] Improvement in smarty_function_html_select_date
| From: | Martin Kjeldsen | Date: | Wed, 03 Apr 2002 19:29:39 +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-3468@lists.php.net to get a copy of this message | ||
This possibility to have a selected e.g. year instead of having the
actual/first year in the select picked have a specified year picked.
-----Original Message-----
From: Andrei Zmievski [mailto:andrei@ispi.net]
Sent: 3. april 2002 21:26
To: Martin Kjeldsen
Cc: smarty-general@lists.php.net
Subject: Re: [SMARTY-GENERAL] Improvement in
smarty_function_html_select_date
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. *