Changeset 4125


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.

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  
    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 
  • branches/2.2.0.1/calendar/templates/default/new_month.tpl

    r4115 r4125  
    5858<br /> 
    5959    {iprint} 
    60     <input type="radio" name="group1" id="list" value="list" onclick="muda(this.value);" checked> Lista 
    61     <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> 
    6262 
    6363</div> 
     
    6969<script> 
    7070 
    71     function muda(printType) 
     71    function printMode(printType) 
    7272    { 
    7373        if(printType == "grid") 
  • branches/2.2.0.1/calendar/templates/default/new_week.tpl

    r4115 r4125  
    6060<br /> 
    6161    {iprint} 
    62     <input type="radio" name="group1" id="list" value="list" onclick="muda(this.value);" checked> Lista 
    63     <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> 
    6464 
    6565</div> 
     
    7171<script> 
    7272 
    73     function muda(printType) 
     73    function printMode(printType) 
    7474    { 
    7575        if(printType == "grid") 
    7676        { 
    77             document.getElementById("listPrint").style.visibility = 'hidden'; 
     77            //document.getElementById("listPrint").style.visibility = 'hidden'; 
    7878            document.getElementById("printFriendly").onclick = function(){ 
    7979                                                                            scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); 
     
    8282        else if(printType =="list") 
    8383        { 
    84             document.getElementById("listPrint").style.visibility = ''; 
     84            //document.getElementById("listPrint").style.visibility = ''; 
    8585            document.getElementById("printFriendly").onclick = function(){ 
    8686                                                                            window.open("index.php?menuaction=calendar.uicalendar.month"+"{param}","","width=600,height=600,toolbar=no,scrollbars=yes,resizable=no"); 
     
    9494                                                                        if(document.getElementById("grid").checked == true) 
    9595                                                                        { 
    96                                                                             document.getElementById("listPrint").style.visibility = 'hidden'; 
     96                                                                            //document.getElementById("listPrint").style.visibility = 'hidden'; 
    9797                                                                            scheduler.toPDF('calendar/js/dhtmlx/server/generate.php'); 
    9898                                                                        } 
Note: See TracChangeset for help on using the changeset viewer.