Edit C:\galaxie\Back\galaxie\netbusiness\massemailing\snippet_popup.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" 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.EMailSnippetBean" %> <%@ page import="java.util.Map.Entry" %> <%@ page import="com.edeal.frontline.Utils" %> <%@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(); HashMap<String, Object> mapEMailSnippet = (HashMap<String, Object>)request.getAttribute("mapEMailSnippet"); %> <html> <head> <title><fl:getMessage code="L706A" alt="Snippet"/></title> <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:webapp/>/js/edeal/libraries/jquery/jquery.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/ajax.js"></script> <script language="javascript"> var contentSnippet = new Array(); <% if (!mapEMailSnippet.isEmpty() && mapEMailSnippet != null){ for (Entry<String, Object> currentEntry : mapEMailSnippet.entrySet()) { String id = currentEntry.getKey(); EMailSnippetBean eMailSnippet = (EMailSnippetBean)currentEntry.getValue(); %> contentSnippet["<%=id%>"]= "<%=Utils.encodeURIComponent(eMailSnippet.getEmtContent())%>"; <% } } %> function selectField(field, name, id) { var w = window.top.opener; w.insertSnippetName(name, id); } function add(){ var w = window.top.opener; var id = document.getElementById('snippet').options[document.getElementById('snippet').selectedIndex].getAttribute("id"); w.insertSnippet(contentSnippet[id]); } function addAndContinue() { add(); this.window.focus(); window.top.opener.blur(); } function closeWindow() { window.close(); } function addAndClose(){ add(); closeWindow(); } </script> </head> <body class="popup_body"> <div id="object_css" style="top: 0px; left: 0px; height: 90%; width: 100%;"> <form> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L7052\", false, true, \"Blocs html\") %>"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"><fl:label code="F2025" label="Nom" forInput="snippet_value"/></td> <td class="dataValue" id="snippet_value"> <div class="input select"> <select class="input select" name="snippet" id="snippet"> <% if (!mapEMailSnippet.isEmpty() && mapEMailSnippet != null){ for (Entry<String, Object> currentEntry : mapEMailSnippet.entrySet()) { String id = currentEntry.getKey(); EMailSnippetBean eMailSnippet = (EMailSnippetBean)currentEntry.getValue(); %><option id='<%=Utils.formatToWeb(eMailSnippet.getID(), false) %>'><%= Utils.formatToWeb(eMailSnippet.getEmtName(), false) %></option><% } } %> </select> </div> </td> </tr> </table> </fl:bigTabs> <table class="container" width="100%"> <tr class="fieldline"> <td colspan="3" style="text-align: center;"> <a href="javascript:addAndClose()" title="<fl:getMessage code="A2001" alt="Valider"/>"><img src="<fl:link url="/icons/ico/valid_green_long.gif"/>" ></a> <a href="javascript:addAndContinue()" title="<fl:getMessage code="A3069" alt="Valider et nouveau"/>"><img src="<fl:link url="/icons/ico/save_all_long.gif"/>" ></a> <a href="javascript:closeWindow();" title="<fl:getMessage code="A2002" alt="Annuler"/>"><img src="<fl:link url="/icons/ico/fermer_red_long.gif"/>"></a> </td> </tr> </table> </form> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de