Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\edealMobile\enterprise\list.jsp
<%@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"%> <jsp:useBean class="com.edeal.frontline.EnterpriseBean" id="Enterprise" scope="request"/> <% 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, "<RS>").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(); } } } %> <HTML> <HEAD> <title><fl:getMessage code="L30A2" alt="Liste des entreprises"/></title> <LINK href="<fl:webapp/>/edealMobile/css/css.css" rel="stylesheet" type="text/css"> <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> </HEAD> <BODY> <jsp:include page="/edealMobile/menu.jsp"> <jsp:param name="URLDISP" value="ENTLIST"/> </jsp:include> <DIV class="action-bar" style="margin-bottom: 10px;"> <a href="<fl:webapp/>/listm_person.fl"><fl:getMessage code="S0003" alt="Personnes"/></a> <span class="label" style="font-size: 80%;"><fl:getMessage code="L30F8" alt="Entreprises"/></span> <a href="<fl:webapp/>/listm_actor.fl"><fl:getMessage code="L607C" alt="Acteurs"/></a> </DIV> <DIV> <form method="GET" action="<fl:webapp/>/listm_enterprise.fl"> <table border="0" cellpadding="0" > <tr> <td class="criteria"> <input type="text" name="EntCorpName" value="<%= entCorpName != null && !"".equals(entCorpName.trim()) ? Utils.formatToWeb(entCorpName,false) : ""%>"> <input type="submit" value="Go !"> </td> </tr> </table> </form> </DIV> <% 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); %> <div class="resultset"> <table border="0" cellpadding="0" cellspacing="0"> <TR valign="top"> <td> <a href="<fl:webapp/>/readm_enterprise.fl?id=<%=(String)row.get("EntID")%>" class="box-title"> <span> <%= Utils.formatToWeb((String)row.get("EntCorpName"),false) %> <%= hasZipCity ? "(" : ""%><%= EntZip != null ? Utils.formatToWeb(EntZip,false)+ " " : ""%><%= entCity != null ? Utils.formatToWeb(entCity,false) : ""%><%= hasZipCity ? ")" : ""%> </span> </a> </td> </TR> </table> </DIV> <% } } else if (entCorpName != null && entCorpName.trim().equals("")) { %> <fl:getMessage code="M6154" alt="Merci de remplir le critère."/> <% } else if (entCorpName != null) { %> <fl:getMessage code="L104B" alt="Aucune entrée"/> <% } %> <jsp:include page="/edealMobile/footer.jsp"/> </BODY> </HTML>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de