Ignore:
Timestamp:
11/07/07 18:29:04 (5 years ago)
Author:
root
Message:

Fixed a typo in rev01082.php
Replaced date selection HTML by smarty html_select_date function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/templates/main.register.tpl

    r1082 r1083  
    125125                </td> 
    126126                <td class='tbl'>} 
    127                     <select name='user_year' class='textbox'> 
    128                         <option> </option> 
    129                         {section name=y start=1900 loop=$smarty.now|date_format:"%Y"} 
    130                             <option{if $smarty.section.y.index == $user_year} selected{/if}>{$smarty.section.y.index}</option> 
    131                         {/section} 
    132                     </select> 
    133                     <select name='user_month' class='textbox'> 
    134                         <option> </option> 
    135                         {section name=m start=1 loop=13} 
    136                             <option{if $smarty.section.m.index == $user_month} selected{/if}>{$smarty.section.m.index}</option> 
    137                         {/section} 
    138                     </select> 
    139                     <select name='user_day' class='textbox'> 
    140                         <option> </option> 
    141                         {section name=d start=1 loop=32} 
    142                             <option{if $smarty.section.d.index == $user_day} selected{/if}>{$smarty.section.d.index}</option> 
    143                         {/section} 
    144                     </select> 
     127                    {html_select_date prefix='user_' time=$this_userdata.user_birthdate start_year="1900" end_year="-1" all_extra="class='textbox" field_order="YMD"} 
    145128                </td> 
    146129            </tr> 
Note: See TracChangeset for help on using the changeset viewer.