Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\marketing\campaign_calendar\list_timeline.jsp
<%@page session="true" import="com.edeal.frontline.*,java.util.*,java.text.*,javax.xml.parsers.DocumentBuilderFactory,java.io.*,org.jdom.*,org.jdom.output.*"%> <%@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 TimelineH = (String) flRequest.getAttribute("TimelineH"); String TimelineB = (String) flRequest.getAttribute("TimelineB"); String query = "SfwID="+flRequest.getRequestParameterOrAttribute("SfwID"); String dateBeg = (String) flRequest.getSearchCriteria("CpgDateBeg"); if (dateBeg != null) query += "&CpgDateBeg="+dateBeg; String dateEnd = (String) flRequest.getSearchCriteria("CpgDateEnd"); if (dateEnd != null) query += "&CpgDateEnd="+dateEnd; String CpgID = (String) flRequest.getSearchCriteria("CpgID"); if (CpgID != null) query += "&CpgID="+CpgID; String CpgDept = (String) flRequest.getSearchCriteria("CpgDept"); if (CpgDept != null) query += "&CpgDept="+CpgDept; String scale = (String) flRequest.getSearchCriteria("SCALE"); if (scale != null) query += "&SCALE="+scale; String entite = (String) flRequest.getSearchCriteria("CpgEnt"); if (entite != null) query += "&CpgEnt="+entite; String urlMap = context.getContextName()+"/marketing/campaign_calendar/map.jsp?"+query; request.setAttribute("selectedTab", "1"); %> <head> <script> Timeline_urlPrefix = "<fl:webapp/>/js/timeline/api/"; SimileAjax_urlPrefix = "<fl:webapp/>/js/timeline/api/"; Timeline_ajax_url = "<fl:webapp/>/js/timeline/api/simile-ajax-api.js"; Timeline_parameters='bundle=true'; </script> <script src="<fl:webapp/>/js/timeline/api/simile-ajax-api.js?timeline-use-local-resources=true" type="text/javascript"></script> <script src="<fl:webapp/>/js/timeline/api/timeline-api.js?timeline-use-local-resources=true" type="text/javascript"></script> </head> <script language="javascript"> var tl; function initTimeLine() { var eventSource = new Timeline.DefaultEventSource(); var theme = Timeline.ClassicTheme.create(); theme.event.bubble.width = 220; theme.event.bubble.height = 90; var bandInfos = [ Timeline.createBandInfo({ eventSource: eventSource, width: "70%", magnify: 10, intervalUnit: <%= TimelineH %>, intervalPixels: 500, theme: theme }), Timeline.createBandInfo({ eventSource: eventSource, width: "30%", intervalUnit: <%= TimelineB %>, intervalPixels: 800, showEventText: false, trackHeight: 0.5, trackGap: 0.2, theme: theme }) ]; bandInfos[1].syncWith = 0; bandInfos[1].highlight = true; //bandInfos[1].eventPainter.setLayout(bandInfos[0].eventPainter.getLayout()); if(window.SimileAjax != null && window.SimileAjax.History != null){ window.SimileAjax.History.enabled = false; } tl = Timeline.create(document.getElementById("timeline-campaign"), bandInfos); Timeline.loadXML("<%= urlMap %>", function(xml, url) { eventSource.loadXML(xml, url); }); } var resizeTimerID = null; function onResize() { if (resizeTimerID == null) { resizeTimerID = window.setTimeout(function() { resizeTimerID = null; tl.layout(); }, 500); } } setTimeout("loadTimeLine()", 2000); var timer function loadTimeLine() { try { initTimeLine(); log('there is Timeline'); } catch(err) { log('there is not Timeline : ' + err); timer = setTimeout("loadTimeLine()", 2000); } } function log(msg){ if (typeof console != 'undefined') { console.log(msg); } } </script> <fl:bigTabs ou="/list_campaign_timeline.fl" objectTitle="<%= Utils.getMessage(session, \"L6540\", false, true, \"Calendrier timeline\") %>"> <table class="container" cellpadding="0" width="100%"> <tr> <td> <div id="timeline-campaign" style="min-width:800px; height:420px; border: 1px solid #aaa"></div> </td> </tr> </table> </fl:bigTabs>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de