Changeset 4114 for branches/2.2.0.1/calendar/templates/default/new_week.tpl
- 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_week.tpl
r4098 r4114 53 53 </div> 54 54 </div> 55 55 56 {minical} 56 57 57 <div class='calendar_month_identifier' style='clear:left;margin-left:50px;margin-right:50px;text-align:center'> </div> 58 <div style='clear:left;margin-left:50px;margin-right:50px;text-align:center'> 59 <br /> 60 {iprint} 61 <input type="radio" name="group1" id="list" value="list" onclick="muda(this.value);" checked> Lista 62 <input type="radio" name="group1" id="grid" value="grid" onclick="muda(this.value);" > Grade<br> 63 64 </div> 65 66 <div style='clear:left;margin-left:50px;margin-right:50px;text-align:center'> </div> 67 58 68 <body onload="resize();loadScheduler();"></body> 59 69 60 70 <script> 61 71 72 function muda(printType) 73 { 74 if(printType == "grid") 75 { 76 document.getElementById("listPrint").style.visibility = 'hidden'; 77 document.getElementById("printFriendly").onclick = function(){ 78 scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); 79 }; 80 } 81 else if(printType =="list") 82 { 83 document.getElementById("listPrint").style.visibility = ''; 84 document.getElementById("printFriendly").onclick = function(){ 85 window.open("index.php?menuaction=calendar.uicalendar.month"+"{param}","","width=600,height=600,toolbar=no,scrollbars=yes,resizable=no"); 86 }; 87 } 88 } 89 62 90 function loadScheduler() 63 91 { 64 92 document.getElementById("printFriendly").onclick = function(){ 93 if(document.getElementById("grid").checked == true) 94 { 95 document.getElementById("listPrint").style.visibility = 'hidden'; 96 scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); 97 } 98 else 99 { 100 window.open("index.php?menuaction=calendar.uicalendar.month"+"{param}","","width=600,height=600,toolbar=no,scrollbars=yes,resizable=no"); 101 } 102 }; 65 103 66 104 scheduler.showLightbox = function(id)
Note: See TracChangeset
for help on using the changeset viewer.