Edit C:\galaxie\Back\galaxie\netbusiness\massemailing\fusion_popup.jsp
<% /****************************************************************************** * 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. ******************************************************************************/ %> <%@page session="true" import="com.edeal.frontline.*"%><%@page import="java.util.*" %> <%@ page import="java.util.Vector" %> <%@ 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(); String object = ""; //Récupérer le type de destinataire de l'emailing en cours String desType = (String)request.getParameter("destype"); logger.debug("le type de destinataire est : " + desType); if (desType != null) { if ("PER".equals(desType)) { object = "Person"; } else if("PERSIL".equals(desType) || "SIL".equals(desType)) { object = "Silhouette"; }else{ object = desType; } } logger.debug("l'objet est : " + object); %> <html> <head> <title><fl:getMessage code="F7066" alt="Fusion"/></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" src="<fl:webapp/>/js/edeal/libraries/jquery/jquery.js"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ajax/ajax.js"></script> <script language="javascript"> function selectField(field, name, id) { var w = window.top.opener; w.insertFusionField(field, name, id); } function submit(){ if ($('input[type=radio][name=rdFusion]:checked').attr('value') == 'onefusion') { var w = window.top.opener; var code = document.getElementById('fusion').options[document.getElementById('fusion').selectedIndex].getAttribute("code"); var name = document.getElementById('fusion').options[document.getElementById('fusion').selectedIndex].getAttribute("name"); var id = document.getElementById('fusion').options[document.getElementById('fusion').selectedIndex].id; w.insertFusionField(code, name, id); } } function addAndContinue() { submit(); this.window.focus(); window.top.opener.blur(); } function closeWindow() { window.close(); } function add(){ submit(); closeWindow(); } function loadTreeviewDiv() { var ajaxURL = "<fl:webapp/>/get_treeview_div.fl?object=<%=object%>"; doAjax(ajaxURL, treeviewCallBack); } function treeviewCallBack(index) { if (eDealXmlhttpArr[index].readyState == 4) { $("#treeview_div").html(eDealXmlhttpArr[index].responseText); } hideWaiting(); } function emptyTreeviewDiv() { try{ $("#treeview_div").html(""); }catch (error){ } } </script> </head> <body class="popup_body"> <div id="object_css" style="top: 0px; left: 0px; height: 90%; width: 100%;"> <form> <fl:bigTabs objectTitle="<%= Utils.getMessage(session, \"L6181\", false, true, \"Fusionner\") %>"> <table class="container" cellpadding="0"> <% DataDictionary dico = context.getDataDictionary(); Vector vectName = null, vectObj = null, vectMap = null, vectCod = null; try { vectName = dico.getRefList(session, "cfc", "Te1"); vectObj = dico.getRefList(session, "cfc", "Te2"); vectMap = dico.getRefList(session, "cfc", "Te3"); vectCod = dico.getRefCodeList("cfc", "val"); } catch (Exception e) { } %> <tr class="fieldline"> <td class="dataLabel" id="fusion_label"> <div> <label title="<fl:getMessage code="L7062" alt="champs simples"/>" for="fusion"><input type="radio" name="rdFusion" onclick="emptyTreeviewDiv();" checked="checked" value="onefusion"/> <fl:getMessage code="L7062" alt="champs simples"/></label> </div> </td> <td class="dataValue" id="fusion_value"> <div class="input select"> <select class="input select" name="fusion" id="fusion"> <% if ((vectName != null) && (vectObj != null) && (vectCod != null) && (vectMap != null)) { for (int j = 0 ; j < vectName.size() ; j++) { Vector vectorMap = null, vectorCod = null, vectorName = null, vectorObj = null; try { vectorName = (Vector) vectName.elementAt(j); }catch (Exception e) { } try { vectorObj = (Vector) vectObj.elementAt(j); }catch (Exception e) { } try { vectorMap = (Vector) vectMap.elementAt(j); }catch (Exception e) { } try { vectorCod = (Vector) vectCod.elementAt(j); }catch (Exception e) { } String obj = (String) vectorObj.elementAt(1); // //String map = (String) vectorMap.elementAt(1); // String cod = (String) vectorCod.elementAt(1); String code = "", name = "", id = ""; cod = cod.contains(":Val")?cod.replace(":Val",""):cod; code = cod.contains(":")?cod.substring(cod.lastIndexOf(":") + 1, cod.length()):cod; try { FieldBean field = dico.getFieldByName(code); name = field.getFldDisplay(); id = field.getID(); } catch (Exception ex) { } if (object.equals(obj)){ %> <option code='<%=Utils.formatToWeb(cod, false) %>' id='<%=Utils.formatToWeb(id, false) %>' name='<%=Utils.formatToWeb(name, false) %>'><%= Utils.formatToWeb(name, false) %></option> <% } } } %> </select> </div> </td> </tr> <% if (!"PERSIL".equals(desType)) { %> <tr class="fieldline"> <td class="dataLabel" id="allfusion_label"><div><label title="<fl:getMessage code="L7077" alt="tous champs"/>" for="allfusion"><input type="radio" name="rdFusion" onclick="loadTreeviewDiv()" value="allfusion"/> <fl:getMessage code="L7077" alt="tous champs"/></label></div></td> <td class="dataValue" id="allfusion_value"> <div id="treeview_div"></div> </td> </tr> <%}%> </table> </fl:bigTabs> <table class="container" width="100%"> <tr class="fieldline"> <td colspan="3" style="text-align: center;"> <a href="javascript:add()" title="<fl:getMessage code="A2001" alt="Valider"/>"><img src="<fl:link url="/icons/ico/valid_green_long.gif"/>" ></a> <a href="javascript:addAndContinue()" title="<fl:getMessage code="A3069" alt="Valider et nouveau"/>"><img src="<fl:link url="/icons/ico/save_all_long.gif"/>" ></a> <a href="javascript:closeWindow();" title="<fl:getMessage code="A2002" alt="Annuler"/>"><img src="<fl:link url="/icons/ico/fermer_red_long.gif"/>"></a> </td> </tr> </table> </form> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de