%@ page language="java"%>
<%@ page import="com.edeal.frontline.navigation.FlRequest" %>
<%@ page import="com.edeal.frontline.Utils" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="com.edeal.frontline.DataDictionary" %>
<%@ page import="com.edeal.frontline.FlContext" %>
<%@ page import="java.util.Map" %>
<%@ page import="com.edeal.frontline.navigation.WebUtils" %>
<%@ page import="com.edeal.frontline.ActorBean" %>
<%@ page import="com.edeal.frontline.AccessDeniedException" %>
<%@ page import="com.edeal.frontline.InteractionBean" %>
<%@ page import="com.edeal.frontline.controller.actions.SelectAction" %>
<%@page import="com.edeal.frontline.navigation.EdealBigTabsNavigation"%>
<%@page import="com.edeal.frontline.navigation.EdealBigTabsNavigation.BigTabsParams"%>
<%@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 pIntType = flRequest.getSearchCriteria("IntType");
if(pIntType == null) {
pIntType = "0";
}
String pIntStiID = flRequest.getSearchCriteria("IntStiID");
if (pIntStiID == null) {
String status = flRequest.getSearchCriteria("IntSti");
status = status != null ? status : "TODO";
pIntStiID = dico.getRefIdByCode("IntStiID", status);
}
boolean isDoneList = dico.getRefIdByCode("IntStiID", "DONE").equals(pIntStiID);
String preview = flRequest.getSearchCriteria("$$preview");
String nb = flRequest.getSearchCriteria("$$nb");
String actID = flRequest.getSearchCriteria("ActID");
String atvID = flRequest.getSearchCriteria("IntAtvID");
if (atvID != null) {
InteractionBean interaction = (new InteractionBean(session));
interaction.setIntAtvID(atvID);
pageContext.setAttribute("Interaction", interaction);
}
String nbDays = flRequest.getSearchCriteria("nbDays");
String beforeThisWeek = flRequest.getSearchCriteria("All");
String actName = flRequest.getRequestParameterOrAttribute("ActName");
if (actID == null) {
actID = flRequest.getRequestParameterOrAttribute("actID");
}
if (actID == null) {
actID = (String)session.getAttribute("actorID");
}
String actSesName = null;
try {
ActorBean actBean = new ActorBean(actID, session);
actSesName = actBean.toString();
}catch (AccessDeniedException ex) {
}
// List code
String lc = flRequest.getRequestParameterOrAttribute("lc");
if (lc == null) {
lc = flRequest.getRequestParameterOrAttribute("code");
}
if (lc == null) {
lc = "INTERACTION";
}
request.setAttribute("lc", lc);
// search criteria
String sc = flRequest.getRequestParameterOrAttribute("sc");
// object uri
String ou = flRequest.getRequestParameterOrAttribute("ou");
// id
String objTitle = flRequest.getRequestParameterOrAttribute("obj.title");
String SfwID = flRequest.getRequestParameterOrAttribute("SfwID");
Map searchCriteria = new Hashtable();
if (sc != null) {
searchCriteria = WebUtils.parseQueryString(sc);
}
request.setAttribute("selectedTab", "0");
EdealBigTabsNavigation ebtn = new EdealBigTabsNavigation(request);
// Is this our first time in here? (ie, we're not navigating back from an object)
boolean isFirstTimeIn = !ebtn.isDoList();
%>
<%-- Le Javascript ci-dessous doit etre inclus en page, car le JSP a besoin du request --%>
" method="get">
<%
//if coming from the agenda, store these values.
String nbAgenda =flRequest.getRequestParameterOrAttribute("nbAgenda");
if (nbAgenda != null) { %>
<% } %>
<%
String initDate = flRequest.getRequestParameterOrAttribute("initDate");
if (initDate != null) { %>
<% } %>
">
<% if (SfwID != null) { %>
<% } %>
">
>
; position: absolute; left: 50%; right: 50%;">