first reimport from platal
[platal.git] / templates / marketing / private.tpl
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>Marketing de {$prenom} {$nom}</h1>
25
26 <h2>Matricules</h2>
27
28 Matricule polytechnique.org : {$matricule}
29 {if $matricule_X}
30 <br />
31 Matricule &Eacute;cole (à rentrer lors de l'inscription) : <strong>{$matricule_X}</strong>
32 {/if}
33
34 {if $pending}
35
36 <h2>Inscription en cours</h2>
37
38 <p>
39 Cet utilisateur a une inscription en cours depuis le {$pending|date_format}.
40 </p>
41 <p>
42 {if $relance eq '0000-00-00'}
43 il n'a jamais été relancé.
44 {else}
45 sa dernière relance date du {$relance|date_format}
46 {/if}
47 </p>
48
49 <p>[<a href='?uid={$smarty.request.uid}relance=1'>le relancer</a>]</p>
50
51 {/if}
52
53 <h2>Adresses connues</h2>
54
55 <form action="{$smarty.request.PHP_SELF}" method="post">
56 <table class="bicol" cellpadding="0" cellspacing="0">
57   <tr>
58     <th>Adresse</th>
59     <th>Marketeur</th>
60     <th>Date</th>
61     <th>Envois</th>
62     <th>Nb.</th>
63     <th>&nbsp;</th>
64   </tr>
65   {iterate from=$addr item=a}
66   <tr class="{cycle values='impair,pair'}">
67     <td>{$a.email}</td>
68     <td><a href="{rel}/fiche.php?user={$a.alias}" class="popup2">{$a.alias}</a> {if $a.type eq user}(*){/if}</td>
69     <td>{$a.date|date_format|default:'-'}</td>
70     <td>{$a.last|date_format|default:'-'}</td>
71     <td class='center'>{$a.nb|default:"-"}</td>
72     <td class='action'>
73       <a href='?uid={$smarty.request.uid}&amp;del={$a.email}'>del</a><br />
74       <a href='?uid={$smarty.request.uid}&amp;rel={$a.email}'>relance</a>
75     </td>
76   </tr>
77   {/iterate}
78   <tr>
79     <td></td>
80     <td colspan='5' class='smaller'>(*): mail perso</td>
81   </tr>
82   <tr>
83     <td>
84       <input type='text' name='email' />
85     </td>
86     <td colspan="4">
87       <select name="type">
88         <option value="staff">staff</option>
89         <option value="user">user</option>
90       </select>
91     </td>
92     <td class='action'>
93       <input type='hidden' name='uid' value='{$smarty.request.uid}' />
94       <input type='submit' name='action' value='ajouter' />
95     </td>
96   </tr>
97 </table>
98 </form>
99
100 {if $rel_to}
101 <form action="{$smarty.request.PHP_SELF}" method="post">
102   <table class="bicol">
103     <tr class="pair">
104       <th colspan="2">Edition du mail de relance</th>
105     </tr>
106     <tr class="pair">
107       <td align="right"><strong>From:</strong></td>
108       <td><select name="from">
109         <option value="staff">{$rel_from_staff}</option>
110         <option value="user">{$rel_from_user}</option>
111       </select></td>
112     </tr>
113     <tr class="pair">
114       <td align="right"><strong>To:</strong></td>
115       <td>
116         <input type="text" value="{$rel_to}" name="to" size="40" maxlength="100" />
117         <input type="submit" name="valider" value="Envoyer" />
118       </td>
119     </tr>
120     <tr class="pair">
121       <td align="right"><strong>Objet:</strong></td>
122       <td><input type="text" name="title" value="{$rel_title}" size="50" maxlength="100" /></td>
123     </tr>
124     <tr class="pair">
125       <td align="right"><strong>Message:</strong></td>
126       <td>
127         <textarea name="message" rows="40" cols="60">{$rel_text}</textarea>
128       </td>
129     </tr>
130   </table>
131   <div class="center">
132     <input type="hidden" name="uid" value="{$smarty.request.uid}" />
133     <input type="hidden" name="email" value="{$smarty.request.rel}" />
134     <input type="reset" value="Recommencer" />
135     <input type="submit" name="valider" value="Envoyer" />
136   </div>
137 </form>
138 {/if}
139
140 {* vim:set et sw=2 sts=2 sws=2: *}