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/admin.members.tpl

    r1186 r1660  
    183183                    <td class='tbl2'> 
    184184                        <div style='float:right;'><a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;step=add'><img src='{$smarty.const.THEME}images/user_add.gif' alt='{$locale.403}' title='{$locale.403}' /></a></div> 
    185                         <b>{$locale.401}</b> 
     185                        {if $order == "username"} 
     186                             <b>{$locale.401}</b> <img src='{$smarty.const.THEME}images/panel_on.gif' alt='' /> 
     187                        {else} 
     188                            <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;order=username&amp;field={$field}&amp;sortby={$sortby}&amp;country={$country}'><b>{$locale.401}</b></a> 
     189                        {/if} 
    186190                    </td> 
    187191                    {if $userdata.user_level >= 102 || $settings.forum_flags} 
    188192                    <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
    189                         <b>{$locale.406}</b> 
    190                     </td> 
    191                     {/if} 
    192                     {if $userdata.user_level >= 102} 
     193                        {if $order == "country"} 
     194                             <b>{$locale.406}</b> <img src='{$smarty.const.THEME}images/panel_on.gif' alt='' /> 
     195                        {else} 
     196                            <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;order=country&amp;field={$field}&amp;sortby={$sortby}&amp;country={$country}'><b>{$locale.406}</b></a> 
     197                        {/if} 
     198                    </td> 
     199                    {/if} 
     200                    {if $smarty.const.iADMIN} 
    193201                        <td align='center' width='1%' class='tbl2' style='white-space:nowrap'> 
    194                             <b>{$locale.409}</b> 
     202                            {if $order == "email"} 
     203                                 <b>{$locale.409}</b> <img src='{$smarty.const.THEME}images/panel_on.gif' alt='' /> 
     204                            {else} 
     205                                <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;order=email&amp;field={$field}&amp;sortby={$sortby}&amp;country={$country}'><b>{$locale.409}</b></a> 
     206                            {/if} 
    195207                        </td> 
    196208                    {/if} 
     
    209221                    {if $userdata.user_level >= 102 || $settings.forum_flags} 
    210222                        <td align='left' width='1%' class='{cycle values='tbl1,tbl2' advance=no}' style='white-space:nowrap'> 
    211                             {$members[id].cc_flag}{if $members[id].user_cc_code == ""}{$members[id].cc_name}{else}<a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;sortby={$sortby}&amp;country={$members[id].user_cc_code}'>{$members[id].cc_name}</a>{/if} 
     223                            {$members[id].cc_flag}{if $members[id].user_cc_code == ""}{$members[id].cc_name}{else}<a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;order={$order}&amp;sortby={$sortby}&amp;field={$field}&amp;country={$members[id].user_cc_code}'>{$members[id].cc_name}</a>{/if} 
    212224                        </td> 
    213225                    {/if} 
     
    243255                </tr> 
    244256            {if $smarty.section.id.last} 
    245             </table> 
    246             <br /> 
    247             <table align='center' cellpadding='0' cellspacing='1' class='tbl-border'> 
    248                 <tr> 
    249                     <td rowspan='2' class='tbl2'> 
    250                         <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;sortby=all'>{$locale.404}</a> 
    251                     </td> 
    252                     {foreach from=$search item=letter name=search} 
    253                     {if $smarty.foreach.search.first} 
    254                         {math equation="x/2-1" x=$smarty.foreach.search.total format="%u" assign='break'} 
    255                     {/if} 
    256                     <td align='center' class='tbl1'> 
    257                         <div class='small'> 
    258                             <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;sortby={$letter}{if $country !=""}&amp;country={$country}{/if}'>{$letter}</a> 
    259                         </div> 
    260                     </td> 
    261                 {if $smarty.foreach.search.index==$break} 
    262                             <td rowspan='2' class='tbl2'> 
    263                         <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;sortby=all'>{$locale.404}</a> 
    264                     </td> 
    265                 </tr> 
    266                 <tr> 
     257                </table> 
     258                {if $field == "username" || $field == "email"} 
     259                <br /> 
     260                <table align='center' cellpadding='0' cellspacing='1' class='tbl-border'> 
     261                    <tr> 
     262                        {foreach from=$search item=letter name=search} 
     263                        {if $smarty.foreach.search.first} 
     264                            {math equation="x/2-1" x=$smarty.foreach.search.total format="%u" assign='break'} 
     265                        {/if} 
     266                        <td align='center' class='tbl1'> 
     267                            <div class='small'> 
     268                                <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;field={$field}&amp;sortby={$letter}&amp;order={$order}{if $country !=""}&amp;country={$country}{/if}'>{$letter}</a> 
     269                            </div> 
     270                        </td> 
     271                    {if !$smarty.foreach.search.last && $smarty.foreach.search.index==$break} 
     272                    </tr> 
     273                    <tr> 
     274                    {/if} 
     275                        {/foreach} 
     276                    </tr> 
     277                </table> 
     278                <div style='text-align:center'> 
     279                    {buttonlink name=$locale.404|sprintf:$locale.401 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;field=username"|cat:"&amp;order="|cat:$order|cat:"&amp;sortby=all&amp;country="|cat:$country} 
     280                    &nbsp; 
     281                    {buttonlink name=$locale.404|sprintf:$locale.409 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;field=email"|cat:"&amp;order="|cat:$order|cat:"&amp;sortby=all&amp;country="|cat:$country} 
     282                    {if $sortby != "all" || $country != ""} 
     283                        &nbsp; 
     284                        {buttonlink name=$locale.414 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;field="|cat:$field|cat:"&amp;order="|cat:$order|cat:"&amp;sortby=all"} 
     285                    {/if} 
     286                </div> 
    267287                {/if} 
    268                     {/foreach} 
    269                 </tr> 
    270             </table> 
    271288            {/if} 
    272289        {sectionelse} 
Note: See TracChangeset for help on using the changeset viewer.