Edit C:\Windows\install\galaxie_p02_26-09\common\mail\sendmail_annuaire.jsp
<% /****************************************************************************** * Copyright (c) 2000-2005 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. ******************************************************************************/ %><%@page session="true" %> <%@ page import="java.util.List" %> <%@ page import="java.util.Map" %> <%@ page import="java.util.Vector" %> <%@ page import="java.util.Hashtable" %> <%@ page import="java.util.Iterator" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.navigation.WebUtils"%> <%@ page import="com.edeal.frontline.DataDictionary"%> <jsp:useBean class="com.edeal.frontline.MessagesBean" id="Messages" scope="request"/> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String sfwID = flRequest.getRequestParameterOrAttribute("SfwID"); %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script type="text/javascript" src="<fl:webapp/>/js/edit_js.jsp"></script> <script type="text/javascript"> function doSend() { var f = document.forms[0]; if (f.MsgTo.value == '') { document.getElementById('MsgTo_msg').style.display = "inline"; alert('<fl:getMessage code="L810C" alt="Veuillez saisir un destinataire" js="true"/>'); f.MsgTo.focus(); } else if (f.MsgSubject.value == '') { document.getElementById('MsgSubject_msg').style.display = "inline"; alert('<fl:getMessage code="M6033" alt="Veuillez saisir un sujet" js="true"/>'); f.MsgSubject.focus(); } else if (isEmptyContents()) { alert('<fl:getMessage code="M9029" alt="Veuillez saisir un contenu pour le message" js="true"/>'); } else { sendMessage(); } } function sendMessage() { var f = document.forms[0]; var msgBody = encodeURI(getContents()); var msgContent = getContents(); var msgSubject = encodeURI(f.MsgSubject.value); var file = $("#ModelMsgAttID").val(); file += (file != "" ? "|" : "") + $("input[name='MsgAttID']").val(); var doc = $("#ModelMsgDocID").val(); doc += (doc != "" ? "|" : "") + $("input[name='MsgDocID']").val(); var fusionPdf = ""; var fusionWord = ""; var fields = {"MsgSubject" : msgSubject, "MsgBody" : msgBody, "MsgAttID" : file, "MsgDocID" : doc, "FusionPdf" : fusionPdf, "FusionWord" : fusionWord}; var jsondata = JSON.stringify(fields); $.openPopupLayer({ name: "WaitingPopup", width: "auto", height: "auto", url: "<fl:webapp/>/waiting_send_mail.fl", cache: false, success : function(result){ $.ajax({ data: jsondata, type: "POST", url: '<fl:webapp/>/send_mail_obj.fl?MsgTo=' + $("#MsgTo").val() + '&MsgCc=' + $("#MsgCc").val() + '&MsgCci=' + $("#MsgCci").val() + '&WithInter=' + $("#with_interaction").is(":checked"), timeout: 20000, contentType: "application/json;charset=utf-8", dataType: 'json', async: true, success: analyseResponse }); } }); } function analyseResponse(data) { if (data != null) { if (data.Status == "OK") { doClosePopUp(); window.setInterval("goBack();", 1000); } else { $("#waiting_popup").attr("src", "<fl:webapp/>/js/progressbar/images/failure.png"); $("#detail_popup").html(decodeURIComponent(data.Detail)); } $("#msg_popup").html(decodeURIComponent(data.Msg)); } else { $("#waiting_popup").attr("src", "<fl:webapp/>/js/progressbar/images/failure.png"); $("#detail_popup").html(decodeURIComponent(data.Detail)); } } function doOnLoad(){ load_ckeditor(); } function goBack(){ document.location = "<fl:link url="/annuaire.fl"/>"; } </script> <fl:bigTabs listTitle="" objectTitle="<%= Utils.getMessage(session, \"L30D8\", false, true, \"Envoyer un e-mail\") %>" ou=""> <div style="text-align: left"> <fl:form action="" bean="Messages" method="POST"> <input type="hidden" name="ModelMsgAttID" id="ModelMsgAttID" value=""/> <input type="hidden" name="ModelMsgDocID" id="ModelMsgDocID" value=""/> <input type="hidden" name="FusionWord" id="FusionWord" value=""/> <input type="hidden" name="FusionPdf" id="FusionPdf" value=""/> <fieldset> <legend align=top><fl:getMessage code="F6002" alt="Message"/></legend> <br/> <div id="message_modele" style="padding-left:5px"> <table> <tr> <td> <input type="checkbox" id="with_interaction" name="with_interaction"/><fl:getMessage code="L6039" alt="Créer interaction"/> </td> <td style="vertical-align: bottom;"> <a href="#" onclick="javascript:window.open('<fl:webapp/>/annuaire_select.fl?from=select' , 'AN', 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes,width=1000,height=700')"> <img title="<fl:getMessage code="A2003" alt="Sélectionner"/>" alt="<fl:getMessage code="A2003" alt="Sélectionner"/>" class="icon" src="<fl:webapp/>/icons/ico/rechercher.gif"/> </a> <fl:getMessage code="L0006" alt="Destinataires"/> </td> </tr> </table> </div> <div id="message_place" style="width: 99%;padding-left: 5px"> <table class="container" cellpadding="0"> <tr> <td colspan="5" class="titreFiche"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td> <div><label title="<fl:getMessage code="L8254" alt="À"/>" for="MsgTo" class="titreFiche"><fl:getMessage code="L8254" alt="À"/></label></div> </td> </tr> <tr class="fieldline"> <td> <div class="input text"> <input type="hidden" value="MsgTo" name="mandatory"/> <input type="hidden" value="Veuillez spécifier le destinataire du message." name="mandatory.MsgTo" id="mandatory.MsgTo"/> <input type="text" class="input text chpsTextObligatoire" maxlength="255" value="" name="MsgTo" id="MsgTo"/> <span style="display: none" class="mandatory_alert" id="MsgTo_msg">!</span></div> </td> </tr> <tr class="fieldline"> <td> <div><label title="Cc" for="MsgCc" class="titreFiche">Cc</label></div> </td> </tr> <tr class="fieldline"> <td> <div class="input text"> <input type="hidden" value="MsgCc"/> <input type="text" class="input text" maxlength="255" value="" name="MsgCc" id="MsgCc" /> </td> </tr> <tr class="fieldline"> <td> <div><label title="Cci" for="MsgCic" class="titreFiche">Cci</label></div> </td> </tr> <tr class="fieldline"> <td> <div class="input text"> <input type="hidden" value="MsgCci"/> <input type="text" class="input text" maxlength="255" value="" name="MsgCci" id="MsgCci"/> </td> </tr> <tr class="fieldline"> <td> <fl:label field="MsgSubject" labelClassName="titreFiche"/> </td> </tr> <tr class="fieldline"> <td> <fl:input property="MsgSubject" mandatoryMsgCode="M000C" /> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td colspan="5"></td></tr> <tr> <td class="titrePartie" colspan="5"><fl:label field="MsgBody"/></td> </tr> <tr> <td class="dataValue noPaddingLeft" colspan="5"><fl:input height="340px" property="MsgBody" nodiv="true"/></td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <fl:smallTabs name="AttachmentsTabs"> <fl:sTab id="files" title="<%= Utils.getMessage(session, \"L201C\", false, true, \"Documents joints\") %>"> <fl:attach name="Messages" colID="MsgAttID" edit="true"/> </fl:sTab> <fl:sTab id="docs" title="<%= Utils.getMessage(session, \"L813E\", false, true, \"Références documentaire\") %>"> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldEdit property="MsgDocID" name="Messages" query="DocIsWord=0|DocIsArchive=0"/> </table> </td> </tr> <tr class="fieldline"><td></td></tr> </table> </td> <td style="width:20px"></td> <td class="column2"></td> </tr> </table> </fl:sTab> </fl:smallTabs> </div> </fieldset> </fl:form> </div> </div> </fl:bigTabs> <!-- CKEditor --> <script type="text/javascript" src="<fl:webapp/>/js/wysiwyg/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="<fl:webapp/>/js/wysiwyg/ckeditor/adapters/jquery.js"></script> <script type="text/javascript"> var simpleLinkURL = ''; var simpleLinkText = ''; var desType = 'Solicitation'; var CKEditor_loaded = false; var editor; <% boolean hasFileStorageService = false; boolean hasUrlTrackingService = false; %> function load_ckeditor(){ var instance = CKEDITOR.instances['MsgBody']; if(instance) { CKEDITOR.remove(instance); } editor = CKEDITOR.replace('MsgBody', { <%if(hasFileStorageService){%> filebrowserImageBrowseUrl : '<fl:webapp/>/js/wysiwyg/filemanager/index.jsp', filebrowserWindowWidth : 1024, filebrowserWindowHeight : 400, <%}%> height : "330", resize_enabled : false, toolbar : [ ['Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Cut','Copy','Paste','Find','Replace','-','Outdent','Indent','-','Print'], '/', ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], [<%if(hasFileStorageService){%>'Image',<%}%>'Table','-','Link','Flash','Smiley','TextColor','BGColor','Source','-','FusionButton','SimpleLinkButton'<%if(hasUrlTrackingService){%>,'TrackingLinkButton','SnippetButton'<%}%>] ] }); CKEditor_loaded = true; CKEDITOR.on( 'dialogDefinition', function( ev ){ var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'image' ){ dialogDefinition.removeContents('advanced'); // Get a reference to the 'Image Info' tab. var infoTab = dialogDefinition.getContents('info'); // Remove unnecessary widgets from the 'Image Info' tab. infoTab.remove('txtHeight'); infoTab.remove('txtWidth'); infoTab.remove('txtBorder'); infoTab.remove('txtHSpace'); infoTab.remove('txtVSpace'); infoTab.remove('cmbAlign'); infoTab.remove('btnLockSizes');// infoTab.remove('btnResetSize'); infoTab.remove('previewImage'); infoTab.remove('ImagePreviewLoader'); infoTab.remove('ImagePreviewBox'); infoTab.remove('previewImage'); } }); CKEDITOR.on('pluginsLoaded', function( ev ){ }); } function insertContents(value){ editor.setData(value); } function getContents(){ return editor.getData(); } function isEmptyContents(){ var editor_val = editor.document.getBody().getText(); if (editor_val != '') { return false ; } return true ; } var fusionFieldPopUp; var snippetPopUp; </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de