Edit C:\Windows\install\galaxie_p01_01-10\marketing\population\import.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"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.ActorBean" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.PopulationBean" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@ page import="com.edeal.frontline.FieldNotInitializedException" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <jsp:useBean id="Population" class="com.edeal.frontline.PopulationBean" 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(); Vector silFlds = dico.getTableFields("sql", "Silhouette", true, false); String silFldMailID = dico.getFieldByName("SilMail").getID(); String id = null; try { id = Population.getID(); } catch (FieldNotInitializedException fnie) { } %> <html> <head> <title><fl:getMessage code="L2025" alt="E-DEAL"/></title> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"> <link rel="stylesheet" href="<fl:webapp/>/css/master_css.jsp" type="text/css"> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/presentField.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/sarissa.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/ajax.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/master_js.jsp"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <script type="text/javascript" language="javascript"> function fieldMove(direction) { var list = document.forms[0].Fields.options; if ((direction == -1 && !list[0].selected) || (direction == 1 && !list[list.length - 1].selected)) { var newList = new Array(); var select = new Array(); for (i = 0; i < list.length; i++) { newList[i] = new Option(list[i].text, list[i].value); select[i] = list[i].selected; } if (direction == -1) { for (i = 1; i < newList.length; i++) { if(select[i]) { old = newList[i - 1]; newList[i - 1] = newList[i]; newList[i] = old; select[i] = select[i - 1]; select[i - 1] = true; } } } else if (direction == 1) { for (i = newList.length - 1; i > 0; i--) { if (select[i - 1]) { old = newList[i]; newList[i] = newList[i - 1]; newList[i - 1] = old; select[i - 1] = select[i]; select[i] = true; } } } for (i = 0; i < newList.length; i++) { list[i] = newList[i]; list[i].selected = select[i]; } } } function fieldLeft() { var src = document.forms[0].Fields.options; var dst = document.forms[0].dispoFields.options; for(i = 0; i < src.length; ) { if(src[i].selected && src[i].value != '<%= silFldMailID %>') { dst[dst.length] = new Option(src[i].text, src[i].value); src[i] = null; } else { i++; } } } function fieldRight() { var src = document.forms[0].dispoFields.options; var dst = document.forms[0].Fields.options; for(i = 0; i < src.length; ) { if(src[i].selected) { dst[dst.length] = new Option(src[i].text, src[i].value); src[i] = null; } else { i++; } } } function doSubmit() { var f = document.forms[0]; for (var i = 0; i < f.Fields.options.length; i++) { f.Fields.options[i].selected = true; } f.$$returnedHtmlHead.value = '<scr' + 'ipt language="javascript" type="text/javascript">window.top.opener.location = "<fl:link url="<%= \"/read_population.fl?id=\" + id %>" list="true"/>";window.top.close();</scr' + 'ipt>'; return true; } </script> </head> <body> <div id="object_css" style="top:0px;left: 0px;height:100%;"> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L62F4\", false, true, \"Import\") + \" : \" + Population.toString() %>" ignoreList="true"> <fl:form multivalSeparator=";" action="/execute_import_population.fl" bean="Population" enctype="multipart/form-data"> <input name="$$returnedHtmlHead" type="hidden" value=""/> <input name="$$returnedHtmlBody" type="hidden" value="Closing..."/> <table class="container" cellpadding="0"> <tbody> <tr class="fieldline"> <td class="dataLabel"><label for="File" id="File_label"><fl:getMessage code="F003C" alt="Fichier"/></label></td> <td class="dataValue"> <input type="file" name="File" id="File" class="chpsTextObligatoire"/> <input name="mandatory" value="File" type="hidden"> <input id="mandatory.File" name="mandatory.File" value="<fl:getMessage code="M0016" alt="Veuillez sélectionner un fichier."/>" type="hidden"> <span id="File_msg" class="mandatory_alert" style="display: none;">!</span> </td> </tr> <tr class="ligne_separation"> <td colspan="2"></td> </tr> <tr class="fieldline"> <td class="dataLabel"><fl:getMessage code="L2007" alt="Description"/></td> <td class="dataValue"> <table class="container" cellpadding="0"> <tbody> <tr class="fieldline"> <td class="dataValue" style="width: 49%"> <select name="dispoFields" size="7" multiple style="width: 160px"> <fl:getFields table="Silhouette" except="SilCreID;SilModID;SilCrDt;SilUpd;SilMbm;SilMbs;SilQueID;SilID;SilMail" type="select"/> </select> </td> <td class="dataValue" style="width: 1%; white-space: nowrap; vertical-align: middle;"> <a href="javascript:fieldLeft()" title="<fl:getMessage code="A0012" alt="retirer"/>"><img src="<fl:webapp/>/icons/ico/flecheG.gif" alt="<fl:getMessage code="A0012" alt="retirer"/>"></a><br/> <a href="javascript:fieldRight()" title="<fl:getMessage code="A000F" alt="ajouter"/>"><img src="<fl:webapp/>/icons/ico/flecheD.gif" alt="<fl:getMessage code="A000F" alt="ajouter"/>"></a> </td> <td class="dataValue" style="width: 49%"> <select name="Fields" size="7" multiple style="width: 160px"> <fl:getFields table="Silhouette" only="SilMail" type="select"/> </select> </td> <td class="dataValue" style="width: 1%; white-space: nowrap; vertical-align: middle;"> <a href="javascript:fieldMove(-1)" title="<fl:getMessage code="A0013" alt="monter"/>"><img src="<fl:webapp/>/icons/ico/flecheH.gif" alt="<fl:getMessage code="A0013" alt="monter"/>"></a><br/> <a href="javascript:fieldMove(+1)" title="<fl:getMessage code="A0014" alt="descendre"/>"><img src="<fl:webapp/>/icons/ico/flecheB.gif" alt="<fl:getMessage code="A0014" alt="descendre"/>"></a> </td> </tr> </tbody> </table> </td> </tr> <tr class="ligne_separation"> <td colspan="2"></td> </tr> </tbody> </table> </fl:form> </fl:bigTabs> <br> <div align="center"> <a href="javascript:submit();"><img src="<fl:link url="/icons/ico/valid_green_long.gif"/>" border="0" alt="<fl:getMessage code="A2001" alt="Valider"/>" title="<fl:getMessage code="A2001" alt="Valider"/>"></a> <a href="#" onclick="self.close();"><img src="<fl:link url="/icons/ico/fermer_red_long.gif"/>" border="0" alt="<fl:getMessage code="L61B1" alt="Fermer la fenêtre"/>" title="<fl:getMessage code="L61B1" alt="Fermer la fenêtre"/>"></a> </div> </div> <div id="waiting" style="display:none"><fl:getMessage code="L639B" alt="Chargement ..."/></div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de