1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/print.css"> |
---|
5 | <title>Visualização Diária</title> |
---|
6 | </head> |
---|
7 | <body> |
---|
8 | <div class="day"> |
---|
9 | <div class="title_print"> <img src="../prototype/modules/calendar/img/navbar.png"> <%= data.InfoPage %> </div> |
---|
10 | <% |
---|
11 | if(data.days){ |
---|
12 | for(var jj in data.days.events[0]){ |
---|
13 | %> |
---|
14 | <div class="content_month_print"> |
---|
15 | <div class="allDay_list_label"><span>Dia Todo</span></div> |
---|
16 | <% for(var ii=0; ii<data.days.events[0][jj].events.length; ii++){ |
---|
17 | if(!data.days.events[0][jj].events[ii].allDay) |
---|
18 | continue; |
---|
19 | %> |
---|
20 | <% |
---|
21 | var img_type = ""; |
---|
22 | var title_type = ""; |
---|
23 | if(data.days.events[0][jj].events[ii].type == '1'){ |
---|
24 | img_type = "../prototype/modules/calendar/img/event.png"; |
---|
25 | title_type = "Evento"; |
---|
26 | }if(data.days.events[0][jj].events[ii].type == '2'){ |
---|
27 | img_type = "../prototype/modules/calendar/img/task.png"; |
---|
28 | title_type = "Tarefa"; |
---|
29 | }if(data.days.events[0][jj].events[ii].type == '3'){ |
---|
30 | img_type = "../prototype/modules/calendar/img/activity_icon.jpg"; |
---|
31 | title_type = "Atividade"; |
---|
32 | } |
---|
33 | %> |
---|
34 | <div class="calendar_day_item_print"><img title="<%= title_type %>" src="<%= img_type %>"><span><%= data.days.events[0][jj].events[ii].summary %></span></div> |
---|
35 | <% } %> |
---|
36 | </div> |
---|
37 | <div> |
---|
38 | |
---|
39 | <div class="calendar_list_print"> |
---|
40 | <% for(var ii=0; ii<data.days.events[0][jj].events.length; ii++){ |
---|
41 | if(data.days.events[0][jj].events[ii].allDay) |
---|
42 | continue; |
---|
43 | %> |
---|
44 | <% |
---|
45 | var img_type = ""; |
---|
46 | var title_type = ""; |
---|
47 | if(data.days.events[0][jj].events[ii].type == '1'){ |
---|
48 | img_type = "../prototype/modules/calendar/img/event.png"; |
---|
49 | title_type = "Evento"; |
---|
50 | }if(data.days.events[0][jj].events[ii].type == '2'){ |
---|
51 | img_type = "../prototype/modules/calendar/img/task.png"; |
---|
52 | title_type = "Tarefa"; |
---|
53 | }if(data.days.events[0][jj].events[ii].type == '3'){ |
---|
54 | img_type = "../prototype/modules/calendar/img/activity_icon.jpg"; |
---|
55 | title_type = "Atividade"; |
---|
56 | } |
---|
57 | %> |
---|
58 | <div class="calendar_item_print"><img title="<%= title_type %>" src="<%= img_type %>"><span><%= data.days.events[0][jj].events[ii].startHour %> - <%= data.days.events[0][jj].events[ii].endHour %> | <%= data.days.events[0][jj].events[ii].summary %></span></div> |
---|
59 | <% } %> |
---|
60 | </div> |
---|
61 | <br> |
---|
62 | </div><!--days--> |
---|
63 | <% |
---|
64 | } |
---|
65 | }%> |
---|
66 | </div><!--mounth--> |
---|
67 | </body> |
---|
68 | </html> |
---|