Edit C:\galaxie\deploy\Tomcat6\webapps\galaxie\edealMobile\person\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.PersonBean" id="Person" 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(); String perName = null; perName = Utils.getRequestParameter(context,request,"PerName"); String[] fields = new String[]{"PerID","PerFstName","PerName","PerPhone","PerMobile","PerMail","PerFctID","PerEntID","PerEntID:EntCorpName","PerEntID:EntAd1","PerEntID:EntAd2","PerEntID:EntAd3","PerEntID:EntZip","PerEntID:EntCity","PerEntID:EntCtrID:Val"}; Vector list = new Vector(); if(perName != null && !perName.trim().equals("")){ if(Utils.getMessage(session, "L2040", true, "<Nom>").equals(perName.trim())){ try{ list = PersonBean.listSummary(session,fields,new String[]{"PerName","PerFstName"}); }catch(Exception e){ list = new Vector(); } }else{ String[][] query = {{"PerName like '"+perName.trim()+"%'"},{"PerFstName like '"+perName.trim()+"%'"}}; try{ list = PersonBean.listSummary(session,fields,query,new String[]{"PerName","PerFstName"}); }catch(Exception e){ list = new Vector(); } } } %> <HTML> <HEAD> <title><fl:getMessage code="L63C2" alt="Liste des personnes"/></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="PERLIST"/> </jsp:include> <DIV class="action-bar" style="margin-bottom: 10px;"> <span class="label" style="font-size: 80%;"><fl:getMessage code="S0003" alt="Personnes"/></span> <a href="<fl:webapp/>/listm_enterprise.fl"><fl:getMessage code="L30F8" alt="Entreprises"/></a> <a href="<fl:webapp/>/listm_actor.fl"><fl:getMessage code="L607C" alt="Acteurs"/></a> </DIV> <DIV> <form method="GET" action="<fl:webapp/>/listm_person.fl"> <table border="0" cellpadding="0" > <tr> <td class="criteria"> <input type="text" name="PerName" value="<%= perName != null && !"".equals(perName.trim()) ? Utils.formatToWeb(perName,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 perEntID = (String)row.get("PerEntID"); String entCorpName = (String)row.get("PerEntID:EntCorpName"); String entAd1 = (String)row.get("PerEntID:EntAd1"); String entAd2 = (String)row.get("PerEntID:EntAd2"); String entAd3 = (String)row.get("PerEntID:EntAd3"); String EntZip = (String)row.get("PerEntID:EntZip"); String entCity = (String)row.get("PerEntID:EntCity"); String entCtrID = (String)row.get("PerEntID:EntCtrID:Val"); String perPhone = (String)row.get("PerPhone"); String perMobile = (String)row.get("PerMobile"); String perMail = (String)row.get("PerMail"); String fstName = (String)row.get("PerFstName"); String name = (String)row.get("PerName"); String perFctID = (String)row.get("PerFctID"); boolean hasAd = (entAd1 != null) || (entAd2 != null) || (entAd3 != null); String displayName=""; String function = null; if(perFctID != null){ String functionTe2 = (String)dico.getRefDisp(session, "Fct","Te2",perFctID); if(functionTe2 != null)function = functionTe2; else function = (String)dico.getRefDisp(session, "Fct","Te1",perFctID); } if(fstName != null)displayName +=fstName + " "; if(name != null)displayName += name + " "; //if(function != null && !function.equals(""))displayName += "(" + function + ")"; %> <div class="resultset"> <table border="0" cellpadding="0" cellspacing="0"> <TR valign="top"> <td width="100%"> <a href="<fl:webapp/>/readm_person.fl?id=<%=(String)row.get("PerID")%>" class="box-title"> <span> <%= Utils.formatToWeb(displayName,false) %> <%if(entCorpName != null){%> (<%= Utils.formatToWeb(entCorpName,false) %>) <% }%> </span> </a> </td> </TR> </table> </DIV> <% } } else if (perName != null && perName.trim().equals("")) { %> <fl:getMessage code="M6154" alt="Merci de remplir le critère."/> <% } else if (perName != 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