Ignore:
Timestamp:
11/07/07 18:09:49 (5 years ago)
Author:
root
Message:

Added characterset and system locale information to the locales table
removed hardcoded dateformat and datesequence (locale info needs to be used)

File:
1 edited

Legend:

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

    r1081 r1082  
    114114        <tr> 
    115115        <td class='tbl'> 
    116             {$locale.u010} ( {$settings.dateformat} ) 
     116            {$locale.u010} 
    117117        </td> 
    118118            <td class='tbl'> 
    119                 {foreach from=$settings.datesequence item=field} 
    120                 {if $field == "D"} 
     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> 
    121131                <select name='user_day' class='textbox'> 
    122132                    <option>&nbsp;</option> 
     
    125135                    {/section} 
    126136                </select> 
    127                 {elseif $field == "M"} 
    128                 <select name='user_month' class='textbox'> 
    129                     <option>&nbsp;</option> 
    130                     {section name=m start=1 loop=13} 
    131                         <option{if $smarty.section.m.index == $user_month} selected="selected"{/if}>{$smarty.section.m.index}</option> 
    132                     {/section} 
    133                 </select> 
    134                 {elseif $field == "Y"} 
    135                 <select name='user_year' class='textbox'> 
    136                     <option>&nbsp;</option> 
    137                     {section name=y start=1900 loop=$smarty.now|date_format:"%Y"} 
    138                         <option{if $smarty.section.y.index == $user_year} selected="selected"{/if}>{$smarty.section.y.index}</option> 
    139                     {/section} 
    140                 </select> 
    141                 {/if} 
    142                 {/foreach} 
    143                 <span class='small2'>({$locale.dateformat})</span> 
     137                <span class='small2'>(yyyy/mm/dd)</span> 
    144138            </td> 
    145139        </tr> 
Note: See TracChangeset for help on using the changeset viewer.