%
/******************************************************************************
* Copyright (c) 2000-2004 e-Deal
*
* e-Deal S.A.
* 55 rue Brillat Savarin
* 75013 Paris
* France
*
* T: +33 (0)1 53 80 80 30
* F: +33 (0)1 73 01 69 77
* http://www.e-deal.com
*
* La diffusion de ce code source sous quelque forme que ce soit sans
* l'autorisation de E-DEAL est interdite.
*
* Vous êtes autorisés à modifier ce code source uniquement pour votre usage
* propre et sous réserve que les mentions de copyright demeurent intactes.
*
* Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou
* implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour
* responsable des dommages pouvant résulter de l'utilisation de ce code
* source.
*
*
******************************************************************************/
%>
<%@page session="true" import="com.edeal.frontline.*,java.text.*,java.util.*,java.lang.StringBuffer"%>
<%@ page import="javax.servlet.http.HttpSession" %>
<%@ page import="com.edeal.frontline.PersonBean" %>
<%@ page import="com.edeal.frontline.navigation.*" %>
<%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %>
<%!
private TimeZone getTimeZone(HttpSession session, DataDictionary dico, String tzoID){
TimeZone timeZone = (TimeZone) session.getAttribute("timezone");
if (timeZone==null){
timeZone = TimeZone.getDefault();
}
String tzoCode = null;
if (tzoID==null) return timeZone;
try{
tzoCode = (String) dico.getRefDisp("Tzo", "Te2", tzoID);
timeZone = TimeZone.getTimeZone(tzoCode);
}catch(Exception e){}
return timeZone;
}
%>
<%
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();
//HttpSession session = flRequest.getSession();
FlLocale locale = FlLocale.getInstance(session);
Vector corDispList = Utils.explodeList(((String)flRequest.getAttribute("corDispList")),"|");
Vector corGrpDispList = Utils.explodeList(((String)flRequest.getAttribute("corGrpDispList")),"|");
Vector tzNameList = Utils.explodeList(((String)flRequest.getAttribute("tzNameList")),"|");
Vector tzoCode = Utils.explodeList((String)flRequest.getAttribute("tzoCodeList"),"|");
String actIDs = flRequest.getParameter("actID");
String corIDs = flRequest.getParameter("corID");
String multivalSeparator = flRequest.getParameter("$$multivalSeparator");
if (multivalSeparator==null || "".equals(multivalSeparator)){
multivalSeparator = "|";
}
Vector listActID = null;
Vector listCorID = null;
String actID = null;
String actTzoID = null;
ActorBean actor = null;
String tzName = "";
TimeZone currentTZ = null;
TimeZone localTimeZone = (TimeZone) session.getAttribute("timezone");
if (localTimeZone == null){
localTimeZone = TimeZone.getDefault();
}
SimpleDateFormat defaultFormat = locale.getSimpleDateFormat("dd/MM/yyy HH:mm");
SimpleDateFormat dateFormat = locale.getDateFormat();
SimpleDateFormat timeFormat = locale.getTimeFormat(false);
String intDate = flRequest.getParameter("date");
String intBegin = flRequest.getParameter("timeBeg");
String intEnd = flRequest.getParameter("timeEnd");
if (actIDs!=null && !"".equals(actIDs) ){
listActID = Utils.explodeList(actIDs, multivalSeparator);
}
if(corIDs!=null && !"".equals(corIDs)){
listCorID = Utils.explodeList(corIDs, multivalSeparator);
}
Date dateDebut = null;
Date dateFin = null;
dateDebut = defaultFormat.parse(intDate+" "+intBegin);
dateFin = defaultFormat.parse(intDate+" "+intEnd);
%>
">
<% if (listActID!=null && listActID.size()> 0 ) { %>
|
|
|
|
<%
boolean colorBlue = true;
for(int i=0; i
">
<%=actor.toString()%>
<%if (!"".equals(tzName)){%>
<%=tzName%><%}%>
|
"><%=dateFormat.format(dateDebut)%> |
"><%=timeFormat.format(dateDebut)%> |
"><%=timeFormat.format(dateFin)%> |
<%
}catch(Exception e){
logger.error("STACK TRACE",e);
}
}
%>
<% } %>
<% if (listCorID != null && listCorID.size() > 0) { %>
|
|
|
|
<%
boolean colorBleu = true;
for(int k=0;k
<%= (String) corDispList.elementAt(k) %>
<%
if(tzoCode != null && tzoCode.size() >= k+1){
if(tzoCode.elementAt(k) != null && !"null".equals(tzoCode.elementAt(k))){
currentTZ = getTimeZone(session, dico,(String)tzoCode.elementAt(k));
dateFormat.setTimeZone(currentTZ);
timeFormat.setTimeZone(currentTZ);
}
}
%>
<%
String grpDisplay = "";
if(corGrpDispList != null && !corGrpDispList.isEmpty()){
if(corGrpDispList.elementAt(k) != null)
grpDisplay = corGrpDispList.elementAt(k).toString();
}
%>
<%= grpDisplay%>
<%
if (tzNameList != null && tzNameList.size() >= k+1){
String strTZ = null;
strTZ = (String) tzNameList.elementAt(k);
if(strTZ != null && !" ".equals(strTZ)){
%>
<%=strTZ%>
<% }
}
%>
|
<%=dateFormat.format(dateDebut)%> |
<%=timeFormat.format(dateDebut)%> |
<%=timeFormat.format(dateFin)%> |
<%
}
%>
<% } %>