Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\netbusiness\emaillink\read_massemailing_links_list.jsp
<%@page session="true" contentType="text/html; charset=UTF-8" import="com.edeal.frontline.*, java.util.*, com.edeal.frontline.controller.ControllerServlet, java.lang.reflect.Method"%> <%@ page import="com.edeal.frontline.navigation.*" %> <%@ page import="com.edeal.frontline.netbusiness.*" %> <%@ page import="java.net.URLDecoder" %> <%@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()); ArrayList<EmailLink> arrElink = new ArrayList<EmailLink>(); arrElink = (ArrayList<EmailLink>)request.getAttribute("arrElink"); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); Boolean founded = false; DataDictionary dico = context.getDataDictionary(); if (arrElink.size() > 0) { %> <html> <head> <script type="text/javascript" language="javascript" src="<fl:webapp/>/js/tooltip/jquery.qtip-1.0.0-rc3.js"></script> <style type="text/css"> .emaillink { /*overflow-y: auto;*/ } .emaillink div#grid-link { clear: both; /*overflow-x: auto; overflow-y: auto;*/ border: 0px; max-height: 100%; position:relative; padding-left: 1px; padding-right: 1px; } .emaillink div#grid-link table { width:99%; } .emaillink div#grid-link table thead{ border-bottom: 0px; } .emaillink div#grid-link table tbody{ border-bottom: 1px solid #ddd; border-left: 1px solid #ddd; border-right: 1px solid #ddd; } .emaillink div#grid-link table th{ /*border: 1px dotted rgb(193,205,216);*/ padding: 2px 2px 2px 2px; /*text-align: center;*/ font-family: Arial, Verdana, sans-serif; font-weight: bold; font-size: 10pt ; } .emaillink div#grid-link table td{ border-left: 1px solid #ddd; border-bottom: 1px solid #ddd; border-right: 1px solid #ddd; padding: 3px 5px 3px 5px; } .emaillink div#grid-link table td td { border: 0px; padding: 0px; vertical-align: middle; } .emaillink input.text { color: #000000 ; background-color: #FAFDFD; font-family: Arial, Verdana, sans-serif; vertical-align: middle; font-size: 12px; border: 1px solid #A3A6AB; display:inline; padding: 2px 5px; width:100px; } .emaillink select { color: #000000 ; background-color: #FAFDFD; font-family: Arial, Verdana, sans-serif; vertical-align: middle; font-size: 12px; border: 1px solid #A3A6AB; display: inline; padding: 2px 5px; height: 21px; width:100px } .emaillink input.checkbox { width:40px; } .emaillink div#grid-link table { border-width:1px; width:100%; border-collapse:collapse; } .emaillink th { color: #84A6AE; font-size:small; font-weight : bold; } .tabFdBlanc td, .tabFdBleu td { border-right: 1px solid #ccc; padding-top: 3px; padding-right: 5px; padding-bottom: 3px; padding-left: 5px; vertical-align: middle; } .tabFdBlanc { font-size: 12px; font-family: Arial,Verdana,sans-serif; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); } .tabFdBleu { font-size: 12px; font-family: Arial,Verdana,sans-serif; color: rgb(0, 0, 0); background-color: rgb(235, 244, 246); } .tabFdBlanc, .tabFdBleu { border: 0px; border-bottom: 1px solid #ccc; border-left: 1px solid #ccc; } td div.text { margin-right: 12px; width: auto; } .emaillink div#grid-link table tr { padding-left:0px; border-bottom: 1px solid #ccc; padding: 3px 5px 0px 5px; text-align: left; } .emaillink div#div-img img { height:30px; width:50px; float: left; valign: center; } .emaillink div#div-img { min-height:30px; min-width:50px; float: left; valign: center; } </style> </head> <body> <div class="emaillink"> <div id="grid-link"> <table cellpadding="0" style="width: 100%;"> <thead> <tr valign="top"> <th><fl:getMessage code="L7010" alt="Suivi"/></th> <th></th> <th><fl:getMessage code="L6180" alt="Lien"/></th> <th><fl:getMessage code="L70B4" alt="Groupement - Nom"/></th> <th><fl:getMessage code="L7042" alt="Evénement - Statut"/></th> <th><fl:getMessage code="F000C" alt="Population"/></th> </tr> </thead> <tbody> <% int i = 0; for (EmailLink elnk : arrElink) { if((elnk != null)){ i++; %> <tr class="<%= i%2 == 0 ? "tabFdBlanc" : "tabFdBleu" %>"> <td width="1%" align="center"> <% if (elnk.getId().indexOf("id__") == -1) {%> <img src="<fl:webapp/>/icons/ico/cochevalid.gif"/> <%} %> <input name="emlid_<%= i %>" id="emlid_<%= i %>" value='<%= elnk.getId() %>' type="hidden"/> </td> <td width="1%" align="center"> <img src="<fl:webapp/>/icons/flags/gif/<%= dico.getRefCode("Lna", "Val", elnk.getLngmsg()).substring(3, 5).toLowerCase() %>.gif" title="<%= dico.getRefDisp("Lna", "Te1", elnk.getLngmsg()) %>" hspace="3"/> </td> <td width="20%"> <% String realText = URLDecoder.decode(elnk.getText(), "UTF-8"); String adaptedText = realText; if (realText.length() > 40){ adaptedText = realText.substring(0, 40); } if (elnk.getHtmlcontent() != null && elnk.getHtmlcontent().indexOf("img") > 0){ %> <div name="<%= elnk.getId() %>" id="div-img"><%= elnk.getHtmlcontent() %></div> <% } else { %> <a id="<%= elnk.getId() %>" href="<%= URLDecoder.decode(elnk.getUrl(), "UTF-8") %>" title="<%= realText %>" target="_blank"><%= adaptedText %></a> <% } if (elnk.getHtmlcontent() != null && elnk.getHtmlcontent().indexOf("img") > 0){ %> <script type="text/javascript"> $("[name='<%= elnk.getId() %>']").qtip({ content: '<%= elnk.getHtmlcontent().replace("'", "\\\'") %>' }); </script> <% } %> </td> <%-- Web operation --%> <td width="25%"> <% String wopid = "", wopgroup = "", wopname = ""; try { wopid = elnk.getWebop().getWopid(); } catch(Exception e) { } try { wopgroup = elnk.getWebop().getWopRegroupement(); } catch(Exception e) { } try { wopname = elnk.getWebop().getWopNam(); } catch(Exception e) { } %> <input name="wopid_<%= i %>" id="wopid_<%= i %>" value='<%= wopid %>' type="hidden"/> <%= wopgroup != null ? wopgroup : "" %> <%= !Utils.isEmpty(wopname) ? " - " + wopname : "" %> </td> <%-- Event --%> <td width="25%"> <% String evtid = "", evtname = "", evtstatus = ""; try { evtid = elnk.getEvent().getEvtid(); } catch(Exception e) { } try { evtname = elnk.getEvent().getEvtLabel(); } catch(Exception e) { } try { evtstatus = elnk.getEvent().getStatusid(); } catch(Exception e) { } %> <input name="evtid_<%= i %>" id="evtid_<%= i %>" value='<%= evtid != null ? evtid : "" %>' type="hidden"/> <% if (!Utils.isEmpty(evtid) && !Utils.isEmpty(evtname)) { %> <a href='<%= context.getContextName() + "/read_event.fl?id=" + evtid %>' ><%= evtname %></a> <% if (!Utils.isEmpty(evtstatus)) %> - <%= dico.getRefDisp("Esi", "Te1", evtstatus) %> <% } %> </td> <%-- Population --%> <td width="25%"> <% String popid = "", popname = ""; try { popid = elnk.getPopulation().getPopid(); } catch(Exception e) { } try { popname = elnk.getPopulation().getPopName(); } catch(Exception e) { } %> <input name="popid_<%= i %>" id="popid_<%= i %>" value='<%= popid != null ? popid : "" %>' type="hidden"/> <% if (!Utils.isEmpty(popid) && !Utils.isEmpty(popname)) { %> <a href='<%= context.getContextName() + "/read_populationv2.fl?id=" + popid %>' ><%= popname %> </a> <% } %> </td> <% } %> </tr> <%}%> </tbody> </table> </div> </div> <% } else { %> <fl:label code="L0001" label="Aucune entrée disponible "/> <% } %> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de