1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Page test</title>
<!-- TinyMCE -->
<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
editor_deselector : "mceNoEditor",
plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",
// Theme options
theme_advanced_buttons1 : "bold,italic,underline,link,unlink,forecolor,backcolor,fontselect,fontsizeselect",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "n",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "css/content.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "lists/template_list.js",
external_link_list_url : "lists/link_list.js",
external_image_list_url : "lists/image_list.js",
media_external_list_url : "lists/media_list.js",
// Style formats
style_formats : [
{title : 'Bold text', inline : 'b'},
{title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
{title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
{title : 'Example 1', inline : 'span', classes : 'example1'},
{title : 'Example 2', inline : 'span', classes : 'example2'},
{title : 'Table styles'},
{title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
],
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
</script>
<!-- /TinyMCE -->
</head>
<body>
<script type="text/javascript">
function ajout_mail(demande)
{
var rch = document.form_mail.select_mail.value;
var ou = document.form_mail.reception_mail.value.indexOf(rch);
switch (demande)
{
case "Ajouter":
if ( ou==-1 )
{
document.form_mail.reception_mail.value+=rch+"\r\n";
}
break;
case "Supprimer":
if ( ou>=0 )
{
document.form_mail.reception_mail.value=form_mail.reception_mail.value.substr(0,ou)+form_mail.reception_mail.value.substr(ou+rch.length+1);
}
break;
}
}
</script>
<form name="form_mail" action="ajout-affichage.php" method="post" enctype="multipart/form-data">
<select name="select_mail" multiple="multiple" style="height:167px">
<option value="un@mail.fr">un@mail.fr</option>
<option value="deux@mail.fr">deux@mail.fr</option>
<option value="trois@mail.fr">trois@mail.fr</option>
<option value="quatre@mail.fr">quatre@mail.fr</option>
<option value="cinq@mail.fr">cinq@mail.fr</option>
<option value="six@mail.fr">six@mail.fr</option>
<option value="sept@mail.fr">sept@mail.fr</option>
</select>
<textarea name="reception_mail" cols="50" rows="10"></textarea><br/><br/>
<input type="button" value="ajouter" onclick="ajout_mail('Ajouter');">
<input type="button" value="supprimer" onclick="ajout_mail('Supprimer');">
<input name="submit" type="submit" value="Valider" />
</form>
</body>
</html> |