Ignore:
Timestamp:
May 26, 2010, 9:26:54 PM (10 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager]

  • Bug 1350 fixed: UAM tables are now sortable. Using tablesorter JQuery script.
  • Language files updated since case sensitivity function have been erased.
Location:
extensions/NBC_UserAdvManager/trunk/admin/template
Files:
8 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/template/ghosttracker.tpl

    r5593 r6378  
    11{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    22{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
     3{known_script id="jquery.tablesorter" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"}
    34
    45{html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head}
     
    1314  {rdelim});
    1415{rdelim});
     16
     17$(document).ready(function()
     18    {ldelim}
     19      // extend the default setting to always sort on the fourth column
     20      $.tablesorter.defaults.sortList = [[3,0]];
     21      // sorting
     22      $("#sorting").tablesorter();
     23    {rdelim}
     24);
    1525</script>
    1626
     
    3343    <legend class="cluetip" title="{'UAM_gtTitle'|translate}|{'UAM_gtTitle_d'|translate}">{'GhostTracker_Title'|@translate}</legend>
    3444      {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
    35         <table class="table2" width="97%" summary="">
     45        <table id="sorting" class="table2" width="97%" summary="">
    3646          <thead>
    3747            <tr class="throw">
    38               <td>&nbsp;</td>
    39               <td>{'Username'|@translate}</td>
    40               <td>{'Email address'|@translate}</td>
    41               <td>{'LastVisit_Date'|@translate}</td>
    42               <td>{'Reminder'|@translate}</td>
     48              <th>&nbsp;</th>
     49              <th>{'Username'|@translate}</th>
     50              <th>{'Email address'|@translate}</th>
     51              <th>{'LastVisit_Date'|@translate}</th>
     52              <th>{'Reminder'|@translate}</th>
    4353            </tr>
    4454          </thead>
    45 
     55          <tbody>
    4656          {foreach from=$users item=user name=users_loop}
    4757            <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
     
    6171            </tr>
    6272          {/foreach}
     73        </tbody>
    6374        </table>
    6475
  • extensions/NBC_UserAdvManager/trunk/admin/template/uam.css

    r5593 r6378  
    6060  padding:0 15px 15px;
    6161}
     62
     63tr.throw
     64{
     65cursor:pointer;
     66text-align:center;
     67}
     68
     69th.header
     70{
     71background-image:url("./icon/bg.png");
     72background-position:right center;
     73background-repeat:no-repeat;
     74cursor:pointer;
     75}
     76
     77th.headerSortDown
     78{
     79background-image:url("./icon/desc.png");
     80}
     81
     82th.headerSortUp
     83{
     84background-image:url("./icon/asc.png");
     85}
  • extensions/NBC_UserAdvManager/trunk/admin/template/userlist.tpl

    r5593 r6378  
    11{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    22{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
     3{known_script id="jquery.tablesorter" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"}
    34
    45{html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head}
     
    1314  {rdelim});
    1415{rdelim});
     16
     17$(document).ready(function()
     18    {ldelim}
     19      // extend the default setting to always sort on the fourth column
     20      $.tablesorter.defaults.sortList = [[3,0]];
     21      // sorting
     22      $("#sorting").tablesorter();
     23    {rdelim}
     24);
    1525</script>
     26
    1627
    1728<div class="titrePage">
     
    2435
    2536    {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
    26       <table class="table2" width="97%" summary="">
     37      <table id="sorting" class="table2" width="97%" summary="">
    2738                        <thead>
    2839                        <tr class="throw">
    29                         <td>{'Username'|@translate}</td>
    30                         <td>{'Email address'|@translate}</td>
    31             <td>{'LastVisit_Date'|@translate}</td>
    32             <td>{'Nb_Days'|@translate}</td>
     40                        <th>{'Username'|@translate}</th>
     41                        <th>{'Email address'|@translate}</th>
     42            <th>{'LastVisit_Date'|@translate}</th>
     43            <th>{'Nb_Days'|@translate}</th>
    3344                        </tr>
    3445                        </thead>
    35 
     46        <tbody>
    3647        {foreach from=$users item=user name=users_loop}
    3748          <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
     
    5364          </tr>
    5465        {/foreach}
     66        </tbody>
    5567      </table>
    5668
  • extensions/NBC_UserAdvManager/trunk/admin/template/usermanager.tpl

    r5593 r6378  
    11{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    22{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
     3{known_script id="jquery.tablesorter" src=$UAM_PATH|@cat:"admin/template/js/jquery.tablesorter.js"}
    34
    45{html_head}<link rel="stylesheet" type="text/css" href="{$UAM_PATH}admin/template/uam.css">{/html_head}
     
    1314  {rdelim});
    1415{rdelim});
     16
     17$(document).ready(function()
     18    {ldelim}
     19      // extend the default setting to always sort on the fourth column
     20      $.tablesorter.defaults.sortList = [[3,0]];
     21      // sorting
     22      $("#sorting").tablesorter();
     23    {rdelim}
     24);
    1525</script>
    1626
     
    2434
    2535    {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
    26       <table class="table2" width="97%" summary="">
     36      <table id="sorting" class="table2" width="97%" summary="">
    2737                  <thead>
    2838                        <tr class="throw">
    29                         <td>&nbsp;</td>
    30                         <td>{'Username'|@translate}</td>
    31                         <td>{'User status'|@translate}</td>
    32                         <td>{'Email address'|@translate}</td>
    33                         <td>{'Groups'|@translate}</td>
    34                         <td>{'Registration_Date'|@translate}</td>
    35             <td>{'Reminder'|@translate}</td>
     39                        <th>&nbsp;</td>
     40                        <th>&nbsp;{'Username'|@translate}&nbsp;</th>
     41                        <th>&nbsp;{'User status'|@translate}&nbsp;</th>
     42                        <th>&nbsp;{'Email address'|@translate}&nbsp;</th>
     43                        <th>&nbsp;{'Groups'|@translate}&nbsp;</th>
     44                        <th>&nbsp;{'Registration_Date'|@translate}&nbsp;</th>
     45            <th>&nbsp;{'Reminder'|@translate}&nbsp;</th>
    3646                        </tr>
    3747                        </thead>
    38 
     48        <tbody>
    3949        {foreach from=$users item=user name=users_loop}
    4050          <tr class="{if $smarty.foreach.users_loop.index is odd}row1{else}row2{/if}">
     
    5161          </tr>
    5262        {/foreach}
     63      </tbody>
    5364      </table>
    5465
Note: See TracChangeset for help on using the changeset viewer.