Ignore:
Timestamp:
04/20/11 16:19:07 (13 years ago)
Author:
rafaelraymundo
Message:

Ticket #1745 - Padronizar a impressão diária, semanal e mensal da agenda.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.0.1/calendar/templates/default/new_week.tpl

    r4098 r4114  
    5353        </div> 
    5454</div> 
     55 
    5556{minical} 
    5657 
    57 <div class='calendar_month_identifier' style='clear:left;margin-left:50px;margin-right:50px;text-align:center'>&nbsp;</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'>&nbsp;</div> 
     67 
    5868<body onload="resize();loadScheduler();"></body> 
    5969 
    6070<script> 
    6171 
     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 
    6290    function loadScheduler() 
    6391    { 
    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                                                                     }; 
    65103 
    66104        scheduler.showLightbox = function(id) 
Note: See TracChangeset for help on using the changeset viewer.