<% //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 %>
<%= _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"; %>
<%
}
}
%>