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.edit_profile.tpl

    r1082 r1083  
    117117        </td> 
    118118            <td class='tbl'> 
    119                 <select name='user_year' class='textbox'> 
    120                     <option>&nbsp;</option> 
    121                     {section name=y start=1900 loop=$smarty.now|date_format:"%Y"} 
    122                         <option{if $smarty.section.y.index == $user_year} selected="selected"{/if}>{$smarty.section.y.index}</option> 
    123                     {/section} 
    124                 </select> 
    125                 <select name='user_month' class='textbox'> 
    126                     <option>&nbsp;</option> 
    127                     {section name=m start=1 loop=13} 
    128                         <option{if $smarty.section.m.index == $user_month} selected="selected"{/if}>{$smarty.section.m.index}</option> 
    129                     {/section} 
    130                 </select> 
    131                 <select name='user_day' class='textbox'> 
    132                     <option>&nbsp;</option> 
    133                     {section name=d start=1 loop=32} 
    134                         <option{if $smarty.section.d.index == $user_day} selected="selected"{/if}>{$smarty.section.d.index}</option> 
    135                     {/section} 
    136                 </select> 
     119                {html_select_date prefix='user_' time=$this_userdata.user_birthdate start_year="1900" end_year="-1" all_extra="class='textbox" field_order="YMD"} 
    137120                <span class='small2'>(yyyy/mm/dd)</span> 
    138121            </td> 
Note: See TracChangeset for help on using the changeset viewer.