Ignore:
Timestamp:
04/25/11 10:59:40 (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/day_cal.tpl

    r4114 r4125  
    3030<br /> 
    3131    {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 
     32    <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 
    3434 
    3535</div> 
     
    3939<script> 
    4040 
    41     function muda(printType) 
     41    function printMode(printType) 
    4242    { 
    4343        if(printType == "grid") 
     
    6060    { 
    6161 
    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                                                                     }; 
    6374 
    6475        //inicializa o calendário 
Note: See TracChangeset for help on using the changeset viewer.