Happy New Year!
[platal.git] / templates / marketing / promo.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2014 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 <form action="marketing/promo/" method="post" onsubmit="this.action += this.promo.value">
24   <div class="center">
25     Promo&nbsp;:<input type="text" name="promo" value="{$promo}" size="5" maxlength="12" /><input type="submit" value="GO" />
26   </div>
27 </form>
28
29 <br />
30
31 <div class="center">
32   <a href="javascript:void(window.open('stats/promos/{$promo}','','width=800,height=600,toolbar=no'))">
33     Voir l'évolution des inscriptions de la promotion
34   </a>
35 </div>
36
37 <br />
38
39 <form action="marketing/promo" method="post">
40   <table class="bicol" summary="liste des inscriptions non confirmées">
41     <tr>
42       <th>Nom</th>
43       <th>Dernière adresse connue</th>
44       <th>Statut</th>
45       <th>&nbsp;</th>
46     </tr>
47     {foreach from=$nonins item=it}
48     <tr class="{cycle values="pair,impair"}">
49       <td>{profile user=$it}</td>
50       <td>{if $it->lastKnownEmail()}{mailto address=$it->lastKnownEmail()}{/if}</td>
51       <td class="center">
52         {if $it->pendingRegistrationDate() > $it->lastMarketingDate()}
53         En cours&nbsp;: {$it->pendingRegistrationEmail()}
54         {elseif $it->lastMarketingDate() && $it->lastMarketingDate() != '0000-00-00'}
55         Relance le&nbsp;: {$it->lastMarketingDate()}
56         {else}
57         -
58         {/if}
59       </td>
60       <td class="center">
61         <a href="marketing/private/{$it->id()}">{icon name=wrench title="Marketing"}</a>
62         <a href="profile/ax/{$it->login()}">{icon name=user_gray title="fiche AX"}</a>
63       </td>
64     </tr>
65     {/foreach}
66   </table>
67 </form>
68
69 <p>
70 {$nonins|@count} Polytechniciens de la promo {$promo} ne sont pas inscrits&nbsp;!
71 </p>
72
73
74 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}