Changeset 4125
- Timestamp:
- 04/25/11 10:59:40 (13 years ago)
- Location:
- branches/2.2.0.1/calendar/templates/default
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/calendar/templates/default/day_cal.tpl
r4114 r4125 30 30 <br /> 31 31 {iprint} 32 <input type="radio" name="group1" id="list" value="list" onclick=" muda(this.value);" checked> Lista33 <input type="radio" name="group1" id="grid" value="grid" onclick=" muda(this.value);" > Grade32 <input type="radio" name="group1" id="list" value="list" onclick="printMode(this.value);" checked> Lista 33 <input type="radio" name="group1" id="grid" value="grid" onclick="printMode(this.value);" > Grade 34 34 35 35 </div> … … 39 39 <script> 40 40 41 function muda(printType)41 function printMode(printType) 42 42 { 43 43 if(printType == "grid") … … 60 60 { 61 61 62 document.getElementById("listPrint").style.visibility = 'hidden'; 62 //document.getElementById("listPrint").style.visibility = 'hidden'; 63 document.getElementById("printFriendly").onclick = function(){ 64 if(document.getElementById("grid").checked == true) 65 { 66 //document.getElementById("listPrint").style.visibility = 'hidden'; 67 scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); 68 } 69 else 70 { 71 window.open("index.php?menuaction=calendar.uicalendar.month"+"{param}","","width=600,height=600,toolbar=no,scrollbars=yes,resizable=no"); 72 } 73 }; 63 74 64 75 //inicializa o calendário -
branches/2.2.0.1/calendar/templates/default/new_month.tpl
r4115 r4125 58 58 <br /> 59 59 {iprint} 60 <input type="radio" name="group1" id="list" value="list" onclick=" muda(this.value);" checked> Lista61 <input type="radio" name="group1" id="grid" value="grid" onclick=" muda(this.value);" > Grade<br>60 <input type="radio" name="group1" id="list" value="list" onclick="printMode(this.value);" checked> Lista 61 <input type="radio" name="group1" id="grid" value="grid" onclick="printMode(this.value);" > Grade<br> 62 62 63 63 </div> … … 69 69 <script> 70 70 71 function muda(printType)71 function printMode(printType) 72 72 { 73 73 if(printType == "grid") -
branches/2.2.0.1/calendar/templates/default/new_week.tpl
r4115 r4125 60 60 <br /> 61 61 {iprint} 62 <input type="radio" name="group1" id="list" value="list" onclick=" muda(this.value);" checked> Lista63 <input type="radio" name="group1" id="grid" value="grid" onclick=" muda(this.value);" > Grade<br>62 <input type="radio" name="group1" id="list" value="list" onclick="printMode(this.value);" checked> Lista 63 <input type="radio" name="group1" id="grid" value="grid" onclick="printMode(this.value);" > Grade<br> 64 64 65 65 </div> … … 71 71 <script> 72 72 73 function muda(printType)73 function printMode(printType) 74 74 { 75 75 if(printType == "grid") 76 76 { 77 document.getElementById("listPrint").style.visibility = 'hidden';77 //document.getElementById("listPrint").style.visibility = 'hidden'; 78 78 document.getElementById("printFriendly").onclick = function(){ 79 79 scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); … … 82 82 else if(printType =="list") 83 83 { 84 document.getElementById("listPrint").style.visibility = '';84 //document.getElementById("listPrint").style.visibility = ''; 85 85 document.getElementById("printFriendly").onclick = function(){ 86 86 window.open("index.php?menuaction=calendar.uicalendar.month"+"{param}","","width=600,height=600,toolbar=no,scrollbars=yes,resizable=no"); … … 94 94 if(document.getElementById("grid").checked == true) 95 95 { 96 document.getElementById("listPrint").style.visibility = 'hidden';96 //document.getElementById("listPrint").style.visibility = 'hidden'; 97 97 scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); 98 98 }
Note: See TracChangeset
for help on using the changeset viewer.