1 {**************************************************************************}
3 {* Copyright (C) 2003-2011 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
6 {* This program is free software; you can redistribute it and/or modify *}
7 {* it under the terms of the GNU General Public License as published by *}
8 {* the Free Software Foundation; either version 2 of the License, or *}
9 {* (at your option) any later version. *}
11 {* This program is distributed in the hope that it will be useful, *}
12 {* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13 {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14 {* GNU General Public License for more details. *}
16 {* You should have received a copy of the GNU General Public License *}
17 {* along with this program; if not, write to the Free Software *}
18 {* Foundation, Inc., *}
19 {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
21 {**************************************************************************}
23 <h1>Gestion des homonymes</h1>
25 {if $op eq 'list' || $op eq 'mail' || $op eq 'correct'}
27 {if $homonyms_to_fix|@count}
29 Liste des homonymies à corriger, celles en rouge devraient déjà être traitées.
34 <th>alias concerné</th>
35 <th>date de péremption de l'alias</th>
38 {foreach from=$homonyms_to_fix key=login item=row}
42 <span class="erreur"><strong>{$login}</strong></span>
44 <strong>{$login}</strong>
47 <td>{$row.0.expire|date_format}</td>
49 <a href="admin/homonyms/mail-conf/{$row.0.uid}">envoyer un email</a>
50 <a href="admin/homonyms/correct-conf/{$row.0.uid}">corriger</a>
53 {foreach from=$row item=user}
55 <td> {$user.forlife}</td>
58 <a href="profile/{$user.forlife}" class='popup2'>fiche</a>
59 <a href="admin/user/{$user.forlife}">edit</a>
68 Liste des homonymies déjà corrigées.
73 <th>alias concerné</th>
74 <th>alias prémimé depuis</th>
77 {foreach from=$homonyms key=login item=row}
79 <td><strong>{$login}</strong></td>
80 <td>{if $row.0.expire eq '0000-00-00'}---{else}{$row.0.expire|date_format}{/if}</td>
83 {foreach from=$row item=user}
85 <td> {$user.forlife}</td>
88 <a href="profile/{$user.forlife}" class='popup2'>fiche</a>
89 <a href="admin/user/{$user.forlife}">edit</a>
96 {elseif $op eq 'mail-conf'}
98 <form method="post" action="admin/homonyms/mail/{$target}">
100 <table class="bicol">
102 <th>Envoyer un email pour prévenir l'utilisateur</th>
106 <textarea cols="80" rows="20" name="mailbody">{$warning_mail_text}</textarea>
111 <input type="submit" value="Envoyer" />
117 {elseif $op eq 'correct-conf'}
119 <form method="post" action="admin/homonyms/correct/{$target}">
121 <table class="bicol">
123 <th>Mettre en place le robot {$loginbis}@{$user->mainEmailDomain()}</th>
127 <textarea cols="80" rows="20" name="mailbody">{$robot_mail_text}</textarea>
132 <input type="submit" value="Envoyer et corriger" />
141 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}