Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\netbusiness\messages\popup.jsp
<jsp:directive.page import="java.net.URLEncoder"/><% /****************************************************************************** * 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="com.edeal.frontline.grid.GridData" %> <%@ 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(); DataDictionary dico = context.getDataDictionary(); String pID = flRequest.getRequestParameterOrAttribute("destID"); String pMail = flRequest.getRequestParameterOrAttribute("email"); String pTyp = flRequest.getRequestParameterOrAttribute("ObjSql"); String pObjID = flRequest.getRequestParameterOrAttribute("ObjID"); String strReturn = flRequest.getRequestParameterOrAttribute("strReturn"); boolean success = Boolean.parseBoolean(flRequest.getRequestParameterOrAttribute("success")); String id = flRequest.getRequestParameterOrAttribute("id"); String pName = null; try { Vector perl = PersonBean.listSummary(session, new String[]{"PerFstName", "PerName", "PerMail"}, new String[][]{{"PerID = " + Utils.formatToSQL(context, pID)}}); String fstName = (String) ((Hashtable) perl.firstElement()).get("PerFstName"); String name = (String) ((Hashtable) perl.firstElement()).get("PerName"); pMail = pMail == null ? (String) ((Hashtable) perl.firstElement()).get("PerMail") : pMail; if (fstName != null || name != null) { pName = (fstName == null ? "" : fstName) + (fstName != null && name != null ? " " : "") + (name == null ? "" : name); } } catch(Exception e) { logger.info("STACK TRACE : ", e); } String pLongMailTmp = Utils.formatToWeb(pMail, true); if (pName != null) { pLongMailTmp = pName + " <" + Utils.formatToWeb(pMail, true) + ">"; } String pLongMail = URLEncoder.encode(pLongMailTmp, "UTF-8"); pLongMail = Utils.replace(pLongMail, "+" , "%20"); //pLongMail+="?bcc="+context.getContextParameter("Interaction.InMailAddress"); String bcc = null; try { bcc = context.getContextParameter("Interaction.InMailAddress"); } catch(Exception e) { } String pLongMailWithBcc = pLongMail; if (bcc != null) { pLongMailWithBcc = pLongMailWithBcc + "?bcc=" + bcc; } %> <html> <head> <title> </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:link url="/js/edeal/libraries/jquery/jquery.js"/>"></script> <script type="text/javascript" src="<fl:link url="/js/ajax/ajax.js"/>"></script> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/ac/fobAC_js.jsp"></script> <script language="javascript"> function doSend(id) { var isChecked = true; var url = '<fl:webapp/>/send_mail_messages.fl?id=' + encodeURIComponent(id) + '&ObjID=<%= Utils.formatToJavascript(pObjID) %>&ObjSql=<%= Utils.formatToJavascript(pTyp) %>&destID=<%= Utils.formatToJavascript(pID) %>&email=' + encodeURIComponent('<%= pMail %>')+"&createInt="+isChecked; window.location = url; } function doEdit(id) { var url = '<fl:webapp/>/create_realize_interaction.fl?initIntAtvCode=OUTEMAIL&initIntRefMsgID='+id+'&loadmodel=true&fusionBeanID=<%= pObjID %>'; <% if ("Person".equals(pTyp)) { %> url+='&initIntPersonID=<%= pObjID %>' <% } %> window.opener.location = url; window.close(); } function doOpenWysiwygEditor() { var url = '<fl:webapp/>/create_realize_interaction.fl?initIntAtvCode=OUTEMAIL'; <% if ("Person".equals(pTyp)) { %> url+='&initIntPersonID=<%= pObjID %>' <% } %> window.opener.location = url; window.close(); } function doLoadGrid() { _grid__MSGMAIL_js_.render("ObjSql",'<%= Utils.formatToJavascript(pTyp) %>'); } function doOpenMailClient(link) { var withInteraction = $("#createInteraction").get(0).checked; if (withInteraction) link.href = "mailto:<%= pLongMailWithBcc %>"; else link.href = "mailto:<%= pLongMail %>"; } $(document).ready(function(){ window.resizeTo(800,600); setTimeout(function(){ <%if (strReturn != null){%> <%if(Utils.isEmpty(id)){%> $("#wysiwyg_id").html(" <img src=\"<fl:webapp/>/js/progressbar/images/<%=(success)? "success.png" : "failure.png"%>\" style=\"vertical-align: bottom;\" alt=\"<%=strReturn%>\" title=\"<%=strReturn%>\"></img>"); <%}else{%> $("#<%=id%> td:nth-child(1)").each(function (){ var html = $(this).html(); $(this).html("<img src=\"<fl:webapp/>/js/progressbar/images/<%=(success)? "success.png" : "failure.png"%>\" alt=\"<%=strReturn%>\" title=\"<%=strReturn%>\"></img> " + html); }); <%}%> <%}%> },1000); }); </script> </head> <body onload="doLoadGrid()"> <div class="main_body" style="border:none;height:100%"> <table> <tr><td height="10px"></td></tr> </table> <fl:bigTabs objectTitle="<%=Utils.getMessage(session, \"L30D8\", false, true, \"Envoyer un e-mail\")%>"> <table style="width: 100%"> <tr class="fieldline"> <td style="width: 100%" colspan="3"> <div style="overflow:auto;height:100%"> <fl:grid name="MSGMAIL" height="100%" width="100%" ajaxUrl="/embedded_list_ajax.fl"></fl:grid> </div> </td> </tr> <tr class="fieldline"> <td class="dataValue" align="center" colspan="3"> <a onclick="doOpenMailClient(this)" href=""><fl:getMessage code="L62D5" alt="Envoi manuel"/>(<input id="createInteraction" type="checkbox" checked="checked"/><label><fl:getMessage code="L6039" alt="Créer une interaction"/></label>)</a> | <a href="javascript:doOpenWysiwygEditor()"><fl:getMessage code="L7095" alt="Envoi depuis un éditeur wysiwyg"/></a> <span id="wysiwyg_id"></span> </td> </tr> </table> </fl:bigTabs> <br> <table class="container"> <tr class="fieldline"> <td style="width: 100%; text-align: center" colspan="3"><a href="javascript:window.top.close();"><img src="<fl:webapp/>/icons/ico/fermer_red_long.gif"></a></td> </tr> </table> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de