bug 334, interface pour ajouter plusieurs x dans un groupe
[platal.git] / templates / admin / homonymes.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
3{* Copyright (C) 2003-2004 Polytechnique.org *}
4{* http://opensource.polytechnique.org/ *}
5{* *}
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. *}
10{* *}
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. *}
15{* *}
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 *}
20{* *}
21{**************************************************************************}
22
23
24<h1>
25 Gestion des homonymes
26</h1>
27
28
29{if $op eq 'mail'}
30<p class="erreur">mail envoyé à {$forlife}</p>
31{elseif $op eq 'correct'}
32<p class="erreur">mail envoyé à {$forlife}, alias supprimé</p>
33{/if}
34
35{if $op eq 'list' || $op eq 'mail' || $op eq 'correct'}
36
37<p>
38 Les utilisateurs signalés en rouge sont ceux qui conservent actuellement
39 l'alias prenom.nom et empêchent donc la mise en place du robot détrompeur.
40</p>
41
42<table class="bicol">
43 <tr>
44 <th>alias concerné</th>
45 <th>date de péremption de l'alias</th>
46 <th>op</th>
47 </tr>
48 {foreach from=$hnymes key=login item=row}
49 <tr class="pair">
50 <td colspan="3">
51 <strong>{$login}</strong>
52 </td>
53 </tr>
54 {foreach from=$row item=user}
55 <tr class="impair">
56 <td>&nbsp;&nbsp;
57 {if $user.type eq 'alias'}
58 <span class="erreur"><strong>{$user.forlife}</strong></span>
59 {else}
60 {$user.forlife}
61 {/if}
62 </td>
63 <td>{$user.expire|date_format}</td>
64 <td>
65 <a href="{"fiche.php"|url}?user={$user.forlife}" class='popup2'>fiche</a>
66 <a href="utilisateurs.php?login={$user.forlife}">edit</a>
67 {if $user.type eq 'alias'}
68 <a href="?op=mail-conf&amp;target={$user.user_id}">mailer</a>
69 <a href="?op=correct-conf&amp;target={$user.user_id}">corriger</a>
70 {/if}
71 </td>
72 </tr>
73 {/foreach}
74 {/foreach}
75</table>
76
77{elseif $op eq 'mail-conf'}
78
79<form method="post" action="{$smarty.server.PHP_SELF}">
80 <table class="bicol">
81 <tr>
82 <th>Envoyer un mail pour prévenir l'utilisateur</th>
83 </tr>
84 <tr>
85 <td>
86 <textarea cols="80" rows="20" name="mailbody">
87{$prenom},
88
89
90Comme nous t'en avons informé par mail il y a quelques temps,
91pour respecter nos engagements en terme d'adresses e-mail devinables,
92tu te verras bientôt retirer l'alias {$loginbis}@polytechnique.org pour
93ne garder que {$forlife}@polytechnique.org.
94
95Toute personne qui écrira à {$loginbis}@polytechnique.org recevra la
96réponse d'un robot qui l'informera que {$loginbis}@polytechnique.org
97est ambigu pour des raisons d'homonymie et signalera ton email exact.
98
99L'équipe Polytechnique.org
100{$baseurl}
101 </textarea>
102 </td>
103 </tr>
104 <tr>
105 <td>
106 <input type="hidden" name="target" value="{$target}" />
107 <input type="hidden" name="op" value="mail" />
108 <input type="submit" value="Envoyer" />
109 </td>
110 </tr>
111 </table>
112</form>
113
114{elseif $op eq 'correct-conf'}
115
116<form method="post" action="{$smarty.server.PHP_SELF}">
117 <table class="bicol">
118 <tr>
119 <th>Mettre en place le robot {$loginbis}@polytechnique.org</th>
120 </tr>
121 <tr>
122 <td>
123 <textarea cols="80" rows="20" name="mailbody">
124{$prenom},
125
126Comme nous t'en avons informé par mail il y a quelques temps,
127nous t'avons retiré de façon définitive l'adresse
128{$loginbis}@polytechnique.org.
129
130Toute personne qui écrit à {$loginbis}@polytechnique.org reçoit la
131réponse d'un robot qui l'informe que {$loginbis}@polytechnique.org
132est ambigu pour des raisons d'homonymie et signale ton email exact
133
134Tu peux faire l'essai toi-même en écrivant à {$loginbis}@polytechnique.org.
135
136L'équipe Polytechnique.org
137{$baseurl}
138 </textarea>
139 </td>
140 </tr>
141 <tr>
142 <td>
143 <input type="hidden" name="target" value="{$target}" />
144 <input type="hidden" name="op" value="correct" />
145 <input type="submit" value="Envoyer et corriger" />
146 </td>
147 </tr>
148 </table>
149</form>
150
151{/if}
152
153
154{* vim:set et sw=2 sts=2 sws=2: *}