Edit C:\galaxie\Back\galaxie\netbusiness\massemailing\read_action.jsp
<% /****************************************************************************** * Copyright (c) 2000-2011 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.*" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.*" %> <%@ page import="com.edeal.frontline.AccessControlManager" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.MassEmailingBean" id="MassEmailing" scope="request"/> <% 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; try { id = MassEmailing.getID(); } catch (Exception e) { id = null; } DataDictionary dico = context.getDataDictionary(); boolean isModifiable = true; try { String statusID = MassEmailing.getEmlStatus(); String code = dico.getRefCode("EmlStatus",statusID); if ("SENT".equals(code) || "RESENT".equals(code)) { isModifiable = false; } } catch(FieldNotInitializedException e) { } boolean isSent = false; try { String statusID = MassEmailing.getEmlStatus(); String code = dico.getRefCode("EmlStatus", statusID); if ("SENT".equals(code)) { isSent = true; } } catch(FieldNotInitializedException e) { } %> <script type="text/javascript" language="javascript"> function doDelete() { if (window.confirm('<fl:getMessage code="M2004" alt="Etes-vous sûr de vouloir supprimer?" js="true"/>') == true) { window.location = '<fl:link url="<%= \"/delete_massemailing.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>'; } } function doMailing() { window.open('<fl:webapp/>/massmailing_dialog.fl?id=<%= id %>', 'Envoi' , 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no,width=650,height=250'); } function doReMailing() { window.open('<fl:webapp/>/massmailing_dialog_resend.fl?id=<%= id %>', 'Renvoi' , 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no,width=650,height=250'); } function doTest() { window.open('<fl:webapp/>/massmailing_dialog.fl?id=<%= id %>&test=true', 'Envoi' , 'menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no,width=650,height=250'); } </script> <% if (isModifiable) { %> <fl:access name="MassEmailing" operation="edit"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/edit_massemailing.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="A0008" alt="Modifier"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <%} %> <fl:access name="MassEmailing" operation="edit"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/copy_massemailing.fl\" + ( id != null ? \"?id=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L610D" alt="Copier"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <fl:access name="MassEmailing" operation="delete"> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doDelete()"> <p class="actions_tabletext"><fl:getMessage code="A0007" alt="Supprimer"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> </fl:access> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doTest()"> <p class="actions_tabletext"><fl:getMessage code="A0009" alt="Tester"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <% if (isModifiable) { %> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doMailing()"> <p class="actions_tabletext"><fl:getMessage code="L60CC" alt="Envoyer"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <%} %> <% if (isSent) { %> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="javascript:doReMailing()"> <p class="actions_tabletext"><fl:getMessage code="L70D3" alt="Ré-envoyer"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td class="actions_tablecell_seperator"></td> <td class="actions_cell_right"></td> </tr> <tr> <td class="actions_cell_left"></td> <td> <div class="actions_tablecell_1"> <a href="<fl:link list="true" url="<%= \"/massemailing_stats_by_domain.fl\" + ( id != null ? \"?emlID=\" + id : \"\") %>"/>"> <p class="actions_tabletext"><fl:getMessage code="L8132" alt="Statistiques par domaine"/></p> </a> </div> </td> <td class="actions_cell_right"></td> </tr> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de