Show users with broken email in xnet
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 21 Jan 2007 17:19:36 +0000 (17:19 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sun, 21 Jan 2007 17:19:36 +0000 (17:19 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1378 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/xnetgrp.php
templates/xnetgrp/annuaire.tpl

index bc8bed5..065d1a5 100644 (file)
@@ -383,12 +383,14 @@ class XnetGrpModule extends PLModule
                            m.perms='admin' AS admin,
                            m.origine='X' AS x,
                            u.perms!='pending' AS inscrit,
-                           m.uid
+                           m.uid, e.email AS actif
                      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' )
+                LEFT JOIN  emails          AS e ON ( e.flags = 'active' AND e.uid = m.uid)
                     WHERE  m.asso_id = {?} $ini
                            AND (m.origine != 'X' OR u.perms != 'pending' OR m.email IS NOT NULL)
+                 GROUP BY  m.uid          
                  ORDER BY  $tri
                     LIMIT  {?},{?}", $globals->asso('id'), $ofs*NB_PER_PAGE, NB_PER_PAGE);
         $page->assign('ann', $ann);
index 4a9d780..d6c2a7f 100644 (file)
@@ -103,7 +103,11 @@ Tu peux 
       {/if}
       {if $m.femme}&bull;{/if}{$m.prenom} {$m.nom|strtoupper}
       {if $m.x}</a>{/if} 
-      {if $m.admin}</strong>{/if}</td>
+      {if $m.admin}</strong>{/if}
+      {if $m.inscrit && !$m.actif}
+      <a href="https://www.polytechnique.org/marketing/broken/{$m.email}">{icon name=error title="Recherche d'email"}</a>
+      {assign var=broken value=true}
+      {/if}</td>
     <td>{if $m.admin}<strong>{/if}{$m.promo}{if $m.admin}</strong>{/if}</td>
     <td class="center">
       {if $m.inscrit}
@@ -129,4 +133,12 @@ Tu peux 
 {/foreach}
 </p>
 
+{if $broken}
+<p class="smaller">
+  {icon name=error} : Les camarades dont la ligne contient ce symbole n'ont plus d'adresse de redirection et ne peuvent donc
+  plus ĂȘtre contacter via leur adresse Polytechnique.org. Si tu connais sa nouvelle adresse, tu peux nous la communiquer en
+  cliquant sur le symbole.
+</p>
+{/if}
+
 {* vim:set et sw=2 sts=2 sws=2: *}