%@page session="true" contentType="text/html; charset=UTF-8"%> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@ page import="com.edeal.frontline.FlContext" %> <%@ page import="com.edeal.frontline.DataDictionary" %> <%@ page import="java.util.Date" %> <%@ page import="com.edeal.frontline.Utils" %> <%@ page import="com.edeal.frontline.DateParseException" %> <%@ page import="java.util.GregorianCalendar" %> <%@ page import="com.edeal.frontline.FlLocale" %> <%@ page import="java.util.Calendar" %> <%@ page import="java.text.SimpleDateFormat" %> <%@ 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 strDate = flRequest.getRequestParameterOrAttribute("date"); Date date = null; try { date = Utils.formatDateFromWeb(session, strDate != null ? strDate : Utils.formatToWebDate(session, new Date(), true)); strDate=""; } catch (DateParseException dpe) { } String actor = flRequest.getRequestParameterOrAttribute("actor"); if (actor == null) { actor = (String)session.getAttribute("actorID"); } // positionnement du calendrier au lundi GregorianCalendar calendar = FlLocale.getInstance(session).getCalendar(); if (date != null) { calendar.setTime(date); } String type = flRequest.getRequestParameterOrAttribute("type"); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); SimpleDateFormat sdf = FlLocale.getInstance(session).getSimpleDateFormat("EEEE dd"); SimpleDateFormat monthFormat = FlLocale.getInstance(session).getSimpleDateFormat("M"); SimpleDateFormat yearFormat = FlLocale.getInstance(session).getSimpleDateFormat("yyyy"); String pNbAgenda = flRequest.getRequestParameterOrAttribute("nbAgenda"); int nbAgenda = 0; try { nbAgenda = Integer.parseInt(pNbAgenda); } catch (NumberFormatException nfe) { } nbAgenda++; %> <% if (!"DAY".equalsIgnoreCase(type)) { %>