« Return to Thread: {html_select_date} related query

Re: {html_select_date} related query

by Sylvie Greverend-3 :: Rate this Message:

Reply to Author | View in Thread

http://smarty.php.net/manual/en/language.function.html.select.date.php
has a couple of params
On Wed, 2007-03-14 at 09:03 -0700, gags007 wrote:

> Hi Friends,
>
> I want to add a default value at the begining of the "Day", "Month" and
> "Year" dropdowns that are displayed when i use the following command in my
> tpl file:
>
> {html_select_date prefix='birth_' field_order='DMY' end_year='-100'}
>
> Is that possible? I need to use this to check if the user has actually
> selected a value from the dropdowns or not?
> For example, I want my day dropdown to look like this:
>
>  <select name="birth_Day">
> <option label="00" value="-1">Select a Day</option>    // This is the extra
> value I want to add for each dropdown
> <option label="01" value="1">01</option>
> <option label="02" value="2">02</option>
> <option label="03" value="3">03</option>
> <option label="04" value="4">04</option>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Tikiwiki-users mailing list
Tikiwiki-users@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-users

 « Return to Thread: {html_select_date} related query