<% /****************************************************************************** * 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 import="com.edeal.frontline.navigation.FlRequest" %><%@ page import="com.edeal.frontline.*" %><%@ page import="com.edeal.frontline.FlContext" %><%@ page import="com.edeal.frontline.FieldNotInitializedException" %><%@ page import="com.edeal.frontline.Utils" %><%@ page import="com.edeal.frontline.ObjectsBean" %><%@ page import="com.edeal.frontline.MessagesBean" %><%@ page import="java.util.*" %><%@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 id = null; try { id = Messages.getID(); } catch (FieldNotInitializedException fnie) { } String pCode = flRequest.getParameter("code"); String pCty = flRequest.getParameter("cty"); String pNext = flRequest.getParameter("next"); String pTarget = flRequest.getParameter("target"); String pObject = flRequest.getParameter("object"); MessagesBean obj = (MessagesBean)request.getAttribute("Messages"); if (pObject != null && !"".equals(pObject)) { obj.setMsgObjID(pObject); } try { String cty = dico.getRefCode("MsgCtyID", obj.getMsgCtyID()); if("MIME".equalsIgnoreCase(cty)) { Utils.forward(request, response, "/read_message.fl" + (id == null ? "" : "?id=" + id)); } } catch (Exception ex) { } String[] objFields = { "ObjID", "ObjDisplay", "ObjSql" }; String[][] objQuery = {{ "ObjSql in (" + Utils.formatToSQL(context, "Person") + ", " + Utils.formatToSQL(context, "Solicitation") + ", " + Utils.formatToSQL(context, "Journalist") + ", " + Utils.formatToSQL(context, "Silhouette") + ", " + Utils.formatToSQL(context, "Actor") + ")" }}; String[] objOrderBy = { "ObjDisplay" }; Vector objList; try { objList = ObjectsBean.listSummary(session, objFields, objQuery, objOrderBy); } catch (FrontlineException e) { objList = new Vector(); } %>  
<% if (pCode != null) { %> <% } %> " objectTitle="<%= Utils.getMessage(session, \"F6002\", \"Message\") %>" ou="<%= \"/edit_messages.fl\" + (id != null ? \"?id=\" + id : \"\") %>">
<% if(pCty != null) { String ctyID = dico.getRefIdByCode("MsgCtyID", pCty); %> <%= dico.getRefDisp(session, "MsgCtyID", ctyID) %><% } else { %> <% } %>
<% if (objList != null && objList.size() > 0) { %> <% } %>