+ <tr>
+ <td colspan="2" style="padding: 4px">
+ <div style="float: right; width: 40%;">
+ <select id="to_contacts" name="to_contacts[]" multiple="multiple" style="width: 100%; height: 5em">
+ {foreach key=key item=contact from=$contacts}
+ {if in_array($contact.forlife, $smarty.request.to_contacts)}
+ <option value="{$contact.forlife}">
+ {$contact.prenom} {$contact.nom} (X{$contact.promo})
+ </option>
+ {/if}
+ {/foreach}
+ </select><br />
+ <select id="cc_contacts" name="cc_contacts[]" multiple="multiple" style="width: 100%; height: 5em">
+ {foreach key=key item=contact from=$contacts}
+ {if in_array($contact.forlife, $smarty.request.cc_contacts)}
+ <option value="{$contact.forlife}">
+ {$contact.prenom} {$contact.nom} (X{$contact.promo})
+ </option>
+ {/if}
+ {/foreach}
+ </select>
+ </div>
+ <div style="width: 19%; text-align: center; height: 8em; float: right;">
+ <div style="height: 4em">
+ Destinataires<br />
+ <a href="" onclick="addTo(); return false" style="text-decoration: none">>> >></a><br />
+ <a href="" onclick="removeTo(); return false" style="text-decoration: none"><< <<</a>
+ </div>
+ <div style="height: 4em">
+ En copie<br />
+ <a href="" onclick="addCc(); return false" style="text-decoration: none">>> >></a><br />
+ <a href="" onclick="removeCc(); return false" style="text-decoration: none"><< <<</a>
+ </div>
+ </div>
+ <div style="float: right; width: 40%">
+ <select id="contacts" name="all_contacts[]" multiple="multiple" style="height: 10em; width: 100%">
+ {foreach item=contact from=$contacts}
+ {if !in_array($contact.forlife, $smarty.request.to_contacts) && !in_array($contact.forlife, $smarty.request.cc_contacts)}
+ <option value="{$contact.forlife}">
+ {$contact.prenom} {$contact.nom} (X{$contact.promo})
+ </option>
+ {/if}
+ {/foreach}
+ </select>
+ </div>
+ {foreach item=contact from=$contacts}
+ <input type="hidden" name="contacts[{$contact.forlife}]" value="{$contact.prenom} {$contact.nom} <{$contact.forlife}@{#globals.mail.domain#}>" />
+ {/foreach}
+ </td>
+ </tr>
+ {/if}
+ </table>
+ <fieldset>
+ <legend>Sujet : <input type='text' name='sujet' size='60' value="{$smarty.request.sujet}" /></legend>
+ <div class="center">
+ Tu peux utiliser des <a href="wiki_help" class="popup3">{icon name=information title="Syntaxe wiki"} marqueurs wiki</a> pour formatter ton texte.<br />
+ <small><input type="checkbox" name="nowiki" value="1" {if $smarty.request.nowiki}checked="checked"{/if} onchange="updateWikiView(this);" />
+ coche cette case pour envoyer le mail en texte brut, sans formattage</small>
+ </div>
+ <div id="preview" style="display: none">
+ <strong>Aperçu du mail :</strong>
+ <div id="mail_preview">
+ </div>
+ <div class="center">
+ <input type="submit" name="submit" value="Envoyer" />
+ </div>
+ </div>
+ <textarea name='contenu' rows="30" cols="75" id="mail_text">