Edit C:\galaxie\Back\galaxie\netbusiness\messages\wysiwyg.jsp
<jsp:directive.page import="java.net.URLEncoder" /><% /****************************************************************************** * Copyright (c) 2000-2013 E-DEAL * * E-DEAL S.A. * 41, rue Périer * 92120 Montrouge * France * * T: +33 (0)1 73 03 29 80 * 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="com.edeal.frontline.*" %> <%@ page import="java.util.*" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.services.FlServiceException" %> <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(); String id = null; try { id = Messages.getMsgID(); } catch(FieldNotInitializedException e) { id = ""; } String pID = flRequest.getRequestParameterOrAttribute("destID"); String pTyp = flRequest.getRequestParameterOrAttribute("ObjSql"); String pObjID = flRequest.getRequestParameterOrAttribute("ObjID"); String pMail = flRequest.getRequestParameterOrAttribute("email"); String createInt = flRequest.getRequestParameterOrAttribute("createInt"); String url = "/send_mail_messages.fl?id=" + id + "&ObjSql=" + pTyp + "&destID=" + pID + "&email=" + pMail + "&createInt=" + createInt + "&ObjID=" + pObjID; boolean hasFileStorageService; try { context.getServiceManager().getServiceClient("FileStorage"); hasFileStorageService = true; } catch(FlServiceException e) { hasFileStorageService = false; } boolean hasUrlTrackingService; try { context.getServiceManager().getServiceClient("UrlTracking"); hasUrlTrackingService = true; } catch(FlServiceException e) { hasUrlTrackingService = false; } %> <html> <head> <title> </title> <style type="text/css"> .div_body { font-size: small; color: #000000; font-family: Arial, Verdana, sans-serif; margin-bottom:0; margin-left:0; margin-right:0; margin-top:0; background-color: rgb(255, 242, 239); background-image: url(<fl:link url="/icons/nav/fd_page.jpg"/>); background-repeat: repeat-x; background-attachment: scroll; -x-background-x-position: 0%; -x-background-y-position: 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; border: none; height:100%; width:100% } </style> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <link rel="stylesheet" href="<fl:webapp/>/css/master_css.jsp" type="text/css"> <script type="text/javascript" src="<fl:link url="/js/edeal/libraries/jquery/jquery.js"/>"></script> <script type="text/javascript" src="<fl:link url="/js/ajax/ajax.js"/>"></script> <script type="text/javascript" src="<fl:link url="/js/utils.js"/>"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <script language="javascript"> function doSend(id) { var url = "<fl:webapp/>/send_mail_messages.fl?ObjSql=<%= Utils.formatToJavascript(pTyp) %>&destID=<%= Utils.formatToJavascript(pID) %>&email=" + encodeURIComponent('<%= pMail %>') + "&createInt=<%=createInt%>&ObjID=<%= Utils.formatToJavascript(pObjID) %>"; window.location = url; } function doSubmit() { f = document.forms[0]; if (f.MsgSubject.value == ''){ alert('<fl:getMessage code="M6033" alt="Veuillez saisir un sujet."/>'); } else { f.submit(); return true; } } </script> </head> <body> <div class="div_body"> <table> <tr><td height="10px"></td></tr> </table> <fl:form action="<%= url %>" bean="Messages" method="POST"> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L30D8\", false, true, \"Envoyer un e-mail\") %>"> <table width="100%"> <tr> <td colspan="3"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="labelTitreFiche"> <fl:label field="MsgSubject" labelClassName="titreFiche"/> </td> <td class="fieldTitreFiche"> <fl:input property="MsgSubject" mandatoryMsgCode="M000C" /> </td> </tr> </table> </td> </tr> <tr class="ligne_separation" ><td colspan="3"></td></tr> <tr> <td class="titrePartie" colspan="3"><fl:label field="MsgBody"/></td> </tr> <tr> <td class="dataValue noPaddingLeft" colspan="3"><fl:input height="340px" property="MsgBody" nodiv="true"/></td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <table class="container" cellpadding="0"> <tr> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td> <fl:attach name="Messages" colID="MsgAttID" edit="true"/> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <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> </tr> </table> </fl:bigTabs> </fl:form> <table class="container"> <tr class="fieldline"> <td style="width: 100%; text-align: center" colspan="3"> <a title="<fl:getMessage code="L60CC" alt="Envoyer"/>" href="javascript:doSubmit()"><img src="<fl:webapp/>/icons/ico/valid_green_long.gif"></a> <a href="javascript:window.top.close();"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif"></a> </td> </tr> </table> </div> <!-- 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 = '<%= pTyp %>'; var editor = CKEDITOR.replace('MsgBody', { <% if(hasFileStorageService) { %> filebrowserImageBrowseUrl : '<fl:webapp/>/js/wysiwyg/filemanager/index.jsp', filebrowserWindowWidth : 1024, filebrowserWindowHeight : 400, resize_enabled : false, height : "330", <% } %> 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.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'); } }); editor.on('pluginsLoaded', function( ev ){ //Fusion button editor.addCommand('fusionCommand', { exec : function(editor) { getFusionField(); } }); editor.ui.addButton('FusionButton', { label : '<fl:getMessage code="F7066" alt="Fusion" js="true"/>', command : 'fusionCommand', icon: '<fl:webapp/>/icons/fusion.gif' }); }); function insertFusionField(sqlName, lbl, id){ var value = '<span id="' + id + '" title="' + sqlName + '" ed:fusionfield="' + sqlName + '">$$' + lbl + '$$</span> '; if ( editor.mode == 'wysiwyg' ){ editor.insertHtml(value); } if (fusionFieldPopUp != null) { window.setTimeout("fusionFieldPopUp.focus()",400); } } 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 ; //return ( ("" == getContents()) || ('<br />\n' == getContents()) || ('<br />' == getContents())); } var fusionFieldPopUp; var snippetPopUp; function getFusionField() { if (desType != '') { fusionFieldPopUp = window.open('<fl:link list="false" url="/fusion_popup.fl"/>&destype=' + desType, '<fl:getMessage code="F7066" alt="Fusion"/>', 'toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, directories=no, status=no, width=600, height=320'); } else { alert('<fl:getMessage code="M6056" alt="Veuillez choisir un objet" js="true"/>'); } } </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de