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_month.tpl

    r4098 r4114  
    5353 
    5454{minical} 
    55 <div class='calendar_month_identifier' style='clear:left;margin-left:50px;margin-right:50px;text-align:center'>&nbsp;</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'>&nbsp;</div> 
     65 
    5666<body onload="resize();loadScheduler();"></body> 
    5767 
    5868<script> 
    5969 
     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 
    6088    function loadScheduler() 
    6189    { 
    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                                                                     }; 
    63101        //inicializa o calendário 
    64102        scheduler.showLightbox = function(id) 
Note: See TracChangeset for help on using the changeset viewer.