Changeset 4114 for branches/2.2.0.1/calendar/templates/default/day_cal.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/day_cal.tpl
r4032 r4114 27 27 </div> 28 28 29 <div style='clear:left;margin-left:50px;margin-right:50px;text-align:center'> 30 <br /> 31 {iprint} 32 <input type="radio" name="group1" id="list" value="list" onclick="muda(this.value);" checked> Lista 33 <input type="radio" name="group1" id="grid" value="grid" onclick="muda(this.value);" > Grade 34 35 </div> 36 29 37 <body onload="loadScheduler()"></body> 30 38 31 39 <script> 32 40 41 function muda(printType) 42 { 43 if(printType == "grid") 44 { 45 //document.getElementById("listPrint").style.visibility = 'hidden'; 46 document.getElementById("printFriendly").onclick = function(){ 47 scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); 48 }; 49 } 50 else if(printType =="list") 51 { 52 //document.getElementById("listPrint").style.visibility = ''; 53 document.getElementById("printFriendly").onclick = function(){ 54 window.open("index.php?menuaction=calendar.uicalendar.month"+"{param}","","width=600,height=600,toolbar=no,scrollbars=yes,resizable=no"); 55 }; 56 } 57 } 58 33 59 function loadScheduler() 34 60 { 61 62 document.getElementById("listPrint").style.visibility = 'hidden'; 35 63 36 64 //inicializa o calendário
Note: See TracChangeset
for help on using the changeset viewer.