Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\netbusiness\newsletter\list.jsp
<%@ page language="java"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.grid.GridData" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="java.util.Vector" %> <%@ page import="com.edeal.frontline.navigation.WebUtils" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="java.util.Hashtable" %> <%@ page import="com.edeal.frontline.MessagesBean" %> <%@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); String sc = flRequest.getRequestParameterOrAttribute("sc"); FlContext context = flRequest.getContext(); %> <script language="javascript"> function doEdit(code, cty, id) { var query = '<fl:link url="/edit_messages_popup.fl?code='+code+'&cty=' + encodeURIComponent(cty) + (id ? '&id=' + id : '') + '"/>'; window.open(query, 'edit_msg', 'width=800,height=400,resizable'); } function doDelete(id,lbl) { if(id && window.confirm('<fl:getMessage code="M000D" alt="Etes-vous sûr de vouloir supprimer le message" js="true"/> "' + lbl + '" ?')) { doAjax('<fl:link url="/delete.fl?type=Messages&id=' + id + '"/>&successPage=' + encodeURIComponent('/list_criteria_newsletter.fl')); } } function doImport(pCode) { var query = '<fl:link url="/list_messages_for_import.fl?code=' + encodeURIComponent(pCode) +'&next=/list_newsletter.fl" list="true"/>'; window.open(query, 'mail_import', 'width=500,height=400,scrollbars,resizable'); } function doOnLoad(){ _grid__NewsLetter_js_.render(); } </script> <fl:bigTabs criteriaTitle="<%= Utils.getMessage(session, \"L64A9\", false, true, \"Liste des newsletters\") %>" listTitle="<%= Utils.getMessage(session, \"L64A9\", false, true, \"Liste des newsletters\") %>" > <table class="container" cellpadding="0"> <tr> <td> <fl:grid name="NewsLetter" ajaxUrl="<%=\"/list_newsletter_ajax.fl\"%>" height="120"></fl:grid> </td> </tr> <% String sender = context.getContextParameter("NewsLetter.Sender"); %> <tr> <td width="100%"> <table class="container" cellpadding="0"> <tr> <td class="dataLabel" style="vertical-align:top;text-align:right ;white-spacing: 50%;"> <fl:getMessage code="L0054" alt="Emetteur des mails"/> : </td> <td class="dataValue" style="vertical-align:top; white-spacing: 20%;"> <%= sender == null ? Utils.getMessage(session, "L004B", "(Non renseigné)") : Utils.formatToWeb(sender, false) %> </td> </tr> </table> </td> </tr> </table> <table class="container" cellpadding="0"> <tr class="ligne_separation"><td></td></tr> <tr> <td class="titrePartie"><fl:getMessage code="L004F" alt="e-mail à envoyer pour"/></td> </tr> <% String[] fields = {"MsgID", "MsgSubject", "MsgCtyID:RefVal", "MsgCode"}; String[][] query = {{"MsgCode like " + Utils.formatToSQL(context, "NLT%")}}; String[] orderBy = {"MsgCode"}; Vector vectMsg = MessagesBean.listSummary(context, fields, query, orderBy); Hashtable hashMsg = new Hashtable(); if(vectMsg != null && vectMsg.size() > 0) { for(int i = 0; i < vectMsg.size(); i++) { Hashtable row = (Hashtable)vectMsg.elementAt(i); String msgCode = (String)row.get("MsgCode"); String msgCtyVal = (String)row.get("MsgCtyID:RefVal"); if(msgCode != null && msgCtyVal != null) { if("TEXT/PLAIN".equalsIgnoreCase(msgCtyVal)) { hashMsg.put(msgCode + "TEXT/PLAIN", row); } else { hashMsg.put(msgCode + "TEXT/HTML", row); } } } } String[][] msgType = {{"NLT1", Utils.getMessage(session, "L004C", "un nouvel abonné")}, {"NLT2", Utils.getMessage(session, "L004D", "une modification d'abonnements")}, {"NLT3", Utils.getMessage(session, "L004E", "Un désabonnement complet")}}; %> <% for(int i = 0; i < msgType.length; i++) { %> <tr valign="top"> <td class="transparent"> <table border="0" cellpadding="0" cellspacing="0" width="100%" class="container"> <tr valign="top"> <td colspan="3" class="headerDataGrid"><%= msgType[i][1] %></td> </tr> <tr valign="top"> <% Hashtable row = (Hashtable)hashMsg.get(msgType[i][0] + "TEXT/PLAIN"); if(row == null) { %> <td class="dataLabel" width="1%" nowrap><fl:getMessage code="L6501" alt="text"/></td> <td class="dataValue"> </td> <td class="dataLabel" valign="middle"> <table border="0" cellpadding="0" cellspacing="0"> <tr valign="0"> <td background="<fl:webapp/>/icons/ico/zoom.gif"><a href="javascript:doEdit('<%= msgType[i][0] %>', 'TEXT/PLAIN');"><img src="<fl:webapp/>/icons/spacer.gif" alt="<fl:getMessage code="A0008" alt="modifier"/>" border="0" width="15" height="15"></a></td> <td><img src="<fl:webapp/>/icons/spacer.gif" width="3" height="1"></td> <td background="<fl:webapp/>/icons/ico/rechercher.gif"><img src="<fl:webapp/>/icons/shader.gif" border="0" width="15" height="15"></td> <td ><img src="<fl:webapp/>/icons/spacer.gif" width="3" height="1"></td> <td class="transparent" background="<fl:webapp/>/icons/ico/supprimer.gif"><img src="<fl:webapp/>/icons/shader.gif" border="0" width="15" height="15"></td> </tr> </table> </td> <% } else { %> <td class="dataLabel" width="1%" nowrap><fl:getMessage code="L6501" alt="text"/></td> <td class="dataValue"><%= Utils.formatToWeb(row.get("MsgSubject"), false) %></td> <td class="dataLabel" valign="middle"> <table border="0" cellpadding="0" cellspacing="0"> <tr valign="0"> <td background="<fl:webapp/>/icons/ico/zoom.gif"><a href="javascript:doEdit('<%= msgType[i][0] %>', 'TEXT/PLAIN', '<%= row.get("MsgID") %>');"><img src="<fl:webapp/>/icons/spacer.gif" alt="<fl:getMessage code="A0008" alt="modifier"/>" border="0" width="15" height="15"></a></td> <td ><img src="<fl:webapp/>/icons/spacer.gif" width="3" height="1"></td> <td background="<fl:webapp/>/icons/ico/rechercher.gif"><img src="<fl:webapp/>/icons/shader.gif" border="0" width="15" height="15"></td> <td ><img src="<fl:webapp/>/icons/spacer.gif" width="3" height="1"></td> <td background="<fl:webapp/>/icons/ico/supprimer.gif"><a href="javascript:doDelete('<%= row.get("MsgID") %>', '<%= Utils.formatToJavascript((String)row.get("MsgSubject")) %>')"><img src="<fl:webapp/>/icons/spacer.gif" alt="<fl:getMessage code="A0007" alt="supprimer"/>" border="0" width="15" height="15"></a></td> </tr> </table> </td> <% } %> </tr> <tr valign="top"> <% row = (Hashtable)hashMsg.get(msgType[i][0] + "TEXT/HTML"); if(row == null) { %> <td class="dataLabel" width="1%" nowrap><fl:getMessage code="L6502" alt="html"/></td> <td class="dataValue"> </td> <td class="dataLabel" valign="middle"> <table border="0" cellpadding="0" cellspacing="0"> <tr valign="0"> <td background="<fl:webapp/>/icons/ico/zoom.gif"><a href="javascript:doEdit('<%= msgType[i][0] %>', 'TEXT/HTML');"><img src="<fl:webapp/>/icons/spacer.gif" alt="<fl:getMessage code="A0008" alt="modifier"/>" border="0" width="15" height="15"></a></td> <td ><img src="<fl:webapp/>/icons/spacer.gif" width="3" height="1"></td> <td background="<fl:webapp/>/icons/ico/rechercher.gif"><a href="javascript:doImport('<%= msgType[i][0] %>')"><img src="<fl:webapp/>/icons/spacer.gif" alt="<fl:getMessage code="A0015" alt="importer"/>" border="0" width="15" height="15"></td> <td><img src="<fl:webapp/>/icons/spacer.gif" width="3" height="1"></td> <td background="<fl:webapp/>/icons/ico/supprimer.gif"><img src="<fl:webapp/>/icons/shader.gif" border="0" width="15" height="15"></td> </tr> </table> </td> <% } else { %> <td class="dataLabel" width="1%" nowrap><fl:getMessage code="L6502" alt="html"/></td> <td class="dataValue"><%= Utils.formatToWeb(row.get("MsgSubject"), false) %></td> <td class="dataLebl" valign="middle"> <table border="0" cellpadding="0" cellspacing="0"> <tr valign="0"> <td background="<fl:webapp/>/icons/ico/zoom.gif"><% if("MIME".equalsIgnoreCase((String)row.get("MsgCtyID:RefVal"))) { %><img src="<fl:webapp/>/icons/shader.gif" border="0" width="15" height="15"><% } else { %><a href="javascript:doEdit('<%= msgType[i][0] %>', 'TEXT/HTML', '<%= row.get("MsgID") %>');"><img src="<fl:webapp/>/icons/spacer.gif" alt="<fl:getMessage code="A0008" alt="modifier"/>" border="0" width="15" height="15"><% } %></a></td> <td ><img src="<fl:webapp/>/icons/spacer.gif" width="3" height="1"></td> <td background="<fl:webapp/>/icons/ico/rechercher.gif"><img src="<fl:webapp/>/icons/shader.gif" border="0" width="15" height="15"></td> <td ><img src="<fl:webapp/>/icons/spacer.gif" width="3" height="1"></td> <td background="<fl:webapp/>/icons/ico/supprimer.gif"><a href="javascript:doDelete('<%= row.get("MsgID") %>', '<%= Utils.formatToJavascript((String)row.get("MsgSubject")) %>')"><img src="<fl:webapp/>/icons/spacer.gif" alt="<fl:getMessage code="A0007" alt="supprimer"/>" border="0" width="15" height="15"></a></td> </tr> </table> </td> <% } %> </tr> </table> </td> </tr> <% } %> </table> </fl:bigTabs>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de