Improvement in smarty_function_html_select_date
| From: | Martin Kjeldsen | Date: | Wed, 03 Apr 2002 19:25:37 +0000 |
| Subject: | Improvement in smarty_function_html_select_date | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3466@lists.php.net to get a copy of this message | ||
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