Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\edealMobile\event\step1_list_event.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.EventBean" id="Event" 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 evtSearch = null; evtSearch = Utils.getRequestParameter(context,request,"evtSearch"); String[] fields = new String[]{"EvtID","EvtLabel","EvtCode","EvtCategory:Val","EvtDate"}; Vector list = new Vector(); if(evtSearch != null && !evtSearch.trim().equals("")){ if(Utils.getMessage(session, "L2040", true, "<Nom>").equals(evtSearch.trim())){ try{ list = EventBean.listSummary(session,fields); }catch(Exception e){ list = new Vector(); } }else{ String[][] query = {{"EvtLabel like " + Utils.formatToSQL(context, evtSearch.trim() + "%"), "EvtCategory:RefTe2 = " + Utils.formatToSQL(context, "MEET")}, {"EvtCode like " + Utils.formatToSQL(context, evtSearch.trim() + "%"), "EvtCategory:RefTe2 = " + Utils.formatToSQL(context, "MEET")}}; try{ list = EventBean.listSummary(session,fields,query); }catch(Exception e){ list = new Vector(); } } } %> <HTML> <HEAD> <title><fl:getMessage code="L63D7" alt="Liste des evénements"/></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="EVTLIST"/> </jsp:include> <DIV> <form method="GET" action="<fl:webapp/>/event_step1.fl"> <table border="0" cellpadding="0" > <tr> <td class="criteria"> <input type="text" name="evtSearch" value="<%= evtSearch != null && !"".equals(evtSearch.trim()) ? Utils.formatToWeb(evtSearch,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 evtID = (String)row.get("EvtID"); String evtLabel = (String)row.get("EvtLabel"); String evtCode = (String)row.get("EvtCode"); String evtCat = (String)row.get("EvtCategory:Val"); Date evtDate = (Date)row.get("EvtDate"); %> <div class="resultset"> <table border="0" cellpadding="0" cellspacing="0"> <TR valign="top"> <td width="100%"> <a href="<fl:webapp/>/event_step2.fl?evtID=<%= evtID%>" class="box-title"> <%= Utils.formatToWeb(evtCode,false) %> - <%= Utils.formatToWeb(evtLabel,false) %> <span class="light"><br/> <%if(evtCat != null){%> <%= Utils.formatToWeb(evtCat,false) %> <%} if(evtDate != null){%> (<%= Utils.formatToWeb(session,evtDate,false,"dd/MM/yyyy") %>) <% }%> </span> </a> </td> </TR> </table> </DIV> <% } } else if (evtSearch != null && evtSearch.trim().equals("")) { %> <fl:getMessage code="M6154" alt="Merci de remplir le critère."/> <% } else if (evtSearch != 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