[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    RE: [SMARTY] html_select_date add on
From:       "ACDI - CIDA" <joellord () stratagem-mgnt ! com>
Date:       2003-09-10 11:05:44
[Download RAW message or body]

Hi,
   I've had the same problem and I modified my version of the
function.html_select_date.php file to take a new parameter named
add_blanks which is set to 'true' if you want blanks.  If you want it,
send me a mail.

Joel

-----Original Message-----
From: Andrew S. Nagy [mailto:asnagy@lsb.syr.edu] 
Sent: 9 septembre, 2003 16:41
To: smarty-general@lists.php.net
Subject: [SMARTY] html_select_date add on

Is there a way to get the first option in the selects to be blank?

<select name="Day">
<OPTION LABEL="" VALUE=""></option>
<option label="01" value="1">01</option>
<option label="02" value="2">02</option>
<option label="03" value="3">03</option>
...
<option label="30" value="30">30</option>
<option label="31" value="31">31</option>
</select>

I want to allow my users to choose an optional date, so if they don't
want
to pick the date, they can choose a blank date.  Right now I am using a
check box to determine if they want to use it or not (since it defaults
to
today's date), but that is not intuitive.

Thanks for any help
Andrew



________________________________________
    Andrew S. Nagy
    Lead Applications Developer
    Living SchoolBook
    Syracuse University
    (315) 443-3450
    http://lsb.syr.edu

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic