<% /****************************************************************************** * 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"%> <%@page 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="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.SilhouetteBean" %> <%@ page import="com.edeal.frontline.PersonBean" %> <%@ page import="java.util.Vector" %> <%@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(); String SfwID = flRequest.getRequestParameterOrAttribute("SfwID"); String id = null; try { id = EMailing.getID(); } catch (FieldNotInitializedException e) { } String[] ctlFields = {"CivID:Val", "FstName", "Name", "Mail"}; boolean showDate = false; try { EMailing.getEmaSentDate(); showDate = true; } catch (FieldNotInitializedException e) { } %> " objectTitle="<%= Utils.getMessage(session, \"L643E\", false, true, \"Fiche Emailing\") %>" ou="<%= \"/read_emailing.fl\" + (id != null ? \"?id=\" + id : \"\") %>">
<% if (showDate) { %> <% } %>
')">
<% try { EMailing.getEmaSender(); %>"><% } catch (FieldNotInitializedException ex) { %><% } %>
<% try { EMailing.getEmaReplyTo(); %>"><% } catch (FieldNotInitializedException ex) { %><% } %>
">
"/>
<% try { Vector vectID = EMailing.getEmaHtmlCtlGrpID(); for(int i = 0; i < vectID.size(); i++) { Vector usr = Utils.explodeList((String)vectID.elementAt(i), ":"); String usrID = (String)usr.elementAt(0); String usrType = (String)usr.elementAt(1); String usrName = ""; boolean isPerson = "Person".equals(usrType); String radical = isPerson ? "Per" : "Sil"; String[] fields = new String[ctlFields.length]; for(int j = 0; j < ctlFields.length; j++) { fields[j] = radical + ctlFields[j]; } String[][] query = {{radical + "ID = " + Utils.formatToSQL(context, usrID)}}; Hashtable usrVal = (Hashtable)(isPerson ? PersonBean.listSummary(session, fields, query, 0, 1) : SilhouetteBean.listSummary(session, fields, query, 0, 1)).firstElement(); for(int j = 0; j < fields.length - 1; j++) { usrName += (usrVal.get(fields[j]) == null ? "" : (String)usrVal.get(fields[j]) + " "); } usrName = usrName.trim(); if(usrName.equals("")) { usrName = (String)usrVal.get(fields[fields.length - 1]); } else { String usrMail = (String)usrVal.get(fields[fields.length - 1]); if(usrMail != null) { usrName += " <" + usrMail + ">"; } } String strLink = ""; if (isPerson){ strLink = "/read_person.fl?id="+usrID; }else { strLink = "/read_silhouette.fl?id="+usrID; } %> <%= Utils.formatToWeb(usrName, false) %>
<% } } catch (Exception ex) { } %>
"> ">
<% String fldsql = "EmaNbStatus"; String statusEmsCode = null; Vector statusEmsLibele = new Vector(7); for ( int i=-1; i<6 ;i++){ statusEmsCode = "ST" + i; //logger.info("StatusCode :!!!!!!!!!!!" + statusEmsCode); try { statusEmsLibele.addElement((String) dico.getRefDisp(session, "Ste" , "Te1" , dico.getRefIdByCode("Ste", "Te1", statusEmsCode))); } catch (Exception ex) {} //logger.info("Status libelé :!!!!!!!!!!!!!" + statusEmsLibele.get(i+1)); if (i == -1){ String store=(String)statusEmsLibele.get(i+1); %> <%}else {%> <% } } %>
">
">