<%@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(); DataDictionary dico = context.getDataDictionary(); //list des entreprises String entCorpName = null; entCorpName = Utils.getRequestParameter(context,request,"EntCorpName"); String[] fields = new String[]{"EntID","EntCorpName","EntAd1","EntAd2","EntAd3","EntZip","EntCity","EntCtrID","EntCtrID:Val","EntPhone","EntWeb"}; Vector list = new Vector(); if(entCorpName != null && !entCorpName.trim().equals("")){ if(Utils.getMessage(session, "LFFFF", true, "").equals(entCorpName.trim())){ try{ list = EnterpriseBean.listSummary(session,fields,new String[]{"EntCorpName","EntCity"}); }catch(Exception e){ list = new Vector(); } } else { String[][] query = new String[][]{{"EntCorpName like '"+entCorpName.trim()+"%'"},{"EntAcronym like '"+entCorpName.trim()+"%'"}}; try{ list = EnterpriseBean.listSummary(session,fields,query,new String[]{"EntCorpName","EntCity"}); }catch(Exception e){ list = new Vector(); } } } %> <fl:getMessage code="L30A2" alt="Liste des entreprises"/>
   
">
<% if(list != null && !list.isEmpty()){ for(int i=0; i < list.size(); i++){ Hashtable row = (Hashtable)list.elementAt(i); String entAd1 = (String)row.get("EntAd1"); String entAd2 = (String)row.get("EntAd2"); String entAd3 = (String)row.get("EntAd3"); String EntZip = (String)row.get("EntZip"); String entCity = (String)row.get("EntCity"); String entCtrID = (String) row.get("EntCtrID:Val"); String entPhone = (String)row.get("EntPhone"); String entWeb = (String)row.get("EntWeb"); if (entWeb != null && !entWeb.startsWith("http://") && !entWeb.startsWith("https://")) { entWeb = "http://"+entWeb; } boolean hasZipCity = (EntZip != null) || (entCity != null); %> <% } } else if (entCorpName != null && entCorpName.trim().equals("")) { %> <% } else if (entCorpName != null) { %> <% } %>