1 {**************************************************************************}
3 {* Copyright (C) 2003-2006 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 <form action="{rel}/{$platal->path}" method="post">
26 <th colspan="2">Contenu du message</th>
29 <td><strong>Titre</strong></td>
31 <input type="text" name="titre" size="50" maxlength="200" value="{$titre}" />
35 <td><strong>Texte</strong></td>
36 <td><textarea name="texte" rows="10" cols="60" onfocus="update_texte_count(this.form)">{$texte}</textarea></td>
40 <script type="text/javascript">
41 var form_propose_texte = false;
43 function update_texte_count(f) {
44 if (!form_propose_texte && f) form_propose_texte = f;
45 form_propose_texte.texte_count.value=form_propose_texte.texte.value.length;
46 setTimeout("update_texte_count(0)", 100);
50 Essaie de faire un texte court, une annonce ne doit pas excéder 800 caractères soit une douzaine de ligne. Tu en es déjà à <input type='text' name='texte_count' size="4"/> caractères.</td>
56 <th colspan="2">Informations complémentaires</th>
60 <strong>Promo min *</strong> (incluse)
63 <input type="text" name="promo_min" size="4" maxlength="4" value="{$promo_min}" />
64 <em>0 signifie pas de minimum</em>
69 <strong>Promo max *</strong> (incluse)
72 <input type="text" name="promo_max" size="4" maxlength="4" value="{$promo_max}" />
73 <em>0 signifie pas de maximum</em>
78 * sert à limiter l'affichage de l'annonce aux camarades appartenant à certaines promos seulement.
83 <strong>Dernier jour d'affichage</strong>
86 <select name="peremption">
87 {$select|smarty:nodefaults}
94 <input type="hidden" name="evt_id" value="{$smarty.post.evt_id}" />
95 <input type="submit" name="action" value="Proposer" />
100 {* vim:set et sw=2 sts=2 sws=2: *}