Changeset 6378


Ignore:
Timestamp:
May 26, 2010, 9:26:54 PM (11 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
Files:
8 added
11 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
  • extensions/NBC_UserAdvManager/trunk/changelog.txt.php

    r6255 r6378  
    174174            Bug 1655 fixed - Navigation bar is usefull again
    175175           
    176 -- 2.15.3 : Quick update to fix a database upgrade issue
     176-- 2.15.3 : Quick update to fix a database upgrade issue
     177
     178-- 2.15.4 : Bug 1310 fixed - UAM tables are now sortable
    177179*/
    178180?>
  • extensions/NBC_UserAdvManager/trunk/language/de_DE/help/plugin.lang.php

    r5816 r6378  
    33
    44$lang['UAM_restricTitle'] = 'Einschränkungen für Registrierungen';
    5 $lang['UAM_restricTitle_d'] = '
    6 - Groß-und Kleinschreibung<br>
    7 - Charaktere Ausgrenzung<br>
    8 - Passwort Durchsetzung<br>
    9 - E-Mail-Domänen Ausgrenzung<br>
    10 ...
    11 ';
    125$lang['UAM_confirmTitle'] = 'Bestätigungen und Validierungen der Registrierung';
    136$lang['UAM_confirmTitle_d'] = '
     
    166159<b style=&quot;color: red;&quot;>Warnung: Diese Option hat keine Auswirkungen auf den Benutzernamen erstellt vor ihrer Aktivierung.</b>';
    167160// --------- End: New or revised $lang ---- from version 2.15.2
     161
     162
     163// --------- Starting below: New or revised $lang ---- from version 2.15.4
     164$lang['UAM_restricTitle_d'] = '
     165- Charaktere Ausgrenzung<br>
     166- Passwort Durchsetzung<br>
     167- E-Mail-Domänen Ausgrenzung<br>
     168...
     169';
     170// --------- End: New or revised $lang ---- from version 2.15.4
    168171?>
  • extensions/NBC_UserAdvManager/trunk/language/en_UK/help/plugin.lang.php

    r5816 r6378  
    33
    44$lang['UAM_restricTitle'] = 'Restrictions for registrations';
    5 $lang['UAM_restricTitle_d'] = '
    6 - Case sensitivity<br>
    7 - Characters exclusion<br>
    8 - Password enforcement<br>
    9 - Email domains exclusion<br>
    10 ...
    11 ';
    125$lang['UAM_confirmTitle'] = 'Confirmations and validations of registration';
    136$lang['UAM_confirmTitle_d'] = '
     
    166159<b style=&quot;color: red;&quot;>Warning: This option has no effect on the user names created prior to its activation.</b>';
    167160// --------- End: New or revised $lang ---- from version 2.15.2
     161
     162// --------- Starting below: New or revised $lang ---- from version 2.15.4
     163$lang['UAM_restricTitle_d'] = '
     164- Characters exclusion<br>
     165- Password enforcement<br>
     166- Email domains exclusion<br>
     167...
     168';
     169// --------- End: New or revised $lang ---- from version 2.15.4
    168170?>
  • extensions/NBC_UserAdvManager/trunk/language/es_ES/help/plugin.lang.php

    r6160 r6378  
    33
    44$lang['UAM_restricTitle'] = 'Restricciones para el registro';
    5 $lang['UAM_restricTitle_d'] = '
    6 - Entre mayúsculas y minúsculas<br>
    7 - Excluyendo los caracteres<br>
    8 - Ejecución Contraseña<br>
    9 - Exclusión de dominios de correo electrónico<br>
    10 ...
    11 ';
    125$lang['UAM_confirmTitle'] = 'Confirmaciones y validaciones de registro';
    136$lang['UAM_confirmTitle_d'] = '
     
    166159<b style=&quot;color: red;&quot;>Warning: This option has no effect on the user names created prior to its activation.</b>';
    167160// --------- End: New or revised $lang ---- from version 2.15.2
     161
     162
     163// --------- Starting below: New or revised $lang ---- from version 2.15.4
     164$lang['UAM_restricTitle_d'] = '
     165- Excluyendo los caracteres<br>
     166- Ejecución Contraseña<br>
     167- Exclusión de dominios de correo electrónico<br>
     168...
     169';
     170// --------- End: New or revised $lang ---- from version 2.15.4
    168171?>
  • extensions/NBC_UserAdvManager/trunk/language/fr_FR/help/plugin.lang.php

    r5816 r6378  
    33
    44$lang['UAM_restricTitle'] = 'Restriction des inscriptions';
    5 $lang['UAM_restricTitle_d'] = '
    6 - Sensibilité à la casse<br>
    7 - Exclusion de caractères dans les noms d\'utilisateurs<br>
    8 - Renforcement des mots de passe<br>
    9 - Exclusion des domaines de messagerie<br>
    10 ...
    11 ';
    125$lang['UAM_confirmTitle'] = 'Confirmation et validation des inscriptions';
    136$lang['UAM_confirmTitle_d'] = '
     
    163156<b style=&quot;color: red;&quot;>Attention : Cette option est sans effet sur les noms d\'utilisateurs créés préalablement à son activation.</b>';
    164157// --------- End: New or revised $lang ---- from version 2.15.2
     158
     159
     160// --------- Starting below: New or revised $lang ---- from version 2.15.4
     161$lang['UAM_restricTitle_d'] = '
     162- Exclusion de caractères dans les noms d\'utilisateurs<br>
     163- Renforcement des mots de passe<br>
     164- Exclusion des domaines de messagerie<br>
     165...
     166';
     167// --------- End: New or revised $lang ---- from version 2.15.4
    165168?>
  • extensions/NBC_UserAdvManager/trunk/language/it_IT/help/plugin.lang.php

    r5816 r6378  
    33
    44$lang['UAM_restricTitle'] = 'Restrizioni per le iscrizzioni';
    5 $lang['UAM_restricTitle_d'] = '
    6 - Sensibilità maiuscole/minuscole<br>
    7 - Caratteri vietati nei nomi degli utenti<br>
    8 - Rafforzare il livello di sicurezza delle password<br>
    9 - Esclusione dei domini d\'Email<br>
    10 ...
    11 ';
    125$lang['UAM_confirmTitle'] = 'Confirmazzione e validazione delle iscrizzioni';
    136$lang['UAM_confirmTitle_d'] = '
     
    167160<b style=&quot;color: red&quot;>Attenzione: questa opzione non ha alcun effetto sui pseudo creati prima della sua attivazione.</b>';
    168161// --------- End: New or revised $lang ---- from version 2.15.2
     162
     163
     164// --------- Starting below: New or revised $lang ---- from version 2.15.4
     165$lang['UAM_restricTitle_d'] = '
     166- Caratteri vietati nei nomi degli utenti<br>
     167- Rafforzare il livello di sicurezza delle password<br>
     168- Esclusione dei domini d\'Email<br>
     169...
     170';
     171// --------- End: New or revised $lang ---- from version 2.15.4
    169172?>
  • extensions/NBC_UserAdvManager/trunk/main.inc.php

    r6354 r6378  
    22/*
    33Plugin Name: UserAdvManager
    4 Version: 2.15.3
     4Version: 2.15.4pre
    55Description: Renforcer la gestion des utilisateurs - Enforce users management
    66Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=216
Note: See TracChangeset for help on using the changeset viewer.