Edit C:\galaxie\Back\galaxie\netbusiness\mailcustomization\edit.jsp
<% /****************************************************************************** * Copyright (c) 2000-2010 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" import="com.edeal.frontline.*"%> <%@page import="java.util.*" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.SalesInvestBean" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.services.FlServiceException" %> <%@ page import="com.edeal.frontline.BasicBean" %> <jsp:useBean class="com.edeal.frontline.MailCustomizationBean" id="MailCustomization" 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(); Vector lngRefs = new Vector(); lngRefs = dico.getRefList(session, "Lna", "Te1"); String lngID = flRequest.getRequestParameterOrAttribute("McsLng"); if(lngID == null) { Vector lngs = (Vector)lngRefs.get(0); lngID = (String)lngs.get(0); } session.setAttribute("McsLng",lngID); boolean hasFileStorageService; try{ context.getServiceManager().getServiceClient("FileStorage"); hasFileStorageService = true; }catch(FlServiceException e){ hasFileStorageService = false; } String sfwID = flRequest.getRequestParameterOrAttribute("SfwID"); %> <script language="javascript"> function doReload(){ var lng = $("#McsLng option:selected").attr("value"); document.location="<fl:webapp/>/edit_mailcustomization.fl?McsLng="+lng+"&SfwID=<%=sfwID%>"; } </script> <script type="text/javascript" src="<fl:webapp/>/js/wysiwyg/ckeditor/ckeditor.js"></script> <fl:form action="/save_mailcustomization.fl" bean="MailCustomization"> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"FXXX\", \"Emailing Customization\") %>"> <table class="container" cellpadding="0"> <tr> <td> <table class="container" cellpadding="0"> <tr> <td class="dataLabel"> <fl:label field="Cs_Lng"/> </td> <td class="dataValue"> <select class="input select" name="McsLng" id="McsLng" onchange="javascript:doReload();"> <%for(int i = 0; i<lngRefs.size(); i++){ Vector lng = (Vector)lngRefs.get(i); String newLngID = (String)lng.get(0); %> <option <%if(newLngID.equals(lngID)){%><%=" selected=\"\" "%><%} %> value="<%=lng.get(0)%>"><%=lng.get(1)%></option> <%} %> </select> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td> <table class="container" cellpadding="0"> <tr> <td class="dataLabel"> <fl:label field="McsIPExclusion"/> (Ex: 127.0.0.1-127.0.0.10) </td> <td class="dataValue"> <fl:input property="McsIPExclusion"/> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td> <table class="container" cellpadding="0"> <fl:fieldEdit property="McsLogo"/> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td> <table class="container" cellpadding="0"> <tr> <td class="dataLabel" colspan="5"> <fl:label field="McsSubHTML"/> ($Logo$, $Civ$, $FstName$, $PerName$, $Company$, $E-mail$, $NewsLetter$) </td> </tr> <tr> <td class="column2" colspan="5"> <fl:input height="200px" nodiv="true" property="McsSubHTML"/> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td> <table class="container" cellpadding="0"> <tr> <td class="dataLabel" colspan="5"> <fl:label field="McsSubConfHTML"/> ($Logo$, $E-mail$, $NewsLetter$) </td> </tr> <tr> <td class="column2" colspan="5"> <fl:input height="200px" nodiv="true" property="McsSubConfHTML"/> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td> <table class="container" cellpadding="0"> <tr> <td class="dataLabel" colspan="5"> <fl:label field="McsSubConfMAIL"/> ($Link$) </td> </tr> <tr> <td class="column2" colspan="5"> <fl:input height="200px" nodiv="true" property="McsSubConfMAIL"/> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td> <table class="container" cellpadding="0"> <tr> <td class="dataLabel" colspan="5"> <fl:label field="McsUnSubHTML"/> ($Logo$, $E-mail$, $NewsLetter$) </td> </tr> <tr> <td class="column2" colspan="5"> <fl:input height="200px" nodiv="true" property="McsUnSubHTML"/> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td> <table class="container" cellpadding="0"> <tr> <td class="dataLabel" colspan="5"> <fl:label field="McsNoMailHTML"/> ($Logo$, $E-mail$) </td> </tr> <tr> <td class="column2" colspan="5"> <fl:input height="200px" nodiv="true" property="McsNoMailHTML"/> </td> </tr> </table> </td> </tr> <tr class="ligne_separation"><td></td></tr> <tr class="ligne_separation_couleur"><td></td></tr> <tr class="ligne_separation"><td></td></tr> <tr> <td> <table class="container" cellpadding="0"> <tr> <td class="dataLabel" colspan="5"> <fl:label field="McsGlblMsg"/> ($Logo$) </td> </tr> <tr> <td class="column2" colspan="5"> <fl:input height="200px" nodiv="true" property="McsGlblMsg"/> </td> </tr> </table> </td> </tr> </table> </fl:bigTabs> </fl:form> <script type="text/javascript"> CKEDITOR.replace('McsSubHTML', { toolbar : [ ['Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Outdent','Indent'], ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], [<%if(hasFileStorageService){%>'Image',<%}%>'Table','-','Link','TextColor','BGColor','Source'] ], toolbarStartupExpanded : false, resize_enabled : false }); CKEDITOR.replace('McsSubConfHTML', { toolbar : [ ['Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Outdent','Indent'], ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], [<%if(hasFileStorageService){%>'Image',<%}%>'Table','-','Link','TextColor','BGColor','Source'] ], toolbarStartupExpanded : false, resize_enabled : false }); CKEDITOR.replace('McsSubConfMAIL', { toolbar : [ ['Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Outdent','Indent'], ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], [<%if(hasFileStorageService){%>'Image',<%}%>'Table','-','Link','TextColor','BGColor','Source'] ], toolbarStartupExpanded : false, resize_enabled : false }); CKEDITOR.replace('McsUnSubHTML', { toolbar : [ ['Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Outdent','Indent'], ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], [<%if(hasFileStorageService){%>'Image',<%}%>'Table','-','Link','TextColor','BGColor','Source'] ], toolbarStartupExpanded : false, resize_enabled : false }); CKEDITOR.replace('McsNoMailHTML', { toolbar : [ ['Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Outdent','Indent'], ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], [<%if(hasFileStorageService){%>'Image',<%}%>'Table','-','Link','TextColor','BGColor','Source'] ], toolbarStartupExpanded : false, resize_enabled : false }); CKEDITOR.replace('McsGlblMsg', { toolbar : [ ['Format','Font','FontSize','-','Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Outdent','Indent'], ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'], [<%if(hasFileStorageService){%>'Image',<%}%>'Table','-','Link','TextColor','BGColor','Source'] ], toolbarStartupExpanded : false, resize_enabled : false }); </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de