<% //for (var i=0; i
<% for (j=0; j
<% var _event = data.events_list[i].events[j];
// se houver mais de um evento no mesmo dia...
if (data.events_list[i].events.length > 1) { %>
<% if (data.events_list[i].events.length != j+1) { %>
<% } else { %>
<% } %>
<% if (j==0) { %>
<%= data.events_list[i].startDate %>
<% } %>
<% } else { %>
<% if (j>0) %>
<%= data.events_list[i].startDate %> <%
} %>
<%= _event.time %>
<%
var img_type = "";
var title_type = "";
if(_event.type == '1'){
img_type = "../prototype/modules/calendar/img/big-event.png";
title_type = "Evento";
}if(_event.type == '2'){
img_type = "../prototype/modules/calendar/img/big-task.png";
title_type = "Tarefa";
}if(_event.type == '3'){
img_type = "../prototype/modules/calendar/img/big-activity.png";
title_type = "Atividade";
}
%>
<%= _event.summary %>
<%
/*
var title = "";
var url_image = "";
if (_event.repeat) {
title = "Este evento tem repetição";
url_image = "img/repeat.png";
}
if ((_event.alarms) && (_event.alarms.length > 0)) {
title = "Este evento tem lembretes";
url_image = "img/alarm.png";
}
if ((_event.attachments) && (_event.attachments.length > 0)) {
title = "Este evento tem anexos";
url_image = "img/attachment.png";
}
if ((_event.participants) && (_event.participants.length > 0)) {
title = "Este evento tem participantes";
url_image = "img/user.png";
}
*/
%>
<% if (_event.options) {
for (var o=0; o < _event.options.length; o++) {
var url_image = "";
var type_option = _event.options[o].type;
if (type_option == "repeat")
url_image = "img/repeat.png";
if (type_option == "alarm")
url_image = "img/alarm.png";
if (type_option == "attachment")
url_image = "img/attachment.png";
if (type_option == "participant")
url_image = "img/user.png"; %>
<%
}
}
%>