- Timestamp:
- 07/30/12 19:06:22 (11 years ago)
- Location:
- sandbox/2.4.2-expresso1/prototype/modules/calendar
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.4.2-expresso1/prototype/modules/calendar/css/print.css
r6912 r6915 69 69 padding: 0px; 70 70 } 71 72 73 71 .week .event-on-day{ 74 72 font: 10px arial; … … 76 74 } 77 75 .week { 78 79 76 min-width: 600px; 80 77 min-height: 400px; 81 background : #F4F6FA;82 border: 1px solid #DCE7FC;83 78 text-align: center; 84 79 float: left; … … 90 85 } 91 86 .week .name-month img { 92 margin: 3 87 margin: 3px 0 0 0; 93 88 width: 20px; 94 89 height: 20px; … … 97 92 font: 14px arial; 98 93 display: block; 99 100 94 } 101 95 .week .days ul { 102 96 list-style: none; 103 97 display: block; 104 105 98 } 106 107 99 .week ul li{ 108 100 float: left; 109 101 display: inline; 110 border: 1px solid #D7D7FF;102 border: 1px solid; 111 103 width: 100px; 112 104 } 113 105 .week .all-day-line{ 114 106 border: 0; 115 116 107 } 117 108 .week .event-all-day{ … … 122 113 margin:-3px 0 0 0; 123 114 font-weight: bold; 124 border-left: 1px solid #D7D7FF; 125 border-top: 1px solid #D7D7FF; 126 border-bottom: 1px solid #D7D7FF; 127 115 border-left: 1px solid; 116 border-top: 1px solid; 117 border-bottom: 1px solid; 128 118 } 129 119 .week .all-day{ 130 border-top: 1px solid #D7D7FF;131 border-bottom: 1px solid #D7D7FF;120 border-top: 1px solid; 121 border-bottom: 1px solid; 132 122 } 133 123 .fc-year-have-event{ … … 140 130 text-align: center 141 131 } 142 .fc-year-monthly-td table{143 padding-left: 0px !important;144 } -
sandbox/2.4.2-expresso1/prototype/modules/calendar/js/helpers.js
r6914 r6915 102 102 103 103 function printEvents(){ 104 105 /* var print = $('.fc-header-right').find('.fc-button.fc-button-agendaDay').clone();106 $('.fc-header-right').find('.fc-button-year').toggleClass('fc-corner-right');107 print.addClass('fc-corner-right');108 print.addClass('fc-button-print');109 print.removeClass('fc-button-agendaDay');110 print.removeClass('fc-corner-left');111 print.find('.fc-button-content').html('Imprimir');112 $('.fc-header-right').append(print);113 $('.fc-button-print').click(function(){114 var window_print = window.open('','ExpressoCalendar','width=800,height=600,scrollbars=yes');115 var calendar = document.getElementById('calendar').cloneNode(true);116 $(calendar).css('width', '77%');117 $(calendar).fullCalendar('render');118 bdhtml = $(calendar).find('.fc-content').clone().html();119 window_print.document.open();120 window_print.document.write('<link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/reset.css">'+121 '<link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.css">'+122 '<link rel="stylesheet" type="text/css" href="../prototype/plugins/fullcalendar/fullcalendar.print.css" media="print">'+bdhtml);123 window_print.document.close();124 window_print.print();125 }); */126 127 128 104 //var html = DataLayer.render( path + 'templates/attendee_permissions.ejs', {} ); 129 105 var print = $('.fc-header-right').find('.fc-button.fc-button-agendaDay').clone(); 130 /*131 $('.fc-header-right').find('.fc-button-year').toggleClass('fc-corner-right');132 print.addClass('fc-corner-right');133 print.addClass('fc-button-print');134 print.removeClass('fc-button-agendaDay');135 print.removeClass('fc-corner-left');136 print.find('.fc-button-content').html('Imprimir');137 $('.fc-header-right').append(print);138 $('.fc-button-print').click(function(){139 var window_print = window.open('','ExpressoCalendar','width=600,height=600,scrollbars=yes');140 window_print.document.open();141 142 143 var end = $("#calendar").fullCalendar('getView').visEnd.getTime()/1000;144 var start = $("#calendar").fullCalendar('getView').visStart.getTime()/1000;145 var criteria = DataLayer.criteria("schedulable:calendar", {'start':start, 'end':end} );146 147 var data = DataLayer.get("schedulable:print", criteria);148 149 150 if($("#calendar").fullCalendar('getView').name == "month"){151 152 window_print.document.write('<link rel="stylesheet" type"text/css" href="../prototype/modules/calendar/css/calendar_print.css" >' + DataLayer.render('templates/print_month.ejs', {153 'InfoPage' : $("#calendar").fullCalendar('getView').title,154 'days' : data155 } ));156 } else if($("#calendar").fullCalendar('getView').name == "agendaWeek"){157 158 window_print.document.write('<link rel="stylesheet" type"text/css" href="../prototype/modules/calendar/css/calendar_print.css" >' + DataLayer.render('templates/print_week.ejs', {159 'InfoPage' : $("#calendar").fullCalendar('getView').title,160 'days' : data161 } ));162 }163 //window_print.document.close();164 window_print.print();165 });166 */167 168 169 106 170 107 $('.fc-header-right').find('.fc-button-year').toggleClass('fc-corner-right'); … … 186 123 window_print.document.write(DataLayer.render('templates/calendar_month_print.ejs', { 187 124 'InfoPage' : $("#calendar").fullCalendar('getView').title, 188 'days' : data, 189 'title': 'Calendário Mensal' 125 'days' : data 190 126 } )); 191 127 } … … 193 129 window_print.document.write(DataLayer.render('templates/calendar_day_print.ejs', { 194 130 'InfoPage' : $("#calendar").fullCalendar('getView').title, 195 'days' : data, 196 'title': 'Calendário Diário' 131 'days' : data 197 132 } )); 198 } 199 133 } 200 134 if($("#calendar").fullCalendar('getView').name == "agendaWeek"){ 201 202 window_print.document.write(DataLayer.render('templates/calendar_week_print.ejs', { 203 'InfoPage' : $("#calendar").fullCalendar('getView').title, 204 'days' : data, 205 'title': 'Calendário Semanal' 206 } )); 207 208 var aux = 0; 209 210 211 setTimeout(function(){$(window_print.document).find(".all-day").each(function(){ 212 if($(this).height() > aux) 213 aux = $(this).height(); 214 }) 215 216 $(window_print.document).find(".all-day").each(function(){ 217 $(this).height(aux); 218 }); 219 $(window_print.document).find(".all-day-line .write").height(aux); 220 aux = 0; 221 },20); 222 135 window_print.document.write(DataLayer.render('templates/calendar_week_print.ejs', { 136 'InfoPage' : $("#calendar").fullCalendar('getView').title, 137 'days' : data 138 })); 139 140 var aux = 0; 141 setTimeout(function(){$(window_print.document).find(".all-day").each(function(){ 142 if($(this).height() > aux) 143 aux = $(this).height(); 144 }); 145 $(window_print.document).find(".all-day").each(function(){ 146 $(this).height(aux); 147 }); 148 $(window_print.document).find(".all-day-line .write").height(aux); 149 aux = 0; 150 },20); 223 151 } 224 }225 152 if($("#calendar").fullCalendar('getView').name == "year"){ 226 153 window_print.document.write(DataLayer.render('templates/calendar_year_print.ejs', { -
sandbox/2.4.2-expresso1/prototype/modules/calendar/templates/calendar_day_print.ejs
r6906 r6915 3 3 <head> 4 4 <link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/print.css"> 5 <title> <%= data.title %></title>5 <title>Visualização Diária</title> 6 6 </head> 7 7 <body> 8 <div >8 <div class="day"> 9 9 <div class="title_print"> <img src="../prototype/modules/calendar/img/navbar.png"> <%= data.InfoPage %> </div> 10 10 <% 11 if(data.days) 11 if(data.days){ 12 12 for(var jj in data.days.events[0]){ 13 13 %> … … 63 63 <% 64 64 } 65 %>65 }%> 66 66 </div><!--mounth--> 67 67 </body> -
sandbox/2.4.2-expresso1/prototype/modules/calendar/templates/calendar_month_print.ejs
r6907 r6915 3 3 <head> 4 4 <link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/print.css"> 5 <title> <%= data.title %></title>5 <title>Visualização Mensal</title> 6 6 </head> 7 7 <body> 8 <div> 9 <div class="title_print"> <img src="../prototype/modules/calendar/img/navbar.png"> <%= data.InfoPage %> </div> 8 <div class="month"> 9 <div class="title_print"> <img src="../prototype/modules/calendar/img/navbar.png"> <%= data.InfoPage %> </div> 10 <%if(data.days){%> 10 11 <div class="content_month_print"> 11 <% 12 <% 12 13 for(var i=0; i < data.days.events.length; i++){ 13 14 for(var jj in data.days.events[i]){ … … 41 42 %> 42 43 </div><!--days--> 44 <%}%> 43 45 </div><!--mounth--> 44 46 </body> -
sandbox/2.4.2-expresso1/prototype/modules/calendar/templates/calendar_week_print.ejs
r6912 r6915 3 3 <head> 4 4 <link rel="stylesheet" type="text/css" href="../prototype/modules/calendar/css/print.css"> 5 <title> <%= data.title %></title>5 <title>Visualização Semanal</title> 6 6 </head> 7 7 <body> 8 9 <% delete data.days.events[7]; %> 10 8 11 9 <div class="week"> 12 <div class="name-month"> <img src="../prototype/modules/calendar/img/navbar.png"> <%= data.InfoPage %></div> 13 10 <div class="name-month"> <img src="../prototype/modules/calendar/img/navbar.png"> <%= data.InfoPage %></div> 11 <% if(data.days){ 12 delete data.days.events[7]; %> 14 13 <div class="first-week"> 15 14 <div class="days"> … … 85 84 </div><!--days--> 86 85 </div><!--first-week--> 86 <%}%> 87 87 </div><!--week--> 88 88 </body>
Note: See TracChangeset
for help on using the changeset viewer.