Re: [SMARTY] Select empty on {html_select_date}
John Nichel <[email protected]> Tue, 18 Jul 2006 10:47:27 -0400
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
messju mohr wrote:
> On Tue, Jul 18, 2006 at 10:17:16AM -0400, John Nichel wrote:
>> Hi,
>>
>> I'm trying to output a date dropdown with {html_select_date}, and
>> have the default selected fields blank. My tag looks like this...
>>
>> { html_select_date prefix="start" month_format="%b" end_year="+5"
>> year_empty="" month_empty="" day_empty="" field_order="DMY" }
>>
>> and it has an empty field for day, month and year at the top of the drop
>> down boxes, but by default it is selecting the current date. How can I
>> (if I can) get it to have those empty values selected by default? TIA
>
> add an attribute ' time="--" ' to indicate you want empty days months
> and years and not current ones.
>
> HTH
> messju
>
Cool, thanks. I had tried time=0, figured that's where the answer lied,
but, "missed it by that much".
--
John C. Nichel IV
Programmer/System Admin
Dot Com Holdings of Buffalo
716.856.9675
[email protected]
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php