Backport [1175] and [1176]
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 26 Nov 2006 11:40:16 +0000 (11:40 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 26 Nov 2006 11:40:16 +0000 (11:40 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1177 839d8a87-29fc-0310-9880-83ba4fa771e5

classes/platalpage.php
modules/xnetlists.php
templates/xnetlists/sync.tpl

index 2667cd0..68a001d 100644 (file)
@@ -266,6 +266,7 @@ function trimwhitespace($source, &$smarty)
 
 function _hide_email($source)
 {
+    $source = str_replace("\n", '', $source);
     return '<script type="text/javascript">Nix.decode("' . addslashes(str_rot13($source)) . '");</script>'; 
 }
 
index fbdde4e..299d4cd 100644 (file)
@@ -223,7 +223,8 @@ class XnetListsModule extends ListsModule
                      FROM  groupex.membres AS m
                 LEFT JOIN  auth_user_md5   AS u ON ( u.user_id = m.uid )
                 LEFT JOIN  aliases         AS a ON ( a.id = m.uid AND a.type='a_vie' )
-                    WHERE  m.asso_id = {?}", $globals->asso('id'));
+                    WHERE  m.asso_id = {?}
+                 ORDER BY  promo, nom, prenom", $globals->asso('id'));
 
         $not_in_list = array();
 
index 03e0049..7d3c717 100644 (file)
 
   <table cellspacing="2" cellpadding="0" class="tiny">
     <tr>
-      <th>Membre</th>
+      <th colspan="2">Membre</th>
       <th></th>
     </tr>
     {foreach from=$not_in_list item=u}
     <tr>
-      <td>{$u.prenom} {$u.nom}</td>
+      <td>{$u.nom|strtoupper} {$u.prenom}</td>
+      <td>{$u.promo}</td>
       <td><input type="checkbox" name="add[{$u.email}]" /></td>
     </tr>
     {/foreach}
     <tr>
-      <td colspan='2' class="center">
+      <td colspan='3' class="center">
         <input type='submit' value='forcer inscription' />
       </td>
     </tr>