Edit C:\Windows\install\galaxie_p02_26-09\common\attachment\selected.jsp
<% /****************************************************************************** * Copyright (c) 2000-2004 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" import="com.edeal.frontline.*"%><%@ page import="org.apache.commons.fileupload.servlet.ServletFileUpload" %><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@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(); boolean isMultipart = ServletFileUpload.isMultipartContent(request); String idColName = flRequest.getRequestParameterOrAttribute("IDColName"); String fileNameColName = flRequest.getRequestParameterOrAttribute("FileNameColName"); %> <jsp:useBean class="com.edeal.frontline.AttachmentBean" id="Attachment" scope="request"/> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title><fl:getMessage code="L6043" alt="Gestion des fichiers attachés"/></title> <script language="javascript" type="text/javascript" src="<fl:webapp/>/js/utils.js"></script> <script type="text/javascript"> function formatFromWeb(){ var w = window.top.opener; var f = w.document.forms[0]; var fileNameField = f.<%= fileNameColName %>; var displayField = f.LeFichierAttache<%= idColName %>; var displayFieldTemp = "temp"; // For each special char appearing multiple times within the string, try to // transcode the special char. If the resulting transcoded string is equals // to the string before the special char has been transcoded, stop looking for // this special char within the string. while (displayField.value.indexOf("eacute") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("é","é"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("egrave") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("è","è"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("ecirc") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("ê","ê"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("euml") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("ë","ë"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("icirc") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("î","î"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("iuml") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("ï","ï"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("ocirc") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("ô","ô"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("ouml") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("ö","ö"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("ugrave") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("ù","ù"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("ucirc") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("û","û"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("uuml") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("ü","ü"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("agrave") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("à","à"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("acirc") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("â","â"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("auml") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("ä","ä"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("quot") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace(""","\""); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("gt") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace(">",">"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("lt") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("<","<"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("ccedil") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("ç","ç"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("curren") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("¤","¤"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("pound") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("£","£"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("micro") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("µ","µ"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("sect") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("§","§"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("sup2") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("²","²"); if (displayFieldTemp === displayField.value) { break; } } while (displayField.value.indexOf("amp") > 0) { displayFieldTemp = displayField.value; displayField.value = displayField.value.replace("&","&"); if (displayFieldTemp === displayField.value) { break; } } } function onLoadHandler(e) { var w = window.top.opener; var f = w.document.forms[0]; var idField = f.<%= idColName %>; var fileNameField = f.<%= fileNameColName %>; var displayField = f.LeFichierAttache<%= idColName %>; var multivalSeparator = "|"; if (f.$$multivalSeparator) { multivalSeparator = f.$$multivalSeparator.value; } if (idField) { idField.value = "<fl:getProperty name="Attachment" alt="" property="AttID"/>"; } if (displayField) { displayField.value = "<fl:getProperty name="Attachment" alt="" property="AttDesc"/>"; formatFromWeb(); } if (fileNameField) { fileNameField.value = formatToJavascript("<fl:getProperty name="Attachment" alt="" property="AttDesc"/>"); } try { if (w.do<%= idColName %>Change) { w.do<%= idColName %>Change(); } } catch (error) { } window.close(); } window.onload = onLoadHandler; </script> </head> <body> <fl:getMessage code="L6411" alt="Le fichier a été chargé."/> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de