+ <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 t($smarty.request.to_contacts) && in_array($contact->hrpid,$smarty.request.to_contacts)}
+ <option value="{$contact->hrpid}">
+ {$contact->full_name}
+ </option>
+ {assign var="to_not_empty" value="true"}
+ {/if}
+ {/foreach}
+ {if !$to_not_empty}
+ {* HTML compatibility *}
+ <option value=""> </option>
+ {/if}
+ </select>
+ {if !$to_not_empty}
+ {/if}
+ <br />
+ <select id="cc_contacts" name="cc_contacts[]" multiple="multiple" style="width: 100%; height: 5em">
+ {foreach key=key item=contact from=$contacts}
+ {if t($smarty.request.cc_contacts) && in_array($contact->hrpid,$smarty.request.cc_contacts)}
+ <option value="{$contact->hrpid}">
+ {$contact->full_name}
+ </option>
+ {assign var="cc_not_empty" value="true"}
+ {/if}
+ {/foreach}
+ {if !$cc_not_empty}
+ {* HTML compatibility *}
+ <option value=""> </option>
+ {/if}
+ </select>
+ </div>
+ <div style="width: 19%; text-align: center; height: 8em; float: right;">
+ <div style="height: 4em">
+ Destinataires<br />
+ <a href="emails/send/addTo" onclick="addTo(); return false" style="text-decoration: none">>> >></a><br />
+ <a href="emails/send/removeTo" onclick="removeTo(); return false" style="text-decoration: none"><< <<</a>
+ </div>
+ <div style="height: 4em">
+ En copie<br />
+ <a href="emails/send/addCc" onclick="addCc(); return false" style="text-decoration: none">>> >></a><br />
+ <a href="emails/send/removeCc" 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 !(isset($smarty.request.to_contacts|smarty:nodefaults) && isset($smarty.request.cc_contacts|smarty:nodefaults)) ||
+ (!in_array($contact->hrpid,$smarty.request.to_contacts) && !in_array($contact->hrpid,$smarty.request.cc_contacts))}
+ <option value="{$contact->hrpid}">
+ {$contact->full_name}
+ </option>
+ {/if}
+ {/foreach}
+ </select>
+ </div>
+ </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><label><input type="checkbox" name="nowiki" value="1" {if $smarty.request.nowiki}checked="checked"{/if} onchange="updateWikiView(this);" />
+ coche cette case pour envoyer l'email en texte brut, sans formattage</label></small>
+ </div>
+ <div id="preview">
+ <div id="preview_pv" style="display: none">
+ <strong>Aperçu de l'email :</strong>
+ <div id="mail_preview">
+ </div>
+ <div class="center">
+ <input type="submit" name="submit" value="Envoyer" />
+ </div>
+ </div>
+ <div class="center">
+ <input type="submit" name="preview" id="preview_bt_top" value="Aperçu"
+ onclick="previewWiki('mail_text', 'mail_preview', true, 'preview_pv'); return false;" />
+ </div>
+ </div>
+ <textarea name='contenu' rows="30" cols="75" id="mail_text" onkeyup="keepAuth()">