<%if(data.resource && data.resource.length){ for(var i = 0; i < data.resource.length; i++){ var date = new Date(parseInt(data.resource[i].startTime));%>
<%=data.resource[i].summary %>
<%= date.toString("MMM") %> <%= date.toString("d") %>
<%if(parseInt(data.resource[i].allDay)){%> Durante o dia todo <%}else{%> <%= date.toString("HH:mm") %> <%= new Date(parseInt(data.resource[i].endTime)).toString("HH:mm") %> <%}%>
<%=data.resource[i].summary %>
<%=data.resource[i].description%>
<%}%> <%}else{%>
Sem resultados
<%}%>