| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2006 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 | <h1>Edition de message</h1> |
| 24 | |
| 25 | <form action="{$platal->pl_self()}" method="post"> |
| 26 | {if $am} |
| 27 | {include file="axletter/letter.tpl"} |
| 28 | |
| 29 | <p class="center"> |
| 30 | <input type="hidden" name="id" value="{$id}" /> |
| 31 | <input type="hidden" name="old_shortname" value="{$shortname}" /> |
| 32 | <input type="hidden" name="saved" value="{$saved}" /> |
| 33 | {if $echeance} |
| 34 | <input type="hidden" name="echeance" value="{$echeance}" /> |
| 35 | {/if} |
| 36 | {if !$new} |
| 37 | <input type="submit" name="valid" value="Confirmer" /> |
| 38 | {/if} |
| 39 | </p> |
| 40 | {/if} |
| 41 | |
| 42 | <fieldset> |
| 43 | <legend>Sujet du mail : <input type="text" name="subject" value="{$subject}" size="60"/></legend> |
| 44 | <p class="center"> |
| 45 | <a href="wiki_help" class="popup3"> |
| 46 | {icon name=information title="Syntaxe wiki"} Voir les marqueurs de mise en forme autorisés |
| 47 | </a><br /> |
| 48 | <strong>Titre : </strong><input type="text" name="title" value="{$title}" size="60" /><br /> |
| 49 | <textarea name="body" rows="30" cols="78">{$body}</textarea><br /> |
| 50 | <strong>Signature : </strong><input type="text" name="signature" value="{$signature}" size="60" /> |
| 51 | </p> |
| 52 | </fieldset> |
| 53 | |
| 54 | <table class="bicol"> |
| 55 | <tr> |
| 56 | <th colspan="2">Options du message</th> |
| 57 | </tr> |
| 58 | <tr> |
| 59 | <td class="titre">Nom raccourci</td> |
| 60 | <td> |
| 61 | <input type="text" name="shortname" value="{$shortname}" size="16" maxlength="16" /> |
| 62 | <span class="smaller">(uniquement lettres, chiffres ou -)</span> |
| 63 | </td> |
| 64 | </tr> |
| 65 | {include file="include/field.promo.tpl" prefix=""} |
| 66 | {if !$saved} |
| 67 | <tr> |
| 68 | <td class="titre">Echéance d'envoi</td> |
| 69 | <td> |
| 70 | le {valid_date name="echeance_date" value=$echeance_date from=3 to=15} |
| 71 | vers <select name="echeance_time">{$echeance_time|smarty:nodefaults}</select> |
| 72 | </td> |
| 73 | </tr> |
| 74 | {else} |
| 75 | <tr> |
| 76 | <td colspan="2" class="center"> |
| 77 | Envoi au plus tard le {$echeance|date_format:"%x vers %Hh"}<br /> |
| 78 | {if $is_xorg} |
| 79 | [<a href="ax/edit/valid" onclick="return confirm('Es-tu sûr de voiloir valider l\'envoi de ce message ?');">{* |
| 80 | *}{icon name=thumb_up} Valider l'envoi</a>] |
| 81 | {else} |
| 82 | [<a href="ax/edit/cancel" onclick="return confirm('Es-tu sûr de vouloir annuler l\'envoi de ce message ?');">{* |
| 83 | *}{icon name=thumb_down} Annuler l'envoi</a>] |
| 84 | {/if} |
| 85 | </td> |
| 86 | </tr> |
| 87 | {/if} |
| 88 | </table> |
| 89 | |
| 90 | <p class="center"> |
| 91 | <input type="hidden" name="id" value="{$id}" /> |
| 92 | <input type="hidden" name="old_shortname" value="{$shortname}" /> |
| 93 | <input type="hidden" name="saved" value="{$saved}" /> |
| 94 | {if $echeance} |
| 95 | <input type="hidden" name="echeance" value="{$echeance}" /> |
| 96 | {/if} |
| 97 | <input type="submit" name="valid" value="Aperçu" /> |
| 98 | {if !$new} |
| 99 | <input type="submit" name="valid" value="Confirmer" /> |
| 100 | {/if} |
| 101 | </p> |
| 102 | </form> |
| 103 | |
| 104 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |