|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
livingdead Smarty Rookie
Joined: 08 Oct 2003 Posts: 9
|
Posted: Fri Oct 31, 2003 5:20 pm Post subject: html_select_date before 1970 |
|
|
How to set a date with is before 01-01-1970.
For exemple the bithdate 05-26-1953.
Thanks for help |
|
Back to top |
|
inerte Smarty Rookie
Joined: 24 Sep 2003 Posts: 9
|
Posted: Fri Oct 31, 2003 7:12 pm Post subject: Re: html_select_date before 1970 |
|
|
livingdead wrote: | How to set a date with is before 01-01-1970.
For exemple the bithdate 05-26-1953. |
I guess you could do:
php
Code: |
$possible_years = range(1950, date('Y'));
$years = array();
foreach ($year_range as $key => $value) $years[$value] = $value;
$smarty->assign('years', $years);
|
tpl
Code: |
<select name="year">
{html_options options=$years}
</select>
|
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|