Re: [SMARTY] Select empty on {html_select_date}
[email protected] ("messju mohr") Tue, 18 Jul 2006 16:43:09 +0200
| Newsgroups | php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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
> --
> John C. Nichel IV
> Programmer/System Admin
> Dot Com Holdings of Buffalo
> 716.856.9675
> [email protected]