- Timestamp:
- 04/20/11 16:19:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/calendar/templates/default/new_month.tpl
r4098 r4114 53 53 54 54 {minical} 55 <div class='calendar_month_identifier' style='clear:left;margin-left:50px;margin-right:50px;text-align:center'> </div> 55 56 <div style='clear:left;margin-left:50px;margin-right:50px;text-align:center'> 57 <br /> 58 {iprint} 59 <input type="radio" name="group1" id="list" value="list" onclick="muda(this.value);" checked> Lista 60 <input type="radio" name="group1" id="grid" value="grid" onclick="muda(this.value);" > Grade<br> 61 62 </div> 63 64 <div style='clear:left;margin-left:50px;margin-right:50px;text-align:center'> </div> 65 56 66 <body onload="resize();loadScheduler();"></body> 57 67 58 68 <script> 59 69 70 function muda(printType) 71 { 72 if(printType == "grid") 73 { 74 document.getElementById("listPrint").style.visibility = 'hidden'; 75 document.getElementById("printFriendly").onclick = function(){ 76 scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); 77 }; 78 } 79 else if(printType =="list") 80 { 81 document.getElementById("listPrint").style.visibility = ''; 82 document.getElementById("printFriendly").onclick = function(){ 83 window.open("index.php?menuaction=calendar.uicalendar.month"+"{param}"+"&day_ini="+document.getElementById('dayIni').value+"&num_dias="+document.getElementById('numDays').value,"","width=600,height=600,toolbar=no,scrollbars=yes,resizable=no"); 84 }; 85 } 86 } 87 60 88 function loadScheduler() 61 89 { 62 90 document.getElementById("printFriendly").onclick = function(){ 91 if(document.getElementById("grid").checked == true) 92 { 93 document.getElementById("listPrint").style.visibility = 'hidden'; 94 scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); 95 } 96 else 97 { 98 window.open("index.php?menuaction=calendar.uicalendar.month"+"{param}"+"&day_ini="+document.getElementById('dayIni').value+"&num_dias="+document.getElementById('numDays').value,"","width=600,height=600,toolbar=no,scrollbars=yes,resizable=no"); 99 } 100 }; 63 101 //inicializa o calendário 64 102 scheduler.showLightbox = function(id)
Note: See TracChangeset
for help on using the changeset viewer.