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/day_cal.tpl

    r4032 r4114  
    2727</div> 
    2828 
     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 
    2937<body onload="loadScheduler()"></body> 
    3038 
    3139<script> 
    3240 
     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 
    3359    function loadScheduler() 
    3460    { 
     61 
     62        document.getElementById("listPrint").style.visibility = 'hidden'; 
    3563 
    3664        //inicializa o calendário 
Note: See TracChangeset for help on using the changeset viewer.