More readable Xnet list-sync page
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 26 Nov 2006 11:35:44 +0000 (11:35 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 26 Nov 2006 11:35:44 +0000 (11:35 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.12@1176 839d8a87-29fc-0310-9880-83ba4fa771e5

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

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>