<%@ page language="java" contentType="text/plain;charset=UTF-8"%> <% /****************************************************************************** * Copyright (c) 2000-2005 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. ******************************************************************************/ // Please note! If you change this file in any way, please make the same changes to any // JSP file containing the following string: //**listAjax.jsp**// %><%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.grid.*" %> <%@ page import="com.edeal.frontline.*" %> <%@ page import="com.edeal.frontline.grid.EdealGrid" %> <%@ page import="java.util.*" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ page import="com.edeal.frontline.navigation.EdealBigTabsNavigation" %> <%@ page import="com.edeal.frontline.navigation.EdealBigTabsNavigation.BigTabsParams" %> <%@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); String code = flRequest.getRequestParameterOrAttribute("gridName"); if (code == null) { String paramCode = flRequest.getRequestParameterOrAttribute("code"); String gn = ((paramCode == null ? "" : paramCode) + "_gridname"); code = flRequest.getRequestParameterOrAttribute(gn); if (code == null) { code = paramCode; } } GridData grid = (GridData)flRequest.getAttribute(code); FlContext context = flRequest.getContext(); EdealBigTabsNavigation bTabNav = new EdealBigTabsNavigation(flRequest); bTabNav.setBigTabsParameterValue(BigTabsParams.SelectedTab, "1"); DataDictionary dico = context.getDataDictionary(); EdealGrid edealGrid = new EdealGrid(); edealGrid.setName(code); edealGrid.buildColumns(session, context, grid); if(grid.getNbRows() == 0){ %> <% } else { %> <% try { ArrayList rowsId = grid.getRowsId(); int nbOfRows = grid.getData().length; for (int rowidx = 0; rowidx < nbOfRows; rowidx++) { Object[] row = grid.getData()[rowidx]; String perName = edealGrid.getColumn(0).format((GridData.GridLink)row[0]); String perTitre = edealGrid.getColumn(1).format(new GridData.GridCellContent(row[1])); String perImpl = edealGrid.getColumn(2).format(new GridData.GridCellContent(row[2])); String perTel = edealGrid.getColumn(3).format(new GridData.GridCellContent(row[3])); String perMob = edealGrid.getColumn(4).format(new GridData.GridCellContent(row[4])); String perMail = edealGrid.getColumn(5).format(new GridData.GridCellContent(row[5])); String perCom = edealGrid.getColumn(6).format(new GridData.GridCellContent(row[6])); %> <% if (rowidx < nbOfRows - 1){ %> <% } } } catch (Exception e) { logger.debug(e); } %>
<% if (row[0].toString().length() > 0) { %> <%= perName %>
<% } if (row[1].toString().length() > 0) { %> <%= perTitre %>
<% } if (row[2].toString().length() > 0) { %> <%= perImpl %>
<% } if (row[3].toString().length() > 0) { %> T : <%= perTel %>
<% } if (row[4].toString().length() > 0) { %> M : <%= perMob %>
<% } if (row[5].toString().length() > 0) { %> <%= perMail %>
<% } %>
<%= perCom %>
<% } %>