%@page session="true" import="com.edeal.frontline.*,java.util.*"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@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); String contextPath = (String) session.getAttribute("contextPath"); FlContext context = null; if (contextPath!=null) { context = Frontline.getContext(contextPath); } else { context = Frontline.getContext(request.getContextPath()); } String forwardPage = (String)flRequest.getAttribute("forwardPage"); if(forwardPage == null) forwardPage = flRequest.getParameter("forwardPage"); String actorID = (String)session.getAttribute("actorID"); //list des acteurs String actName = null; actName = flRequest.getParameter("ActName"); Vector list = new Vector(); if (actName != null) { if (Utils.getMessage(session,"L2040",true, "").equals(actName.trim())){ try{ list = ActorBean.listSummary(session,new String[]{"ActFstName","ActName","ActPhone","ActMobile","ActMail","ActID"},new String[][]{{"ActName <> 'Anonymous'","ActName <> 'System'"}},new String[]{"ActName","ActFstName"}); }catch(Exception e){ list = new Vector(); } }else { try{ list = ActorBean.listSummary(session,new String[]{"ActFstName","ActName","ActPhone","ActMobile","ActMail","ActID"},new String[][]{{"ActName like '"+actName.trim()+"%'","ActName <> 'Anonymous'","ActName <> 'System'"},{"ActFstName like '"+actName.trim()+"%'","ActName <> 'Anonymous'","ActName <> 'System'"}},new String[]{"ActName","ActFstName"}); }catch(Exception e){ list = new Vector(); } } } %> "> <% if(list != null && !list.isEmpty()){ for(int i=0; i < list.size(); i++){ Hashtable row = (Hashtable)list.elementAt(i); String actID = (String) row.get("ActID"); String fstname = (String) row.get("ActFstName"); String name = (String) row.get("ActName") ; String phone = (String) row.get("ActPhone"); String mobile = (String) row.get("ActMobile"); String mail = (String) row.get("ActMail"); String function = (String) row.get("ActFunction"); %> <%= fstname != null ? Utils.formatToWeb(fstname,false)+" " : "" %> <%= name !=null ? Utils.formatToWeb(name,false) : "" %> <%= function != null ? Utils.formatToWeb(function,false) + "" : ""%> <% } } else if (actName != null) { %> <% } %>