%@page import="com.edeal.frontline.controller.actions.SaveActionbarCssAction"%> <%@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" %> <%@ page import="com.edeal.frontline.FrontlineException" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %> <%@ page isELIgnored="false"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ page import="java.util.Vector" %> <% 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"); Boolean isABDeployed = (Boolean)session.getAttribute(SaveActionbarCssAction.ACTIONBAR_DEPLOYED_ATTR); if (isABDeployed == null) { isABDeployed = true; } String objType = flRequest.getRequestParameterOrAttribute("LoadedFooterType"); Date date = (Date)flRequest.getAttribute("agendaDate"); if (date==null) { try { date = Utils.formatDateFromWeb(session, strDate); } catch (DateParseException dpe) {} } if (date==null) { date = new Date(); } String type; type = flRequest.getRequestParameterOrAttribute("type"); if(type==null) type = "WORKWEEK"; String actId = (String) session.getAttribute("actorID"); String actor = flRequest.getRequestParameterOrAttribute("actor"); if (actor == null) { actor = (String)session.getAttribute("actorID"); } String actorName = null; try { actorName = dico.getTable("sql", "Actor").toString(session, actor); } catch (FrontlineException fe) { } GregorianCalendar calendar = FlLocale.getInstance(session).getCalendar(); if (date != null) { calendar.setTime(date); } calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); while (calendar.get(Calendar.DAY_OF_WEEK) != Calendar.MONDAY) { calendar.add(Calendar.DAY_OF_YEAR, -1); } GregorianCalendar endCal = FlLocale.getInstance(session).getCalendar(); endCal.setTime(calendar.getTime()); endCal.add(Calendar.DAY_OF_YEAR, 4); SimpleDateFormat monthFormat = FlLocale.getInstance(session).getSimpleDateFormat("M"); SimpleDateFormat yearFormat = FlLocale.getInstance(session).getSimpleDateFormat("yyyy"); %>