Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\plugins\addressnormalisation\address_choice.jsp
<% /****************************************************************************** * Copyright (c) 2000-2008 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. ******************************************************************************/ %> <%@page session="true"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.services.addressnormalisation.*" %> <%@ page import="java.util.Enumeration" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@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); FlContext context = flRequest.getContext(); DataDictionary dico = context.getDataDictionary(); String pTyp = flRequest.getRequestParameterOrAttribute("type"); String pId = flRequest.getRequestParameterOrAttribute("id"); String pSetAddressMethod = flRequest.getParameter("setAddressMethod"); String pGetAddressMethod = flRequest.getParameter("getAddressMethod"); String pSetAddressStatusMethod = flRequest.getParameter("setAddressStatusMethod"); String pGetAddressStatusMethod = flRequest.getParameter("getAddressStatusMethod"); Address address= (Address)flRequest.getAttribute(AddressNormalisationServiceClient.REQ_ATT_CURRENT_ADDRESS); NormalisedAddresses altAddresses= (NormalisedAddresses)flRequest.getAttribute(AddressNormalisationServiceClient.REQ_ATT_ALTERNATIVE_ADDRESSES); AddressNormalisationCorrection correction = (AddressNormalisationCorrection)flRequest.getAttribute(AddressNormalisationServiceClient.REQ_ATT_CORRECTION_TYPE); %> <style> .jauge-box { width:100px; border:1px black solid; height:10px; padding:0; font-size:9px; } .jauge { height:10px; width:0%; padding:0;border:0;} .percentage { margin-top:-12px; text-align:center; } .high { background-color:lightgreen; } .medium {background-color:orange; } .low {background-color:red; } </style> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L6554\", false, true, \"Liste adresses possibles\")%>"> <tr> <th class="titreFiche" style="text-align: left" colspan="2"> <fl:getMessage code="L654F" alt="La normalisation détecte une ambiguité"/> </th> </tr> <tr class="ligne_separation"><td colspan="2"></td></tr> <tr class="ligne_separation_couleur"><td colspan="2"></td></tr> <tr class="ligne_separation"><td colspan="2"></td></tr> <tr> <td class="dataValue"><fl:getMessage code="L6550" alt="Ambiguité"/></td> <td class="dataValue"><%= correction %></td> </tr> <tr> <td class="dataValue"><fl:getMessage code="L6551" alt="Adresse saisie"/></td> <td class="dataValue"><%= address %><td> </tr> <tr class="ligne_separation"><td colspan="2"></td></tr> <tr class="ligne_separation_couleur"><td colspan="2"></td></tr> <tr class="ligne_separation"><td colspan="2"></td></tr> </table> <table cellspacing="3" cellpadding="3" border="0" width="95%" align="center"> <tr> <th class="dataValue" style="text-align: left" colspan="3"> <fl:getMessage code="L6552" alt="Adresses Alternatives"/> </th> </tr> <tr class="ligne_separation"><td colspan="3"></td></tr> <% int idx = 0; Enumeration enAddresses=altAddresses.elements(); while (enAddresses.hasMoreElements()) { NormalisedAddress altaddress = (NormalisedAddress)enAddresses.nextElement(); logger.debug("Address Enumaration::::" + address.toString()); if (!address.isEmpty()) { // int proba = altaddress.getProbability(); // logger.debug("Probability::::" + proba); %> <tr> <td width="10%"> <label title="<fl:getMessage code="M6114" alt="Choisir cette adresse"/>"> <a href="<fl:webapp/><%= "&idx=" + idx %>"> <img src="<fl:webapp/>/plugins/addressnormalisation/icons/email_go.gif" border="0"/> </a> </label> </td> <td width="10%" valign="top"> <%-- <div class="dataValue"><%= proba + "%" %></div> --%> </td> <td width="80%"><div class="dataValue"><%= altaddress %></div></td> </tr> <% idx++; } } %> </table> </fl:bigTabs>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de