Ignore:
Timestamp:
08/21/08 16:07:21 (4 years ago)
Author:
hverton
Message:

updated the members list with better filters, and a sort option on username, email, last visit date and country.
Rewritten the setup procedure to make it more fail-safe
Fixed getmxxrr() function, to return the lowest MX record first
Added the compiled locale files for Dutch (setup/global)

File:
1 edited

Legend:

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

    r1186 r1660  
    3333            <tr> 
    3434                <td class='tbl2'> 
    35                     <b>{$locale.401}</b> 
     35                    {if $order == "username"} 
     36                         <b>{$locale.401}</b> <img src='{$smarty.const.THEME}images/panel_on.gif' alt='' /> 
     37                    {else} 
     38                        <a href='{$smarty.const.FUSION_SELF}?order=username&amp;field={$field}&amp;sortby={$sortby}&amp;country={$country}'><b>{$locale.401}</b></a> 
     39                    {/if} 
    3640                </td> 
    3741                {if $userdata.user_level >= 102 || $settings.forum_flags} 
    3842                <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
    39                     <b>{$locale.406}</b> 
     43                    {if $order == "country"} 
     44                         <b>{$locale.406}</b> <img src='{$smarty.const.THEME}images/panel_on.gif' alt='' /> 
     45                    {else} 
     46                        <a href='{$smarty.const.FUSION_SELF}?order=country&amp;field={$field}&amp;sortby={$sortby}&amp;country={$country}'><b>{$locale.406}</b></a> 
     47                    {/if} 
    4048                </td> 
    4149                {/if} 
    4250                {if $smarty.const.iSUPERADMIN} 
    4351                    <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
    44                         <b>{$locale.409}</b> 
     52                        {if $order == "email"} 
     53                             <b>{$locale.409}</b> <img src='{$smarty.const.THEME}images/panel_on.gif' alt='' /> 
     54                        {else} 
     55                            <a href='{$smarty.const.FUSION_SELF}?order=email&amp;field={$field}&amp;sortby={$sortby}&amp;country={$country}'><b>{$locale.409}</b></a> 
     56                        {/if} 
    4557                    </td> 
    4658                    <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
    47                         <b>{$locale.405}</b> 
     59                        {if $order == "lastvisit"} 
     60                             <b>{$locale.409}</b> <img src='{$smarty.const.THEME}images/panel_on.gif' alt='' /> 
     61                        {else} 
     62                            <a href='{$smarty.const.FUSION_SELF}?order=lastvisit&amp;field={$field}&amp;sortby={$sortby}&amp;country={$country}'><b>{$locale.405}</b></a> 
     63                        {/if} 
    4864                    </td> 
    4965                {/if} 
     
    5975                {if $userdata.user_level >= 102 || $settings.forum_flags} 
    6076                    <td align='left' width='1%' class='{cycle values='tbl1,tbl2' advance=no}' style='white-space:nowrap'> 
    61                         {$members[id].cc_flag}{if $members[id].user_cc_code == ""}{$members[id].cc_name}{else}<a href='{$smarty.const.FUSION_SELF}?sortby={$sortby}&amp;country={$members[id].user_cc_code}'>{$members[id].cc_name}</a>{/if} 
     77                        {$members[id].cc_flag}{if $members[id].user_cc_code == ""}{$members[id].cc_name}{else}<a href='{$smarty.const.FUSION_SELF}?order={$order}&amp;sortby={$sortby}&amp;field={$field}&amp;country={$members[id].user_cc_code}'>{$members[id].cc_name}</a>{/if} 
    6278                    </td> 
    6379                {/if} 
     
    7692        {if $smarty.section.id.last} 
    7793        </table> 
    78         <br /> 
    79         <table align='center' cellpadding='0' cellspacing='1' class='tbl-border'> 
    80             <tr> 
    81                 <td rowspan='2' class='tbl2'> 
    82                     <a href='{$smarty.const.FUSION_SELF}?sortby=all'>{$locale.404}</a> 
    83                 </td> 
    84                 {foreach from=$search item=letter name=search} 
    85                 {if $smarty.foreach.search.first} 
    86                     {math equation="x/2-1" x=$smarty.foreach.search.total format="%u" assign='break'} 
     94            <br /> 
     95            <table align='center' cellpadding='0' cellspacing='1' class='tbl-border'> 
     96                <tr> 
     97                    {foreach from=$search item=letter name=search} 
     98                    {if $smarty.foreach.search.first} 
     99                        {math equation="x/2-1" x=$smarty.foreach.search.total format="%u" assign='break'} 
     100                    {/if} 
     101                    <td align='center' class='tbl1'> 
     102                        <div class='small'> 
     103                            <a href='{$smarty.const.FUSION_SELF}?field={$field}&amp;sortby={$letter}{if $country !=""}&amp;country={$country}{/if}'>{$letter}</a> 
     104                        </div> 
     105                    </td> 
     106                {if !$smarty.foreach.search.last && $smarty.foreach.search.index==$break} 
     107                </tr> 
     108                <tr> 
    87109                {/if} 
    88                 <td align='center' class='tbl1'> 
    89                     <div class='small'> 
    90                         <a href='{$smarty.const.FUSION_SELF}?sortby={$letter}{if $country !=""}&amp;country={$country}{/if}'>{$letter}</a> 
    91                     </div> 
    92                 </td> 
    93             {if $smarty.foreach.search.index==$break} 
    94                         <td rowspan='2' class='tbl2'> 
    95                     <a href='{$smarty.const.FUSION_SELF}?sortby=all'>{$locale.404}</a> 
    96                 </td> 
    97             </tr> 
    98             <tr> 
    99             {/if} 
    100                 {/foreach} 
    101             </tr> 
    102         </table> 
     110                    {/foreach} 
     111                </tr> 
     112            </table> 
     113            <div style='text-align:center'> 
     114                {buttonlink name=$locale.404|sprintf:$locale.401 link=$smarty.const.FUSION_SELF|cat:"?field=username"|cat:"&amp;order="|cat:$order|cat:"&amp;sortby=all&amp;country="|cat:$country} 
     115                &nbsp; 
     116                {buttonlink name=$locale.404|sprintf:$locale.409 link=$smarty.const.FUSION_SELF|cat:"?field=email"|cat:"&amp;order="|cat:$order|cat:"&amp;sortby=all&amp;country="|cat:$country} 
     117                {if $sortby != "all"} 
     118                    &nbsp; 
     119                    {buttonlink name=$locale.414 link=$smarty.const.FUSION_SELF|cat:"?field="|cat:$field|cat:"&amp;order="|cat:$order|cat:"&amp;sortby=all"} 
     120                {/if} 
     121            </div> 
    103122        {/if} 
    104123    {sectionelse} 
Note: See TracChangeset for help on using the changeset viewer.