%@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); FlContext context = flRequest.getContext(); 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 && !actName.trim().equals("")) { 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 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"); String actID = (String) row.get("ActID"); %> <%= fstname != null ? Utils.formatToWeb(fstname,false)+" " : "" %> <%= name !=null ? Utils.formatToWeb(name,false) : "" %> <% } } else if (actName != null && actName.trim().equals("")) { %> <% } else if (actName != null) { %> <% } %>