PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.smarty.general > Select empty on {html_select_date}
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Select empty on {html_select_date}

Réponse
 
LinkBack Outils de la discussion
Vieux 18/07/2006, 15h17   #1
John Nichel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Select empty on {html_select_date}

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

--
John C. Nichel IV
Programmer/System Admin
Dot Com Holdings of Buffalo
716.856.9675
jnichel@dotcomholdingsofbuffalo.com
  Réponse avec citation
Vieux 18/07/2006, 15h43   #2
messju mohr
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Select empty on {html_select_date}

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
> jnichel@dotcomholdingsofbuffalo.com

  Réponse avec citation
Vieux 18/07/2006, 15h47   #3
John Nichel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] Select empty on {html_select_date}

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
jnichel@dotcomholdingsofbuffalo.com
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h23.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08774 seconds with 11 queries