Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\netbusiness\massemailing\read.jsp
<%@page import="com.edeal.frontline.controller.actions.GetSilhouetteFromEmailOrCookieAction"%><% /****************************************************************************** * 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 contentType="text/html; charset=UTF8" session="true"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.EnterpriseBean" %> <%@ page import="java.util.Date" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ page import="com.edeal.frontline.LocationBean" %> <%@ page import="com.edeal.frontline.SalesInvestBean" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.FlLocale" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.navigation.WebUtils" %> <%@ page import="java.util.*" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean class="com.edeal.frontline.MassEmailingBean" id="MassEmailing" scope="request"/> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <% 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; String strActID = (String)session.getAttribute("actorID"); try { id = MassEmailing.getID(); } catch (FieldNotInitializedException fnie) { } String emlTypeDst = null; try{ emlTypeDst =(String)MassEmailing.getEmlTypeDst(); } catch (Exception e) { } Integer emlDstType = null; try{ emlDstType =(Integer)MassEmailing.getEmlDstType(); } catch (Exception e) { } String emlSndType = null; try{ emlSndType =(String)MassEmailing.getProperty("EmlSndType"); } catch (Exception e) { } //EmlFltPopOp Règle population String emlFltPopOp = null; try{ emlFltPopOp =(String)MassEmailing.getEmlFltPopOp(); } catch (Exception e) { } //EmlFltReadMsgOp Règle suivi e-mailing String emlFltReadMsgOp = null; try{ emlFltReadMsgOp =(String)MassEmailing.getEmlFltReadMsgOp(); } catch (Exception e) { } //EmlFltLinkOp Règle suivi de liens String emlFltLinkOp = null; try{ emlFltLinkOp =(String)MassEmailing.getEmlFltLinkOp(); } catch (Exception e) { } //EmlFltSubsOp Règle abonnements String emlFltSubsOp = null; try{ emlFltSubsOp =(String)MassEmailing.getEmlFltSubsOp(); } catch (Exception e) { } //récupérer la langue en cours DataDictionary dico = context.getDataDictionary(); FlLocale locale = FlLocale.getInstance(session); String langageID = locale.getLanguageID(); //si la langue dans fllocal est null alors français pas defaut if(langageID == null) { try { langageID = dico.getRefIdByCode("Lna", "Val", "fr_FR"); } catch (Exception ex) { } } String sndQuery = "FldFobID<>null|FldObjID:ObjSql='Person'"; sndQuery = WebUtils.urlEncode(context, sndQuery); //code type de destination String codeDestPer = dico.getRefIdByCode("Mtd", "Te1", "PER"); String codeDestSil = dico.getRefIdByCode("Mtd", "Te1", "SIL"); String codeDestPerSil = dico.getRefIdByCode("Mtd", "Te1", "PERSIL"); Boolean isFax = false, isEMail = false, isSMS = false; try { String emlType = (String)dico.getRefDisp(session, "Mty", "Te2", (String)MassEmailing.getEmlType()); isFax = emlType.equals("FAX"); isSMS = emlType.equals("SMS"); isEMail = emlType.equals("EMAIL"); } catch (Exception e) { } %> <!--[if !IE]><!--> <style> .fieldset { -moz-border-radius:8px; -webkit-border-radius:8px; border-radius:8px; } </style> <!--<![endif]--> <style> .msgBody { border: 1px solid #006699; height:400px; overflow: auto; } .msgSubject { border: 1px solid #006699; min-height:18px; } .monitoring { max-height:400px; overflow: auto; } .legend { padding: 0.2em 0.5em; /*display: block;*/ font-size: 1em; font-weight: bold; color: black; } .language_without_message { filter:alpha(opacity=20); -moz-opacity:0.2; -khtml-opacity: 0.2; opacity: 0.2; } .language_current { border:2px solid black; } .language_current_without_message { border:2px solid black; filter:alpha(opacity=20); -moz-opacity:0.2; -khtml-opacity: 0.2; opacity: 0.2; } </style> <script language="javascript"> function doMassMailingRedirect(rdChoice) { var urlRedirect = "<fl:link url="/massmailing_resend.fl" list="true" menu="true"/>&id=<%= id %>&process=" + rdChoice; window.location.href = urlRedirect; } function displayDelTempPopBgStatus(json,el) { globalBackgoundStatusDisplayFunction(json,el); refreshEmailingPopulations(); } function refreshEmailingPopulations() { _grid__EML_POP_js_.render("PopMassEmailingID",'<%= id %>'); } var ajaxLoad = '<table style="width:100%; height:100%"><tr><td style="vertical-align:middle;text-align: center;"><span style="color: #777777; font-size: 11px; font-family : Arial,Verdana,sans-serif;"><img src="<fl:link url="/icons/chargement.gif"/>" alt="<fl:getMessage code="L639B" alt="Chargement ..."/>"/></span></td></tr></table>'; function changeLanguage(codeLanguage){ loadMessage(codeLanguage); setLangageID(codeLanguage); } function loadMessage(codeLanguage){ $.getJSON("<fl:webapp/>/get_message_content.fl?id=<%= id%>&langageID="+ codeLanguage, function(result) { contentBody = result.msgBody != "" ? decodeURIComponent(result.msgBody) : '<fl:getMessage code="L7067" alt="Aucun message associé à cette langue" js="true"/>'; contentBodyText = result.msgBodyText != "" ? decodeURIComponent(result.msgBodyText) : '<fl:getMessage code="L7067" alt="Aucun message associé à cette langue" js="true"/>'; msgSubject = result.msgSubject != "" ? decodeURIComponent(result.msgSubject) : ""; $("#MsgSubject").html(msgSubject); $("#MsgBody").html(contentBody); $("#MsgBodyText").html(contentBodyText); loadLanguage(); loadAttachments(result.msgID); }); } function loadAttachments(msgID) { var ajaxURL = "<fl:webapp/>/get_attachement_div.fl?messageID="+msgID+"&edit=false"; $("#div_attachement").html(ajaxLoad); doAjax(ajaxURL, attachmentsCallBack); } function attachmentsCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#div_attachement").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } function loadLanguage() { var ajaxURL = '<fl:webapp/>/get_language_div.fl?id=<%= id%>&languageID='+$("#langageID").val(); doAjax(ajaxURL, languageCallBack); } function languageCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#td_language").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } function setLangageID(lngID){ $("#langageID").val(lngID); } function loadLinksList(){ var ajaxURL = '<fl:webapp/>/read_massemailing_links.fl?id=<%= id%>'; doAjax(ajaxURL, linksListCallBack); } function linksListCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#div_monitoring").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } function loadStatistics() { var ajaxURL = '<fl:webapp/>/get_massemailing_stats.fl?id=<%= id%>'; $("#tr_statistics").html(ajaxLoad); doAjax(ajaxURL, statisticsCallBack); } function statisticsCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#tr_statistics").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } </script> <input type="hidden" name="langageID" id="langageID" value="<%=langageID%>"> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"F7033\", \"MassEmailing\") %>" listTitle="<%= Utils.getMessage(session, \"F7033\", \"MassEmailing\") %>" ou="<%= \"/read_massemailing.fl?id=\" + MassEmailing.getID() %>"> <table class="container" cellpadding="0" cellspacing="0"> <tr> <td colspan="5" class="titreFiche"><fl:getProperty name="MassEmailing" property="EmlName" alt="" /></td> </tr> <tr class="ligne_separation"><td colspan="5"></td></tr> <tr><td colspan="5" class="ligne_separation"/></tr> <tr> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="EmlCode"/> <fl:fieldRead property="EmlRegroupement"/> <fl:fieldRead property="EmlType"/> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="data_column" cellpadding="0"> <fl:fieldRead property="EmlStatus"/> <fl:fieldRead property="EmlOwner" bean="true" href="true" disp="/read_actor.fl"/> </table> </td> </tr> </table> <link href="<fl:webapp/>/css/smalltabs_css.jsp" rel="stylesheet" type="text/css"> <fl:smallTabs name="MassMailingTabs"> <fl:sTab id="RECIPIENTS" title="<%= Utils.getMessage(session, \"L0006\", \"Destinataires\") %>"> <table class="container" cellpadding="0"> <tr class="fieldline"> <%-- Bloc 1 : Destinataires --%> <%--<fl:fieldRead property="EmlTypeDst"/>--%> <td class="column2"> <fieldset class="fieldset"> <legend class="legend"><fl:getMessage code="L7017" alt="Choisir les destinataires"/></legend> <table class="container" cellpadding="0"> <%-- Ciblages --%> <% if ((emlDstType != null) && (emlDstType == 0)) { %> <tr class="ligne_separation"><td colspan="0"></td></tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsciblages" class="fieldset"> <legend class="legend"><fl:getMessage code="L6036" alt="Ciblages"/></legend><br> <div id="div_ciblages"> <table class="container" cellpadding="0"> <fl:fieldRead property="EmlDstSelPer" bean="true" href="true" disp="/read_selection2.fl"/> <fl:fieldRead property="EmlDstSelSil" bean="true" href="true" disp="/read_selection2.fl"/> </table> <span style="font-size: 11px; font-family : Arial,Verdana,sans-serif; font-style:italic"><fl:getMessage code="L7011" alt="Cible générée lors de l\'envoi"/></span> </div> </fieldset> </td> </tr> <% } else if ((emlDstType != null) && (emlDstType == 1)) { %> <%-- Populations --%> <tr class="ligne_separation"><td colspan="0"></td></tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fspopulations" class="fieldset"> <legend class="legend"><fl:getMessage code="L6037" alt="Populations"/></legend><br> <table class="container" cellpadding="0"> <fl:fieldRead property="EmlDstPopPer" bean="true" href="true" disp="/read_populationv2.fl"> <fl:fieldBackgroundAction ajaxAction="refresh_population_ajax.fl" iconUrl="/icons/ico/refresh.gif" labelCode="refresh"/> </fl:fieldRead> <fl:fieldRead property="EmlDstPopSil" bean="true" href="true" disp="/read_populationv2.fl"> <fl:fieldBackgroundAction ajaxAction="refresh_population_ajax.fl" iconUrl="/icons/ico/refresh.gif" labelCode="refresh"/> </fl:fieldRead> </table> <span style="font-size: 11px; font-family : Arial,Verdana,sans-serif; font-style:italic"><fl:getMessage code="L7016" alt="Cible générée lors de la sélection"/></span> </fieldset> </td> </tr> <% } else if ((emlDstType != null) && (emlDstType == 2)) { %> <%-- Abonnements --%> <tr class="ligne_separation"><td colspan="0"></td></tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsabonnements" class="fieldset"> <legend class="legend"><fl:getMessage code="L65E8" alt="Abonnements"/></legend><br> <table class="container" cellpadding="0"> <fl:fieldRead property="EmlDstSubsPer"/> <fl:fieldRead property="EmlDstSubsSil"/> </table> <span style="font-size: 11px; font-family : Arial,Verdana,sans-serif; font-style:italic"><fl:getMessage code="L7011" alt="Cible générée lors de l\'envoi"/></span> </fieldset> </td> </tr> <% } else if ((emlDstType != null) && (emlDstType == 3)) { %> <%-- Toute la base --%> <tr><td colspan="0" class="ligne_separation"/></tr> <tr class="fieldline"> <td class="column2"> <fieldset id="fsbase" class="fieldset"> <legend class="legend"><fl:getMessage code="L7012" alt="Toute la base"/></legend><br> <table class="container" cellpadding="0"> <fl:fieldRead property="EmlDstAllPer" valueCodeIfTrue="L2005" valueCodeIfFalse="L2006"/> <fl:fieldRead property="EmlDstAllSil" valueCodeIfTrue="L2005" valueCodeIfFalse="L2006"/> </table> <span style="font-size: 11px; font-family : Arial,Verdana,sans-serif; font-style:italic"><fl:getMessage code="L7011" alt="Cible générée lors de l\'envoi"/></span> </fieldset> </td> </tr> <% } %> </table> </fieldset> </td> <td class="separation"><div class="separation"></div></td> <%-- Bloc 2 : Filtrage supplémentaire --%> <td class="column2"> <fieldset class="fieldset"> <legend class="legend"><fl:getMessage code="L7018" alt="Choisir un filtrage supplémentaire"/></legend> <table class="container" cellpadding="0"> <%-- Règle population --%> <% if (emlFltPopOp != null) { %> <tr class="ligne_separation"><td colspan="0"></td></tr> <tr class="fieldline"> <td class="column2"> <fieldset class="fieldset"> <legend class="legend"><fl:getMessage code="F7034" alt="Règle population"/></legend><br> <table class="container" cellpadding="0"> <fl:fieldRead property="EmlFltPopOp"/> <fl:fieldRead property="EmlFltPopPer" bean="true" href="true" disp="/read_populationv2.fl"/> <fl:fieldRead property="EmlFltPopSil" bean="true" href="true" disp="/read_populationv2.fl"/> </table> </fieldset> </td> </tr> <%-- Règle suivi emailing --%> <% } else if (emlFltReadMsgOp != null) { %> <tr><td colspan="0" class="ligne_separation"/></tr> <tr class="fieldline"> <td class="column2"> <fieldset class="fieldset" > <legend class="legend"><fl:getMessage code="L7013" alt="Règle suivi emailing"/></legend><br> <table class="container" cellpadding="0"> <fl:fieldRead property="EmlFltReadMsgOp"/> <fl:fieldRead property="EmlFltReadEmlID" bean="true" href="true" disp="/read_massemailing.fl"/> </table> </fieldset> </td> </tr> <%-- Règle suivi de liens --%> <% } else if (emlFltLinkOp != null) { %> <tr><td colspan="0" class="ligne_separation"/></tr> <tr class="fieldline"> <td class="column2"> <fieldset class="fieldset"> <legend class="legend"><fl:getMessage code="L7014" alt="Règle suivi de liens"/></legend><br> <table class="container" cellpadding="0"> <fl:fieldRead property="EmlFltLinkOp"/> <fl:fieldRead property="EmlFltLinkEmlID" bean="true" href="true" disp="/read_massemailing.fl"/> <fl:fieldRead property="EmlFltLinkElnID" bean="true"/> </table> </fieldset> </td> </tr> <%-- Règle abonnements --%> <% } else if (emlFltSubsOp != null) { %> <tr><td colspan="0" class="ligne_separation"/></tr> <tr class="fieldline"> <td class="column2"> <fieldset class="fieldset"> <legend class="legend"><fl:getMessage code="L7015" alt="Règle abonnements"/></legend><br> <table class="container" cellpadding="0"> <fl:fieldRead property="EmlFltSubsOp"/> <fl:fieldRead property="EmlFltSubs"/> </table> </fieldset> </td> </tr> <% } else { %> <fl:getMessage code="L70CA" alt="pas de filtrage"/> <% } %> </table> </fieldset> </td> </tr> </table> </fl:sTab> <fl:sTab id="MESSAGE" title="<%= Utils.getMessage(session, \"F6002\", \"Message\") %>" onselect="javascript:loadMessage($('#langageID').val());"> <table cellpadding="0" width="100%" height="100%"> <tr> <td width="25%"></td> <td width="25%"></td> <td width="25%"></td> <td width="25%" id="td_language"> </td> </tr> <tr class="ligne_separation"><td colspan="0"></td></tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td class="titrePartie"><fl:label field="MsgSubject"/></td> </tr> <tr> <td class="dataValue"><div id="MsgSubject" class="msgSubject"><fl:getMessage code="L639B" alt="Chargement ..."/></div></td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td ><fl:label field="MsgBody"/></td> </tr> <tr> <td><div id="MsgBody" class="msgBody"></div></td> </tr> <tr class="ligne_separation"><td></td></tr> <tr <%= isEMail ? "" : "style='display:none;'" %>> <td ><fl:label field="MsgBodyText"/></td> </tr> <tr <%= isEMail ? "" : "style='display:none;'" %>> <td><div id="MsgBodyText" class="msgBody"></div></td> </tr> <tr class="ligne_separation"><td></td></tr> </table> <div id="div_attachement"> </div> </fl:sTab> <fl:sTab id="SENDING" title="<%= Utils.getMessage(session, \"L700F\", \"Envoi\") %>"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2" colspan="2"> <fieldset class="fieldset"> <legend class="legend"><fl:getMessage code="L7036" alt="Expéditeur"/></legend><br> <table class="container" cellpadding="0"> <% if (emlSndType != null && emlSndType.equals("variable")) { %> <tr class="fieldline"> <td class="column2" colspan="2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"> <fl:getMessage code="L7038" alt="variable"/> </td> <td class="dataValue"> <fl:getProperty name="MassEmailing" property="EmlSndFldID" alt="" bean="true"/> </td> </tr> </table> </td> </tr> <tr class="fieldline"> <td class="column2" colspan="2"> <span style="font-size: 11px; font-family : Arial,Verdana,sans-serif; font-style:italic"><fl:getMessage code="L7035" alt="sans gestion des retours en erreur"/></span> </td> </tr> <% } %> <tr class="fieldline"> <td class="column2" colspan="2"> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="dataLabel"> <fl:getMessage code="L7039" alt="fixe"/> </td> <td class="dataValue"> <fl:getProperty name="MassEmailing" property="EmlSndEnsID" alt="" bean="true" href="true" disp="/read_emailsender.fl"/> </td> </tr> </table> </td> </tr> <tr class="fieldline"> <td class="column2" colspan="2"> <span style="font-size: 11px; font-family : Arial,Verdana,sans-serif; font-style:italic"> <% if ("variable".equals(emlSndType)) { %> <fl:getMessage code="L70C4" alt="Utilisé dans le cas d'une valeur vide pour l'expéditeur variable"/> <% } else { %> <fl:getMessage code="L7034" alt="Avec gestion des retours en erreur"/> <% } %> </span> </td> </tr> </table> </fieldset> </td> </tr> <tr class="fieldline"> <td class="column2" colspan="2"> <fieldset class="fieldset"> <legend class="legend"><fl:getMessage code="L7037" alt="Règle adresse email"/></legend><br> <table class="container" cellpadding="0"> <tr class="fieldline"> <td class="column2"> <fl:fieldRead property="EmlExcBlackList" valueCodeIfTrue="L2005" valueCodeIfFalse="L2006"/> <fl:fieldRead property="EmlExclWrongEmail" valueCodeIfTrue="L2005" valueCodeIfFalse="L2006"/> </td> </tr> <tr class="fieldline"> <td class="dataLabel"> <fl:getMessage code="L7040" alt="envoyer en priorité à"/> </td> <td class="dataValue"> <fl:getProperty name="MassEmailing" property="EmlMailSendField" alt="" bean="true" postText="<br>"/> </td> </tr> </table> </fieldset> </td> </tr> </table> </td> <td class="separation"><div class="separation"></div></td> <td class="column2"> <table class="container" cellpadding="0"> <fl:fieldRead property="EmlSndTestGrp" bean="true" href="true" disp="/read_populationv2.fl"/> <fl:fieldRead property="EmlSndDate"/> <fl:fieldRead property="EmlResend" valueCodeIfTrue="L2005" valueCodeIfFalse="L2006"/> <fl:fieldRead property="EmlReSndDate"/> <fl:fieldRead property="EmlSndEosID" bean="true" href="true" disp="/read_emailoutserver.fl"/> </table> </td> </tr> </table> </fl:sTab> <% if (isEMail) { %> <fl:sTab id="MONITORING" title="<%= Utils.getMessage(session, \"L7010\", \"Suivi\") %>" onselect="javascript:loadLinksList();"> <div id="div_monitoring" class="monitoring"><table style="width:100%; height:100%"><tr><td style="vertical-align:middle;text-align: center;"><span style="color: #777777; font-size: 11px; font-family : Arial,Verdana,sans-serif;"><img src="<fl:link url="/icons/chargement.gif"/>" alt="<fl:getMessage code="L639B" alt="Chargement ..."/>"/></span></td></tr></table></div> </fl:sTab> <% } %> <fl:sTab id="STATISTICS" title="<%= Utils.getMessage(session, \"L60FE\", \"Statistiques\") %>" onselect="javascript:loadStatistics();"> <table class="container" cellpadding="0"> <tr><td id="tr_statistics" colspan="4"></td></tr> </table> </fl:sTab> <fl:sTab id="POPULATIONS" title="<%= Utils.getMessage(session, \"L6037\", \"Populations\") %>" onselect="refreshEmailingPopulations()"> <fl:grid name="EML_POP" ajaxUrl="/embedded_list_ajax.fl"/> <% String delUrl="/massmailing_delete_temp_population_ajax.fl?_value="+id; %> <div class="infobar_table_text" style=""> <a href="javascript:doCallBackgroundAjaxAction('DeleteTempPop','<fl:link url="<%= delUrl %>"/>',false,displayDelTempPopBgStatus)"/><fl:getMessage code="L70B7" alt="Supprimer populations temporaires"/></a><div id="bgstatusDeleteTempPop"></div> </div> </fl:sTab> </fl:smallTabs> </fl:bigTabs>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de