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

    r1081 r1082  
    122122                <td class='tbl'> 
    123123                    {$locale.u010} 
    124                     <span class='small2'>( {$settings.dateformat} )</span> 
     124                    <span class='small2'>( yyyy/mm/dd )</span> 
    125125                </td> 
    126126                <td class='tbl'>} 
    127                     {foreach from=$settings.datesequence item=field} 
    128                     {if $field == "D"} 
     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> 
    129139                    <select name='user_day' class='textbox'> 
    130140                        <option> </option> 
     
    133143                        {/section} 
    134144                    </select> 
    135                     {elseif $field == "M"} 
    136                     <select name='user_month' class='textbox'> 
    137                         <option> </option> 
    138                         {section name=m start=1 loop=13} 
    139                             <option{if $smarty.section.m.index == $user_month} selected{/if}>{$smarty.section.m.index}</option> 
    140                         {/section} 
    141                     </select> 
    142                     {elseif $field == "Y"} 
    143                     <select name='user_year' class='textbox'> 
    144                         <option> </option> 
    145                         {section name=y start=1900 loop=$smarty.now|date_format:"%Y"} 
    146                             <option{if $smarty.section.y.index == $user_year} selected{/if}>{$smarty.section.y.index}</option> 
    147                         {/section} 
    148                     </select> 
    149                     {/if} 
    150                     {/foreach} 
    151145                </td> 
    152146            </tr> 
Note: See TracChangeset for help on using the changeset viewer.