Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\common\list\custom\listAjax_funky_embperson.jsp
<%@page import="com.edeal.frontline.grid.GridData.GridCellContent"%> <%@ page language="java" contentType="text/plain;charset=UTF-8"%> <%@page import="java.util.Enumeration"%><% /****************************************************************************** * 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"); code = flRequest.getRequestParameterOrAttribute(paramCode + "_gridName"); if (code == null) { code = paramCode; } } GridData grid = (GridData)flRequest.getAttribute(code); FlContext context = flRequest.getContext(); boolean isEmbedded = flRequest.getAttribute(code + "_Embedded") != null; String type = (String)flRequest.getAttribute("objSql"); if (type==null) { type=(String)flRequest.getAttribute(code+"_objSql"); } EdealGrid edealGrid=new EdealGrid(); edealGrid.setName(code); edealGrid.buildColumns(session, context, grid); //boolean fAllowUpdate=true; //boolean fUpdateMode=false; if(grid.getNbRows()==0){ %> <fl:label code="L0001" label="Aucune entrée disponible "/> <%}else{ %> <div class="grid-actions"> </div> <div id="grid-data" class="data"> <table > <tbody><% ArrayList<String> demoimg=new ArrayList<String>(); demoimg.add("http://images.artistdirect.com/Images/nad/video/tribune/38497/38497_ab.jpg"); demoimg.add("http://i5.photobucket.com/albums/y189/shawnlevy/The_Big_Lebowski___Jeff_Bridges.jpg"); demoimg.add("http://www.fipico.com/pix/usa/biglebowski/the-big-lebowski.jpg"); demoimg.add("http://infinitecoolness.com/galleries/lebowski/biglebowski21.jpg"); java.util.Random random=new java.util.Random(1000); ArrayList<String> rowsId = grid.getRowsId(); ArrayList<String> previewValue = new ArrayList(); boolean oddRow = false; EdealGridColumn eGColname = edealGrid.getColumn(0); EdealGridColumn eGColtitre = edealGrid.getColumn(1); EdealGridColumn eGColmail = edealGrid.getColumn(4); for(int rowidx = 0; rowidx < grid.getData().length; rowidx++) { %> <tr> <% Object[] row = grid.getData()[rowidx]; %><td width="20%"> <div width="200px" style=""> <%= eGColname.format((GridCellContent)row[0]) %><br/> <%= eGColtitre.format((GridCellContent)row[1]) %><br/> <%= eGColmail.format((GridCellContent)row[4]) %> </div> </td> <td width="80%"> <% try { %> <img src="<%= demoimg.get((random.nextInt(demoimg.size()) % demoimg.size())) %>" height="100px" width="150px"/> <% } catch (Exception e) {} %> </td> </tr> <% } %></tbody> </table> </div> <%}%>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de